Skip to content

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

Closed

Description

@ioweb-gr

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

Activity

  1. added
    bug
    on Nov 8, 2025
  2. added
    CLI
    sandbox
    on Nov 8, 2025
  3. ioweb-gr commented on Nov 8, 2025

    @ioweb-gr
    Author

    Similar to #5491 and #5199 so closing

  4. andreszs commented on Jan 29, 2026

    @andreszs

    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?

  5. Daeveren commented on Feb 7, 2026

    @Daeveren

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

  6. khorsek commented on Mar 5, 2026

    @khorsek

    Still happening lol

  7. angelrenedo commented on Mar 10, 2026

    @angelrenedo

    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

  8. zak-ken commented on Mar 18, 2026

    @zak-ken

    Been experiencing the same issue.

  9. deedeedev commented on Mar 18, 2026

    @deedeedev

    I'm experiencing the same issue right now

  10. ktynski commented on Mar 19, 2026

    @ktynski

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

  11. YodaheaD commented on Mar 19, 2026

    @YodaheaD

    Happening for me, super annoying when making large changes.

  12. go-sudo commented on Mar 23, 2026

    @go-sudo

    Happening for me, super annoying when making large changes.

  13. 1 remaining item

  14. rickyelqasem commented on Apr 5, 2026

    @rickyelqasem

    yup its annoying.

  15. OGMAvision commented on Apr 10, 2026

    @OGMAvision

    Still happening. Any fix?

  16. airlined commented on Apr 12, 2026

    @airlined

    still the same...

  17. danim-hub commented on Apr 13, 2026

    @danim-hub

    cannot go to sleep, otherwise codex will get stuck

  18. albertocubeddu commented on Apr 14, 2026

    @albertocubeddu

    sama sama

  19. Drymarti commented on Apr 14, 2026

    @Drymarti

    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.

  20. aabmar commented on Apr 19, 2026

    @aabmar

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

  21. douglasware commented on Apr 21, 2026

    @douglasware

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

  22. nitindatta commented on Apr 26, 2026

    @nitindatta

    Still a problem

  23. chadtuchek commented on Apr 29, 2026

    @chadtuchek

    Still a problem for me as well

  24. hydra1983 commented on May 1, 2026

    @hydra1983

    Still a problem +1

  25. JKDos commented on May 1, 2026

    @JKDos

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

    Image
  26. Ciriak commented on May 4, 2026

    @Ciriak

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

    This make Codex barely usable now

  27. ZACHHTER commented on May 10, 2026

    @ZACHHTER

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

  28. locked as resolved and limited conversation to collaborators on May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIbugsandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions