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
'Yes, and don't ask again for commands that start with' too narrow #8778
My approach is like this way - Modify both functions to use only the first token (base command) instead of the full command
Change will be affected try_derive_execpolicy_amendment_for_prompt_rules() and try_derive_execpolicy_amendment_for_allow_rules() function, let me know if I can put with this suggestion.
The parameters for a command can greatly impact what it does. For example, rm foo and rm -rf . have very different effects, so we can't use just the first token.
If you want finer-grained control over commands that you allow, you can check out our recently-added support for execution policy rules.
The parameters for a command can greatly impact what it does. For example, rm foo and rm -rf . have very different effects, so we can't use just the first token.
If you want finer-grained control over commands that you allow, you can check out our recently-added support for execution policy rules.
Why don't let the model decide what generality of no prompt to suggest?
Every other CLI editing tool handles this gracefully. If it requests too broad a command, the user will just reject and explain why.
As it is, it's a useless option as it uses the entire command as "...commands that start with..."
Would you like to run the following command?
$ Select-String -Path js\app.js -Pattern "searchUrl" -Context 1,1
1. Yes, proceed (y)
› 2. Yes, and don't ask again for commands that start with `Select-String -Path js\app.js -Pattern "searchUrl"
-Context 1,1` (p)
3. No, and tell Codex what to do differently (esc)
Like, this is baffling, how is this not solved? It makes the CLI completely useless as I need to approve EVERY SINGLE COMMAND it tries to execute, unless it's doing EXACTLY the same operation again.
And it's the same every time it tries to save a file:
Would you like to make the following edits?
js/app.js (+6 -2)
...
› 1. Yes, proceed (y)
2. Yes, and don't ask again for these files (a)
3. No, and tell Codex what to do differently (esc)
Should I really have to approve every file to be written to? Why don't you let me approve writing to files for the session, and for all files inside the working directory? Is this not the entire point of the tool?!
Activity
Gumbraise commentedon Jan 6, 2026
still on 0.78.0
fury0928 commentedon Jan 8, 2026
@etraut-openai may I work on this bug?
My approach is like this way -
Modify both functions to use only the first token (base command) instead of the full commandChange will be affected
try_derive_execpolicy_amendment_for_prompt_rules()andtry_derive_execpolicy_amendment_for_allow_rules()function, let me know if I can put with this suggestion.Thank you
etraut-openai commentedon Jan 13, 2026
The parameters for a command can greatly impact what it does. For example,
rm fooandrm -rf .have very different effects, so we can't use just the first token.If you want finer-grained control over commands that you allow, you can check out our recently-added support for execution policy rules.
AprilGrimoire commentedon Jan 16, 2026
Why don't let the model decide what generality of no prompt to suggest?
MNeMoNiCuZ commentedon Feb 5, 2026
Every other CLI editing tool handles this gracefully. If it requests too broad a command, the user will just reject and explain why.
As it is, it's a useless option as it uses the entire command as "...commands that start with..."
Like, this is baffling, how is this not solved? It makes the CLI completely useless as I need to approve EVERY SINGLE COMMAND it tries to execute, unless it's doing EXACTLY the same operation again.
And it's the same every time it tries to save a file:
Should I really have to approve every file to be written to? Why don't you let me approve writing to files for the session, and for all files inside the working directory? Is this not the entire point of the tool?!
What am I missing?
jamesxsc commentedon Feb 27, 2026
Also happy to work on this
MNeMoNiCuZ commentedon Feb 27, 2026
Please @jamesxsc, be the hero we need!