Codex demands to create sandbox in YOLO mode
Open 💬 3 comments Opened Mar 18, 2026 by lostmsu
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex CLI is running?
codex-cli 0.115.0
What subscription do you have?
Plus
Which model were you using?
_No response_
What platform is your computer?
Windows
What terminal emulator and version are you using (if applicable)?
_No response_
What issue are you seeing?
Codex demands creating a sandbox even when I run it with --yolo
What steps can reproduce the bug?
On a fresh system run codex --yolo in any directory
You get trust folder prompt (separate existing issue)
Followed by a prompt to create a sandbox
What is the expected behavior?
No questions asked
Additional information
_No response_
3 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
This is working as intended. The trust prompt isn't the same as a sandbox. If you run with
--yoloyou will not have the protections of a sandbox. The trust prompt determines whether the project is trusted and controls, for example, whether to load configuration overrides from that project.@etraut-openai the trust is not the subject of this bug. The subject of this bug is the demand to create sandbox when
--yolois on. If I only ever run codex with--yoloI will never need the sandbox.