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_

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 5 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #13663
  • #15074
  • #14547
  • #14345

Powered by Codex Action

etraut-openai contributor · 5 months ago

This is working as intended. The trust prompt isn't the same as a sandbox. If you run with --yolo you 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.

lostmsu · 5 months ago

@etraut-openai the trust is not the subject of this bug. The subject of this bug is the demand to create sandbox when --yolo is on. If I only ever run codex with --yolo I will never need the sandbox.