Skip to content

Codex does not seem to know when a tool call fails due to sandboxing #8433

@igor-makarov

Description

@igor-makarov

What version of Codex is running?

codex-cli 0.77.0

What subscription do you have?

API key

Which model were you using?

gpt-5.1-codex-max

What platform is your computer?

Darwin 24.6.0 arm64 arm

What issue are you seeing?

When Codex tries to run some commands, they fail in odd ways:

In these cases (and I'm sure I've had others), Codex is completely unaware that these are sandboxing issues, and therefore tries to resolve the issues in ways that don't make sense - deleting git index, trying to find an Xcode workspace file, etc.

I am running with these security settings:

Approval: on-request
Sandbox: workspace-write

I believe some indication to the model that "the command attempted to cross a sandbox boundary" might be helpful.

What steps can reproduce the bug?

Run codex with xcodebuild.

What is the expected behavior?

Sandbox permission prompt

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIbugSomething isn't workingtool-callsIssues related to tool calling

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions