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
Version 0.42.0 - new required approvals breaks workflows #4351
Version 0.42.0 enforces approvals for some commands (eg rm -f, git reset, etc).
These approvals seem to be enforced always, irrespective of whether various bypass mechanisms are enabled or not (eg --dangerously-bypass-approvals-and-sandbox, approval_policy="never", etc).
I couldn't seem to find a way to permit all commands with the new 0.42.0.
This breaks several of our automated workflows.
Is there a way to bypass the requirement for these approvals?
For now, I'm pinning 0.41.0.
Reacted by Johannes Schickling, jskorlol, Daniel Imfeld, vuyelwadr, Joshua Warren, inst-attract, 0xc1f, marco-altran, Yorgo, zbynekdrlik and 3 more
Same here, strong reason to switch back to claude. Main positive of codex was that was working without interruptions. Now unusable as in codex previously. Simple rm on highly safe vm with dangerously-bypass-approvals-and-sandbox and it not work without interruption any more
If you're comfortable compiling your own, it's pretty easy to modify this behavior. For example in 44624bd I changed it to only flag rm commands where one of the arguments starts with /, and if you really want you could replace the whole function body with false to disable it completely.
Activity
moxi000 commentedon Sep 28, 2025
same
zbynekdrlik commentedon Oct 5, 2025
Same here, strong reason to switch back to claude. Main positive of codex was that was working without interruptions. Now unusable as in codex previously. Simple rm on highly safe vm with dangerously-bypass-approvals-and-sandbox and it not work without interruption any more
dimfeld commentedon Oct 6, 2025
If you're comfortable compiling your own, it's pretty easy to modify this behavior. For example in 44624bd I changed it to only flag
rmcommands where one of the arguments starts with/, and if you really want you could replace the whole function body withfalseto disable it completely.etraut-openai commentedon Jan 10, 2026
Closing old bug.