Codex keeps asking for permissions after pressing 'Yes, and don't ask again for this command'

Resolved 💬 26 comments Opened Nov 8, 2025 by ioweb-gr Closed Nov 8, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

codex-cli 0.56.0

What subscription do you have?

Plus

Which model were you using?

gpt-5-codex

What platform is your computer?

Ubuntu 20.04 - Linux 5.4.0-215-generic x86_64 x86_64

What issue are you seeing?

While inspecting files and folders it will run commands like

rg .....
rg ... | sed -n

And generally commands that will limit the output to a few lines

When it asks for permissions for those for lines 10-24 for example,
I select option 2. Yes, and don't ask again for this command

However as soon as the line number changes to for example 50-65 it will repeatedly ask for permissions for just switching the params.

Moreover these are read-only commands so they have no detriment, they should have been proceeded without permission requiremtns at all.

What steps can reproduce the bug?

It usually happens to me if I have a problematic linux service that wont' start and I ask the model to investigate the root cause. It has to go through many system files and journalctl and do paging to gather data from logs.

What is the expected behavior?

After I press 2 it should identify the nature of the commands e.g. is it only chunking a file's contents? is it read only ? And respect the decision and not repeatedly ask for new permissions

Additional information

_No response_

View original on GitHub ↗

26 Comments

github-actions[bot] contributor · 8 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #5199
  • #5491
  • #6079
  • #4665
  • #5038

Powered by Codex Action

ioweb-gr · 8 months ago

Similar to #5491 and #5199 so closing

andreszs · 5 months ago
Similar to #5491 and #5199 so closing

Clsoed 3 months ago but the issue clearly persists... Today I had to approve permission for running the same command with different variation 3 dozen times in the same answer... but yes, just close the issue, who cares for the paying customer's time anyway?

Daeveren · 5 months ago

Same issue here (on Windows), this is an issue that persists since several months and it's extremely annoying.

khorsek · 4 months ago

Still happening lol

angelrenedo · 4 months ago

It's happening to me too. All the time asking for permission, repyling with grant access and seconds after asking again to edit the same file

zak-ken · 4 months ago

Been experiencing the same issue.

deedeedev · 4 months ago

I'm experiencing the same issue right now

ktynski · 4 months ago

Makes the product nearly unusable tbh. Moving back to Claude. Wish Openai gave a shit.

YodaheaD · 4 months ago

Happening for me, super annoying when making large changes.

go-sudo · 3 months ago

Happening for me, super annoying when making large changes.

madejejej · 3 months ago

Happening for me too.

rickyelqasem · 3 months ago

yup its annoying.

OGMAvision · 3 months ago

Still happening. Any fix?

airlined · 3 months ago

still the same...

danim-hub · 3 months ago

cannot go to sleep, otherwise codex will get stuck

albertocubeddu · 3 months ago

sama sama

Drymarti · 3 months ago

So while it's not the best, if you give a solid prompt instruction, I marked permissions as Full Permission. It fixed that issue. Also you can ask your Codex Agent not to use shell commands and to edit files directly instead of going through shell. That also helps.

aabmar · 3 months ago

Still a problem. It's a bit annoying having to sit watch it work.

douglasware · 3 months ago

Still a defect. This is the best argument against using Codex I know of. The people at Cursor appreciate you.

nitindatta · 2 months ago

Still a problem

chadtuchek · 2 months ago

Still a problem for me as well

hydra1983 · 2 months ago

Still a problem +1

JKDos · 2 months ago

Same problem. I lose so much time because of this popping up a dozen times

<img width="318" height="414" alt="Image" src="https://github.com/user-attachments/assets/69e7e4cd-ecfb-4023-959e-403c41a2544b" />

Ciriak · 2 months ago

Still an issue, "Yes and don't ask again.." just doesn't seem to work.

This make Codex barely usable now

ZACHHTER · 2 months ago

This hasn't been fixed by OpenAI since more than half a year?