Shell commands hang for several minutes or abort in Codex session while same commands run instantly locally
What version of Codex CLI is running?
codex-cli 0.144.3
What subscription do you have?
ChatGPT Plus
Which model were you using?
gpt-5-codex
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What terminal emulator and version are you using (if applicable)?
Windows PowerShell / PowerShell on Windows. Codex was running from the Codex chat/session environment. No tmux/screen/zellij. I also tested similar commands outside Codex and they completed instantly.
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1784019655s since unix epoch",
"overallStatus": "ok",
"codexVersion": "0.144.3",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
What issue are you seeing?
Codex shell commands in one session became extremely slow or hung indefinitely after attempting to write a Markdown spec file into
a local repository path.
The repository path was:
C:\Users\barth\Desktop\school\Web Dev Tech\Hostel Link
After that, even very small commands such as:
```powershell
Get-Location
Test-Path "C:\Users\barth\Desktop\school\Web Dev Tech\Hostel Link"
cmd /c echo ok
echo ok
either aborted or took roughly 8-11 minutes to return.
The same commands run instantly in my own PowerShell and in another local tool/session, so the issue appears specific to the Codex
session/tool runner rather than my machine, PowerShell, or the repository.
The agent was not running network commands, git pull, git push, or remote GitHub operations. It was only trying local filesystem/
shell operations.
What steps can reproduce the bug?
Uploaded thread: 019f5dee-ed58-7300-a6cc-f774fbe416e1
What is the expected behavior?
Small local shell commands should complete quickly, usually within a few seconds.
If a file write fails or hangs, aborting it should not leave the Codex session's command runner in a degraded state where unrelated
commands like `Get-Location` or `echo ok` take many minutes.
### Additional information
The issue caused several hours of lost work because the agent repeatedly tried small diagnostic commands and they kept hanging or
returning after many minutes.
I verified that the local machine and repository are not the bottleneck:
- The same `Get-ChildItem`, `Test-Path`, and simple shell commands run quickly outside this Codex session.
- Another tool/session was able to access the same folder normally.
- The issue seems isolated to the Codex session/tool runner state.
Please also note: the repository's git remote had previously contained an embedded GitHub token. I am not including that remote URL
here for security reasons.This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗