You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Not inside a trusted directory" error when with "--yolo" flag #7522
API Token passed to stdin of codex login (doesn't matter for this ticket)
Which model were you using?
Doesn't matter
What platform is your computer?
Linux 6.14.0-36-generic x86_64 x86_64
What issue are you seeing?
I'm running codex exec in an externally sandboxed environment (docker image) with --dangerously-bypass-approvals-and-sandbox flag (alias --yolo).
I get
[cmd] > Not inside a trusted directory and --skip-git-repo-check was not specified.
and codex exits with code 1.
What steps can reproduce the bug?
Run with --dangerously-bypass-approvals-and-sandbox
What is the expected behavior?
Just runs, skips all checks as documented
Additional information
Adding --skip-git-repo-check works but it shouldn't be necessary since --yolo is documented to Skip all confirmation prompts and execute commands without sandboxing. EXTREMELY DANGEROUS. Intended solely for running in environments that are externally sandboxed
Activity
fix(exec): skip git repo check when --yolo flag is used
fix(exec): skip git repo check when --yolo flag is used (openai#9590)
fix(exec): skip git repo check when --yolo flag is used (openai#9590)
fix(exec): skip git repo check when --yolo flag is used (openai#9590)
fix(exec): skip git repo check when --yolo flag is used (openai#9590)