Codex CLI executes commands successfully but stdout/stderr is always empty (exit code 0)

Resolved 💬 5 comments Opened Jan 12, 2026 by Empty0Qc Closed Jan 13, 2026

What version of Codex is running?

v0.80.0

What subscription do you have?

gpt pro

Which model were you using?

gpt-5.2-codex high

What platform is your computer?

macos

What issue are you seeing?

Description

When using Codex CLI, all commands execute successfully (exit code = 0), but stdout and stderr are always empty, including basic commands like echo, pwd, ls, /bin/echo, etc.
This makes the CLI effectively unusable for any task requiring command output.

This issue persists across restarts and appears to be a systemic problem in the runner/output capture layer rather than a user environment issue.

---

Environment

  • Codex CLI version: v0.80.0
  • OS: macOS (Intel Mac, macOS 10.15.7)
  • Shell: zsh / bash (tested both)
  • Project directory: ~/Documents/project/android-assistant
  • Terminal: Web UI + Codex CLI

---

Expected behavior

Commands such as:

echo test
pwd
ls -la
whoami
date

### What steps can reproduce the bug?

### Bug description
Codex CLI executes commands successfully (exit code = 0), but stdout/stderr is always empty.  
This happens for all commands, including basic ones like `echo`, `pwd`, `ls`, `/bin/echo`, etc.  
The issue persists across restarts and appears unrelated to shell config or user environment.

### Steps to reproduce
1. Open Codex CLI (version v0.80.0)
2. Run any of the following commands:
   ```bash
   echo test
   pwd
   ls -la
   whoami
   /bin/echo test
   /bin/ls -la .


### What is the expected behavior?

_No response_

### Additional information

_No response_

View original on GitHub ↗

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