bwrap: Unknown option --argv0
Resolved 💬 10 comments Opened Mar 20, 2026 by cvjxendra Closed Mar 21, 2026
💡 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.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_
10 Comments
A show stopper for my diffs.
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
This appears to me to be a real new bug, so I do not except it to be a duplicate.
I have the same issue on Linux debian1 6.1.0-37-amd64. /dev/null is also blocked from the sandbox.
same here
npm install -g @openai/codex@0.115.0, may be codex@0.116 have some wrong.
This is the way.
Em sex., 20 de mar. de 2026, 23:04, ronglingze @.***>
escreveu:
I reproduced the same failure with
codex-cli 0.116.x:In 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](url)
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.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).
I'm also seeing this bug on
22.04.1with Codexv0.116.0.