codex icon indicating copy to clipboard operation
codex copied to clipboard

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

Open ioweb-gr opened this issue 1 year ago • 26 comments

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

ioweb-gr avatar Nov 08 '25 14:11 ioweb-gr

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

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

Powered by Codex Action

github-actions[bot] avatar Nov 08 '25 14:11 github-actions[bot]

Similar to #5491 and #5199 so closing

ioweb-gr avatar Nov 08 '25 15:11 ioweb-gr

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?

andreszs avatar Jan 29 '26 21:01 andreszs

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

Daeveren avatar Feb 07 '26 12:02 Daeveren

Still happening lol

khorsek avatar Mar 05 '26 01:03 khorsek

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

angelrenedo avatar Mar 10 '26 18:03 angelrenedo

Been experiencing the same issue.

zak-ken avatar Mar 18 '26 08:03 zak-ken

I'm experiencing the same issue right now

deedeedev avatar Mar 18 '26 10:03 deedeedev

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

ktynski avatar Mar 19 '26 00:03 ktynski

Happening for me, super annoying when making large changes.

YodaheaD avatar Mar 19 '26 17:03 YodaheaD

Happening for me, super annoying when making large changes.

go-sudo avatar Mar 23 '26 10:03 go-sudo

Happening for me too.

madejejej avatar Mar 31 '26 12:03 madejejej

yup its annoying.

rickyelqasem avatar Apr 05 '26 17:04 rickyelqasem

Still happening. Any fix?

OGMAvision avatar Apr 10 '26 23:04 OGMAvision

still the same...

airlined avatar Apr 12 '26 14:04 airlined

cannot go to sleep, otherwise codex will get stuck

danim-hub avatar Apr 13 '26 08:04 danim-hub

sama sama

albertocubeddu avatar Apr 14 '26 05:04 albertocubeddu

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.

Drymarti avatar Apr 14 '26 09:04 Drymarti

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

aabmar avatar Apr 19 '26 17:04 aabmar

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

douglasware avatar Apr 21 '26 14:04 douglasware