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
Command is interpreted as "failing" (i.e. returns an error code) but isn't attributed to the sandbox.
What do you see instead?
• Ran bash -c false
└ failed in sandbox:
Additional information
This is a reduction of the more complicated case I see, where some testing triggers this behavior. I tried to come up with the most basic test case that plainly can't be caused by the sandbox/seatbelt.
Reacted by dipsy, Oliver Mannion and Alexander Ljungberg
For now, I am using a small patch to nullify this issue, since it is almost never a sandbox issue. It seems odd for the codebase to so aggressively assume it is always a sandbox issue, when usually it... isn't?
I am not enough of a rust programmer to trace the intended path here and fix the issue more properly, but this does work as a very rough workaround.
diff --git a/codex-rs/core/src/exec.rs b/codex-rs/core/src/exec.rs
index d84bbc9fc..7d2b7d1cc 100644
--- a/codex-rs/core/src/exec.rs+++ b/codex-rs/core/src/exec.rs@@ -208,8 +208,7 @@ fn is_likely_sandbox_denied(sandbox_type: SandboxType, exit_code: i32) -> bool {
return false;
}
- // For all other cases, we assume the sandbox is the cause- true+ false
}
Activity
dipsy commentedon Oct 7, 2025
same bug in codex-cli 0.45.0 (not in 0.44)
corrylc commentedon Oct 7, 2025
For now, I am using a small patch to nullify this issue, since it is almost never a sandbox issue. It seems odd for the codebase to so aggressively assume it is always a sandbox issue, when usually it... isn't?
I am not enough of a rust programmer to trace the intended path here and fix the issue more properly, but this does work as a very rough workaround.
corrylc commentedon Oct 9, 2025
Looks like #4874 is resolves, at least in part, this issue. Will test a bit more, but it covers my basic test above 🎉
corrylc commentedon Oct 9, 2025
Closing, as I don't see any issues following the fix PR.