Codex not honoring yolo
Resolved 💬 2 comments Opened Jan 21, 2026 by waynchi Closed Jan 25, 2026
What version of Codex is running?
0.87.0
What subscription do you have?
Plus
Which model were you using?
gpt-5.1-codex-max
What platform is your computer?
Darwin 23.4.0 arm64 arm
What terminal emulator and version are you using (if applicable)?
wezterm
What issue are you seeing?
I run:
codex exec --yolo -s workspace-write -C ./ testing
I get
Not inside a trusted directory and --skip-git-repo-check was not specified.
Same situation occurs with `--dangerously-bypass-approvals-and-sandbox"
Past issues:
https://github.com/openai/codex/issues/9144
https://github.com/openai/codex/issues/7522
What steps can reproduce the bug?
I run:
codex exec --yolo -s workspace-write -C ./ testing
I get
Not inside a trusted directory and --skip-git-repo-check was not specified.
Same situation occurs with `--dangerously-bypass-approvals-and-sandbox"
Past issues:
https://github.com/openai/codex/issues/9144
https://github.com/openai/codex/issues/7522
What is the expected behavior?
_No response_
Additional information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗