CLI shell/tool execution fails across sessions with exit code -1 and empty output

Open 💬 3 comments Opened Apr 2, 2026 by GarrettS

What version of Codex CLI is running?

codex-cli 0.118.0 / codex-cli 0.117.0

What subscription do you have?

$20 plan

Which model were you using?

gpt-5.2-codex

What platform is your computer?

Darwin 22.6.0 x86_64 i386

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.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗