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
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:
gitwrites (like in codex tries to delete .git/index.lock when performing git operations #6797)xcodebuild(Apple's CLI for building with Xcode)swiftformat(Swift auto-formatter, has shared cache outside the sandbox)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:
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
codexwithxcodebuild.What is the expected behavior?
Sandbox permission prompt
Additional information
No response