Skip to content

Version 0.42.0 - new required approvals breaks workflows #4351

Closed

Description

@olliecrow

Safer command execution: dangerous command checks in core and Windows-specific safety (#4211, #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.

Activity

  1. moxi000 commented on Sep 28, 2025

    @moxi000

    same

  2. zbynekdrlik commented on Oct 5, 2025

    @zbynekdrlik

    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

  3. dimfeld commented on Oct 6, 2025

    @dimfeld

    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.

  4. added
    bug
    sandbox
    on Nov 5, 2025
  5. etraut-openai commented on Jan 10, 2026

    @etraut-openai
    Contributor

    Closing old bug.

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

    bugsandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions