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
{{ message }}
Repository navigation
CLI shell/tool execution fails across sessions with exit code -1 and empty output #16619
What terminal emulator and version are you using (if applicable)?
Mac Terminal
What issue are you seeing?
What version of Codex is running?
Codex is unable to determine from affected sessions because basic shell execution is failing there. I can provide the exact version separately if needed. But codex-cli 0.118.0 and codex-cli 0.117.0 both exhibit the problem.
Which model were you using?
GPT-5 family coding model in Codex CLI - codex-cli 0.118.0 / codex-cli 0.117.0
What platform is your computer?
macOS 13.x, bash shell
What issue are you seeing?
Basic local shell execution is broken across all of my coding sessions, not just one. Trivial commands like pwd, ls, git status, and sed fail with exit code -1 and no meaningful stdout/stderr.
Was working fine yesterday. Today it is broken.
What steps can reproduce the bug?
Steps to reproduce
Start a coding session and ask the agent to run simple local commands such as:
pwd
ls
git status
sed -n '1,20p' <file>
What is the expected behavior?
These commands should run normally, or at minimum fail with an actionable error.
Additional information
Actual behavior
They fail with exit code -1 and no useful output. The failures persist across retries, across unrelated commands, and across separate sessions, both with latest codex update and prior minor update.
This makes the coding environment mostly useless for repo work. The agent cannot inspect the workspace, verify git state, read repo files, or perform normal coding tasks.
Unfortunately, I'm only able to repro; can't make it go away.
As stated, both codex-cli 0.118.0 and codex-cli 0.117.0 exhibit the problem.
And I just got this:
› Piecemeal docs change proposal incoming.The application panicked (crashed).
Message: /tmp is absolute: Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" }
Location: protocol/src/protocol.rs:1036nts/code-guidelines
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
Warning: SpanTrace capture is Unsupported.
Ensure that you've setup a tracing-error ErrorLayer and the semver versions are compatible
^C
^C^C
— and as can be seen, ctrl+c did not work. That shows codex processes failed in failed state. IOW, not fail safe.
Activity
github-actions commentedon Apr 2, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
etraut-openai commentedon Apr 2, 2026
If you're able to repro, please use
/feedbackto upload your log and session details, then post the thread ID here.GarrettS commentedon Apr 3, 2026
Unfortunately, I'm only able to repro; can't make it go away.
As stated, both codex-cli 0.118.0 and codex-cli 0.117.0 exhibit the problem.
And I just got this:
— and as can be seen, ctrl+c did not work. That shows codex processes failed in failed state. IOW, not fail safe.