You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codex CLI on Windows hangs for minutes when executing PowerShell/shell commands #39484
CLIIssues related to the Codex CLIbugSomething isn't workingperformancetool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems
What terminal emulator and version are you using (if applicable)?
Windows Terminal with PowerShell
Codex doctor report
not available
What issue are you seeing?
Codex CLI becomes extremely slow when executing shell/PowerShell commands on Windows.
Normal text-only responses are immediate, but simple commands such as Get-Content and Get-ChildItem remain in "Working" for 30–50+ seconds and sometimes several minutes.
One occurrence remained at "Working (7m 03s)" before I interrupted it.
The exact same Get-Content command executes immediately when run directly in Windows PowerShell outside Codex CLI.
Restarting the PC did not resolve the issue.
The issue reproduced on both Codex CLI 0.145.0 and 0.144.6.
CLIIssues related to the Codex CLIbugSomething isn't workingperformancetool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Aug 19, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
ufrancesca06-eng commentedon Aug 19, 2026
Additional finding:
After changing:
[windows]
sandbox = "unelevated"
the long 20–40+ second hang disappeared, but sandboxed execution immediately failed with:
windows sandbox: SetTokenInformation(TokenDefaultDacl) failed: 1344
Codex then retried through the approval path and the same Get-ChildItem command completed successfully.
Direct PowerShell execution of the command takes about 13 ms.
Earlier investigation also showed a very large number of DENY ACE entries for unresolved SIDs on a Codex-flagged directory.
This appears related to Windows sandbox token/default-DACL construction rather than shell command execution itself.