Context
When Codex runs inside an OpenAB-managed runtime that is already isolated by the outer container/VM, Codex may still try to start its own Linux sandbox for normal shell commands.
If the image/runtime does not include bubblewrap (bwrap), even read-only commands such as pwd or ls can fail before the command itself runs.
Symptom
Sandboxed shell commands fail with an error like:
bubblewrap is unavailable: no system bwrap was found on PATH
This can be confusing because the repo or command is not the problem. The failure happens in Codex's inner sandbox launcher.
Root Cause
Codex Linux sandbox modes such as read-only / workspace-write rely on bwrap to create the inner sandbox. In OpenAB deployments, Codex may already be running inside an isolated container or VM, so requiring another nested sandbox can be unnecessary and brittle unless the runtime image includes bubblewrap.
Recommended Documentation Update
Add a Codex runtime troubleshooting note explaining both options:
- Install/provide
bubblewrap in the runtime image if Codex's inner Linux sandbox should be used.
- If the outer OpenAB runtime already provides the desired isolation, explicitly disable Codex's inner sandbox:
# ~/.codex/config.toml
sandbox_mode = "danger-full-access"
approval_policy = "on-request"
or launch Codex with:
codex --sandbox danger-full-access
The docs should clarify that danger-full-access here disables Codex's inner sandbox only. It does not remove the outer OpenAB/container/VM isolation.
Suggested Locations
- Codex agent setup docs
- Runtime troubleshooting docs
- Any Helm/container examples that configure Codex sessions
Acceptance Criteria
Context
When Codex runs inside an OpenAB-managed runtime that is already isolated by the outer container/VM, Codex may still try to start its own Linux sandbox for normal shell commands.
If the image/runtime does not include
bubblewrap(bwrap), even read-only commands such aspwdorlscan fail before the command itself runs.Symptom
Sandboxed shell commands fail with an error like:
This can be confusing because the repo or command is not the problem. The failure happens in Codex's inner sandbox launcher.
Root Cause
Codex Linux sandbox modes such as read-only / workspace-write rely on
bwrapto create the inner sandbox. In OpenAB deployments, Codex may already be running inside an isolated container or VM, so requiring another nested sandbox can be unnecessary and brittle unless the runtime image includesbubblewrap.Recommended Documentation Update
Add a Codex runtime troubleshooting note explaining both options:
bubblewrapin the runtime image if Codex's inner Linux sandbox should be used.or launch Codex with:
The docs should clarify that
danger-full-accesshere disables Codex's inner sandbox only. It does not remove the outer OpenAB/container/VM isolation.Suggested Locations
Acceptance Criteria
bubblewrap is unavailablefailure mode.bwrapin already-sandboxed runtimes.