You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Keeps asking for permission to run commands #11298
What version of the Codex App are you using (From “About Codex” dialog)?
260208.1016 (571)
What subscription do you have?
Pro
What issue are you seeing?
The "Yes, and don't ask again for commands that start with" is broken.
What steps can reproduce the bug?
Get Codex to run a command. Click "Yes, and don't ask again for commands that start with". Get Codex to run same command again.
What is the expected behavior?
Subsequent commands should not require permission.
Additional information
My recommendation is to rename Codex to 'Codex (Supervised)' until this is fixed.
Reacted by Benjamin T. Vincent, PabloCanovas, Kl-11, almuqrin, Andrea Panizza, notargs, qixing-jk, Ignat Remizov, Off Chanchana, Daniel Hoop and 9 more
Can you provide a more specific example of a series of commands where you saw this occur? It's likely that the commands differ slightly, so the approval engine categorized them as distinct commands.
@etraut-openai I think they are the same commands (but I will verify and get back to you), however they all have some other stuff before them (FOO=1 bar --baz). Could it be that the permission UI is correctly parsing just the command but when that check happens the next time it tries matching the full command string from the beginning?
Thanks for the example. The command parser currently doesn't handle commands with an environment variable assignment prefix. That explains why the calls in your example above are not exempted by the "Don't ask me again" logic. We'll need to think about this case more to figure out the best way to handle it. Thanks again for the examples — very helpful!
We've been experiencing this too. With any command starting 'Node -'. Despite choosing many times yes and don't ask again. Maybe it's the same bug you've identified.
Changing the Permission at the bottom of the Codex app to Full Permission also didn't fix this. It still asked if it can proceed with the commands starting 'node -'.
I can imagine you've thought through the permission model well. In my humble view, there could be room for:
1- a 'Yes continue and accept all requests in this session' or something similar, instead of having to babysit Codex as is the case now.
2- this can be a new permission option from the dropdown list, so it would be:
A- default sandbox (manual accept)
B- default sandbox (auto accept)
C- Full permissions
Something like... with the objective of having a simple way to auto accept what codex is asking for, but within the sandbox current permissions.
I think it is happending when the tool being called is outside the sandbox. Here is my bug description (feature request?):
When I instruct Codex to use a command-line tool located outside the project directory (sandbox), it repeatedly asks for permission to run the tool, each time with slightly different arguments. This happens even though I defined a generic prefix_rule.
It appears that prefix_rules are not applied when the tool itself is located outside the sandbox. Ironically, the tool I’m calling is intended to operate only within the sandbox.
It would be helpful to have a rule that always allows a specific tool to run, without requiring repeated permission requests.
When I instruct Codex to use a command-line tool located outside the project directory (sandbox), it repeatedly asks for permission to run the tool, each time with slightly different arguments. This happens even though I defined a generic prefix_rule.
Yes @danielhoop checkout my comment here in another issue and let me know if this is what you are finding as well? #8537 (comment)
I thought it was just a Windows / PowerShell sandbox issue but maybe it is larger than that?
It makes Codex in the Windows Sandbox almost unusable because things like agent-browser SKILL / CLI Tool constantly need approval which means Codex cannot help with frontend web development unless I hand hold it approving every 15 seconds.
Activity
etraut-openai commentedon Feb 10, 2026
Can you provide a more specific example of a series of commands where you saw this occur? It's likely that the commands differ slightly, so the approval engine categorized them as distinct commands.
BlueBlazin commentedon Feb 10, 2026
@etraut-openai I think they are the same commands (but I will verify and get back to you), however they all have some other stuff before them (
FOO=1 bar --baz). Could it be that the permission UI is correctly parsing just the command but when that check happens the next time it tries matching the full command string from the beginning?etraut-openai commentedon Feb 10, 2026
Yeah, that's likely the cause. Specific examples would be useful when you have time. Thanks!
BlueBlazin commentedon Feb 11, 2026
@etraut-openai Yep, just been collecting a few. All of these prompted permission requests (for
cargo flamegraph):etraut-openai commentedon Feb 11, 2026
Thanks for the example. The command parser currently doesn't handle commands with an environment variable assignment prefix. That explains why the calls in your example above are not exempted by the "Don't ask me again" logic. We'll need to think about this case more to figure out the best way to handle it. Thanks again for the examples — very helpful!
Kl-11 commentedon Feb 15, 2026
We've been experiencing this too. With any command starting 'Node -'. Despite choosing many times yes and don't ask again. Maybe it's the same bug you've identified.
Changing the Permission at the bottom of the Codex app to Full Permission also didn't fix this. It still asked if it can proceed with the commands starting 'node -'.
I can imagine you've thought through the permission model well. In my humble view, there could be room for:
1- a 'Yes continue and accept all requests in this session' or something similar, instead of having to babysit Codex as is the case now.
2- this can be a new permission option from the dropdown list, so it would be:
A- default sandbox (manual accept)
B- default sandbox (auto accept)
C- Full permissions
Something like... with the objective of having a simple way to auto accept what codex is asking for, but within the sandbox current permissions.
almuqrin commentedon Feb 16, 2026
Hello everyone, can you please check this #11868
I've reproduced the issue, added a test, and verified that the test fails before my changes and passes after them.
danielhoop commentedon Mar 10, 2026
I think it is happending when the tool being called is outside the sandbox. Here is my bug description (feature request?):
When I instruct Codex to use a command-line tool located outside the project directory (sandbox), it repeatedly asks for permission to run the tool, each time with slightly different arguments. This happens even though I defined a generic prefix_rule.
It appears that prefix_rules are not applied when the tool itself is located outside the sandbox. Ironically, the tool I’m calling is intended to operate only within the sandbox.
It would be helpful to have a rule that always allows a specific tool to run, without requiring repeated permission requests.
GitMurf commentedon Mar 16, 2026
Yes @danielhoop checkout my comment here in another issue and let me know if this is what you are finding as well? #8537 (comment)
I thought it was just a Windows / PowerShell sandbox issue but maybe it is larger than that?
It makes Codex in the Windows Sandbox almost unusable because things like agent-browser SKILL / CLI Tool constantly need approval which means Codex cannot help with frontend web development unless I hand hold it approving every 15 seconds.
Christian-Kouts commentedon Aug 19, 2026
I set "Permissions updated to Full Access" and it still asks me to approve every little command. Its making this harness virtually unusable.