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
There is currently no way to run commands without sandboxing on platforms that Codex assumes support it (i.e., darwin and linux).
This prevents Codex from working in environments like Windows WSL 1, which is detected as linux but does not support seccomp/landlock.
The --dangerously-auto-approve-everything flag mentioned in the resulting error message has no effect, and I couldn’t find any reference to it in the Codex source code.
Similarly, setting the CODEX_UNSAFE_ALLOW_NO_SANDBOX environment variable doesn’t help, as its evaluation happens after the platform check in /codex-cli/src/utils/agent/handle-exec-command.ts.
Possible solution:
I'm not sure if the current behavior of CODEX_UNSAFE_ALLOW_NO_SANDBOX is intentional, but I would suggest changing it to fully disable sandboxing, even on platforms where it's theoretically available.
Him188, s0me0ne-unkn0wn, 16francej, robermar23, raphtlw and 2 more