Bug Report: Commands failed to run in sandbox in Codex CLI
Resolved 💬 6 comments Opened Oct 8, 2025 by Icarus603 Closed Oct 8, 2025
What version of Codex is running?
codex-cli 0.45.0
Which model were you using?
gpt-5-codex
What platform is your computer?
Darwin 24.6.0 arm64 arm
What steps can reproduce the bug?
This kind of errors occurred a lot: I asked codex to run "git add ." and it failed immediately and returned stuff like "failed in sandbox". But when I asked it to run it again and ask for my approval, it succeeded easily. Other kinds of commands failed like this too. Seems that Codex tends to run commands (bash/python etc.) in sandbox but not locally... Could you fix this and make it more robust?
What is the expected behavior?
The agent already lives in the terminal so it shouldn't be running things in sandbox. Codex CLI should just run the commands locally. (Donno if this is right...)
What do you see instead?
_No response_
Additional information
_No response_
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗