Codex Hanging When Using All Shell Commands (Powershell)
Resolved 💬 2 comments Opened Jun 5, 2026 by galkreiser1 Closed Jun 6, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex CLI is running?
0.137.0
What subscription do you have?
Plus
Which model were you using?
5.4, 5.5
What platform is your computer?
Windows 11
What terminal emulator and version are you using (if applicable)?
_No response_
Codex doctor report
not pasting it publically on github..
What issue are you seeing?
Codex shell execution appears stuck on trivial commands. On June 5, 2026, a minimal PowerShell command such as Write-Output 'ok' did not return in the session. The same sanity check was then delegated to a
sub-agent, and that sub-agent also remained running for 60 seconds without returning any result and had to be shut down manually. There was no useful shell output, timeout message, or normal completion
result.
What steps can reproduce the bug?
- Start a Codex session.
- Ask Codex to run a any / trivial shell command such as Write-Output 'ok'.
- Observe that the command does not return promptly.
What is the expected behavior?
Codex being able to use shell commands.
Additional information
_No response_
2 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Thanks for reporting, but there's not enough information to repro or diagnose the problem.
We haven't received other reports of this problem, so it's likely specific to your system or configuration. If you're so inclined, you could clone the code repo and ask codex to help you debug the problem.