Version 0.42.0 - new required approvals breaks workflows

Resolved 💬 4 comments Opened Sep 27, 2025 by olliecrow Closed Jan 10, 2026
Safer command execution: dangerous command checks in core and Windows-specific safety (https://github.com/openai/codex/pull/4211, https://github.com/openai/codex/pull/4119).

From: https://github.com/openai/codex/releases/tag/rust-v0.42.0

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.

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗