-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Description
What version of Codex is running?
codex-cli 0.116.0
What subscription do you have?
Pro
Which model were you using?
Observed in the Codex CLI agent environment. The failure appears to happen before model-specific behavior matters.
What platform is your computer?
Ubuntu 20.04.6 LTS (focal), amd64
What issue are you seeing?
Description
On Ubuntu 20.04.6 with the system bubblewrap package (0.4.0-1ubuntu4.1), sandboxed tool calls fail immediately with:
bwrap: Unknown option --argv0
In the same environment, commands that bypass the normal sandbox path can still run, which suggests this is specifically a sandbox wrapper compatibility problem.
Reproduction
- Use Ubuntu 20.04.6 LTS with
/usr/bin/bwrapprovided by the distro packagebubblewrap 0.4.0-1ubuntu4.1 - Run Codex CLI (
codex-cli 0.116.0) - Trigger a normal sandboxed tool call
- Observe immediate failure with
bwrap: Unknown option --argv0
Expected behavior
Codex should either:
- gracefully support older
bubblewrapversions, - detect that the installed
bwrapdoes not support--argv0and show a clearer compatibility error, - or provide a documented fallback path before attempting sandbox launch.
Additional evidence
bwrap --versionreportsbubblewrap 0.4.0bwrap --helpdoes not list--argv0/usr/bin/bwrapis owned by the Ubuntu packagebubblewrapapt-cache policy bubblewrapon this machine shows:
Installed: 0.4.0-1ubuntu4.1
Candidate: 0.4.0-1ubuntu4.1
500 http://mirrors.aliyun.com/ubuntu focal-updates/main amd64 Packages
500 http://mirrors.aliyun.com/ubuntu focal-security/main amd64 Packages
This means a normal apt upgrade on Ubuntu 20.04 will not reach a version that supports --argv0.
Likely root cause
Codex appears to assume bubblewrap supports --argv0, but Ubuntu 20.04 ships an older version that does not. This seems like a Codex / local sandbox compatibility gap rather than a repo-specific problem.