Repository navigation
Closed as duplicate
Labels
CLIIssues related to the Codex CLIbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
Description
What version of Codex CLI is running?
codex-cli 0.116.0
What subscription do you have?
Plus
Which model were you using?
gpt-5.4 high
What platform is your computer?
WSL/Ubuntu
What terminal emulator and version are you using (if applicable)?
Windows Terminal
What issue are you seeing?
I'm hitting a Codex CLI sandbox/runtime bug that blocks normal command execution.
Symptoms:
- regular local commands fail immediately before the command itself runs
- the failure happens in the sandbox wrapper, not in my command
- the error is:
bwrap: Unknown option --argv0
Why this is a problem:
- it prevents basic local inspection commands such as
git diff,rg, and file-processing scripts - in my case it made review/verification unreliable
- I had to switch to a less normal execution path just to continue working
What I expected:
- commands should run normally inside the sandbox, or fail because of my command
bwrapshould not reject its own arguments
What seems to be happening:
- Codex is invoking
bubblewrapwith--argv0 - the installed
bwrapon this environment does not support that option - so the sandbox bootstrap fails before user commands execute
Environment:
- Linux/WSL-based development environment
- Codex CLI session
- the issue appears at command startup, not during the actual tool logic
Impact:
- breaks normal command execution in the session
- makes code review results untrustworthy
- forces use of escalated or alternate execution routes
Please investigate compatibility between Codex's sandbox launcher and the installed bwrap version, especially around the use of --argv0.
What steps can reproduce the bug?
Uploaded thread: 019d07b7-3614-75f2-8899-71e9d6aec06c
What is the expected behavior?
Don't show the error message.
Additional information
No response
Reacted by Peleg Michaeli, John Norén, Guotai and JP
Metadata
Metadata
Assignees
Labels
CLIIssues related to the Codex CLIbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
Activity
cvjxendra commentedon Mar 20, 2026
A show stopper for my diffs.
github-actions commentedon Mar 20, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
pelegm commentedon Mar 20, 2026
This appears to me to be a real new bug, so I do not except it to be a duplicate.
johnnoren commentedon Mar 21, 2026
I have the same issue on Linux debian1 6.1.0-37-amd64. /dev/null is also blocked from the sandbox.
pedrosarkis commentedon Mar 21, 2026
same here
ronglingze commentedon Mar 21, 2026
npm install -g @openai/[email protected], may be [email protected] have some wrong.
cvjxendra commentedon Mar 21, 2026
sgt1796 commentedon Mar 21, 2026
I reproduced the same failure with
codex-cli 0.116.x:codex sandbox linux /usr/bin/echo hello # bwrap: Unknown option --argv0In my case, this was not a missing-
/usr/bin/bwrapproblem./usr/bin/bwrapexisted, but the installed version was too old/incompatible for the arguments Codex is passing (--argv0).Working workaround:
It is also mentioned here https://github.com/openai/codex/issues/15283#issuecomment-4098134409
One WSL-specific gotcha: the active config is the Linux-side
~/.codex/config.toml, not the Windows-sideC:\Users\<user>\.codex\config.toml.So the underlying issue seems to be:
bwrapbwrapdoes not support--argv0This looks closely related to
#15335/#15291, but the useful immediate workaround on WSL isuse_legacy_landlock = true.oguz-hanoglu commentedon Mar 25, 2026
Workaround (worked at Ubuntu 22.04.5 LTS):
Manually install new one. Symlink the old one(bubblewrap 0.6.1) to the new one(bubblewrap 0.10.0).
ttulttul commentedon Mar 27, 2026
I'm also seeing this bug on
22.04.1with Codexv0.116.0.