Unable to run any shell commands

Resolved 💬 2 comments Opened Jan 7, 2026 by zwettemaan Closed Apr 18, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

codex-cli 0.79.0

What subscription do you have?

ChatGPT Plus

Which model were you using?

gpt-5.2-codex

What platform is your computer?

Mac OS Sequoia 15.6.1

What issue are you seeing?

After starting codex, cannot do anything, even on a trivial project folder with just a README.md file. If I ask 'Display the README.md' it tries all kinds of things and eventually gives up and says: "• I’m unable to run any shell commands right now — even echo test is timing out in this environment. Can you check whether the command runner is functioning, or share the README.md contents directly?"

mkdir -p /tmp/codex-smoke && cd /tmp/codex-smoke && echo hi > README.md

codex → Approval mode Agent (current) (workspace sandbox)

Ask “run echo test” → returns (no output) then times out

codex sandbox macos -- /bin/echo test works

!echo test works

Agent (full access) works

What steps can reproduce the bug?

Uploaded thread: 019b9abf-4181-7490-97f1-5c7700e965f5

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

2 Comments

etraut-openai contributor · 7 months ago

The agent is attempting to execute shell commands, but they are all timing out. This appears to be a configuration issue in your system, perhaps with your bash configuration scripts? You'll need to do some debugging on your system to figure out the underlying cause.

etraut-openai contributor · 4 months ago

Closing outdated bug.