Codex not honoring yolo

Resolved 💬 2 comments Opened Jan 21, 2026 by waynchi Closed Jan 25, 2026
💡 Likely answer: A maintainer (swordfish444, contributor) responded on this thread — see the highlighted reply below.

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_

View original on GitHub ↗

2 Comments

swordfish444 contributor · 7 months ago

@etraut-openai This looks like it’s already fixed by #9590 (merged 2026-01-23): “skip git repo check when --yolo flag is used” (and it closed #7522).

Suggestion: mark #9579 as duplicate/resolved and ask the reporter to upgrade to a release that includes #9590.

etraut-openai contributor · 7 months ago

@waynchi, as @swordfish444 notes above, I think the latest version of Codex addresses this issue. I'm going to close. Please give it a try. If you're still seeing a problem, please use the /feedback slash command to upload your session details and open a new issue.