Win: After upgrading Codex, I'm getting "windows sandbox: runner error: CreateProcessAsUserW failed: 1920"
What version of Codex CLI is running?
0.128.0
What subscription do you have?
Plus
Which model were you using?
gpt-5.5
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What terminal emulator and version are you using (if applicable)?
Terminal
What issue are you seeing?
Codex can't read any file and shows this error:
Ran cmd /c dir
└ execution error: Io(Custom { kind: Other, error: "windows sandbox: runner error: CreateProcessAsUserW failed: 1920" })
• I’m blocked by the local execution environment before I can read or edit the repo. Every shell call fails at process launch with:
windows sandbox: runner error: CreateProcessAsUserW failed: 1920
That means I couldn’t open {redacted}, inspect the codebase, apply patches, or run tests. I also checked MCP resources and the GitHub connector fallback, but this local CodeReviewer workspace is not exposed there.
Once the shell runner is working again, I can continue from the plan file and implement it end to end.
What steps can reproduce the bug?
- Start codex: "codex -a never -s workspace-write"
- Ask to implement any plan
What is the expected behavior?
_No response_
Additional information
_No response_
10 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Same issue "windows sandbox: runner error: CreateProcessAsUserW failed: 1920". Windows 10, Powershell 7.6.1
Same issue with Windows 11 25H2, PowerShell 7.6.1 and Codex Desktop 0.128.0.
Adding another Windows data point for this issue.
I am seeing the same sandbox runner failure:
In my case it is intermittent rather than a total failure of every command. After restarting Codex Desktop, I ran a small set of sandboxed commands in the same workspace:
rg --files ...succeeded, whileGet-Location,Get-ChildItem, andgit status --shortfailed before the command actually executed with the sameCreateProcessAsUserW failed: 1920error.rg --files,git status --short, andGet-Content -Raw README.mdsucceeded.Get-ChildItem ...still failed withCreateProcessAsUserW failed: 1920.So this looks like the same Windows sandbox process-spawn family as this issue and the linked duplicates, but not necessarily a simple "all commands always fail" case. PowerShell/cmdlet launches and concurrent shell starts seem more likely to trigger it, while some direct executables such as
rgcan still succeed.The failure happens at the sandbox runner/process creation layer, before user command output is produced.
The same issue can be reproduced in Codex Desktop 26.616.71553. It completely breaks the 'Approve for me' and 'Full Access' functionality, resulting in a terrible user experience!
Adding another Windows/Codex Desktop data point for the same
CreateProcessAsUserW failed: 1920sandbox runner failure.Environment:
OpenAI.Codex_26.623.4041.0_x64__2p2nqsd0c76g0C:\Users\arvid\Documents\Codex\2026-06-26\iObserved behaviour:
Get-Content -Path C:\Users\arvid\Documents\Codex\AGENTS.mdfails with:Get-LocationWrite-Output okRecovery attempts:
Workaround:
Get-Content -Path C:\Users\arvid\Documents\Codex\AGENTS.mdsucceeds when run with escalated read-only access.Duplicate/release-note check before commenting:
failed: 1920.openai/codexrelease notes via GitHub releaserust-v0.142.2published 2026-06-25 and did not see this sandbox launch failure called out there.Still present in the latest Codex Desktop release on this machine.
Observed on:
OpenAI.Codex_26.623.5546.0_x64__2p2nqsd0c76g0Repro evidence from this session:
Get-Content -Path "C:\Users\arvid\Documents\Codex\AGENTS.md"failed before PowerShell could execute.windows sandbox: runner error: CreateProcessAsUserW failed: 1920The same command succeeded when retried with the non-sandboxed/escalated workaround, so this still appears to be the sandbox process-launch failure rather than a problem with the PowerShell command or file path.
Still reproducing on the latest Codex Desktop update available to me.
Environment:
OpenAI.Codex_26.623.9142.0_x64__2p2nqsd0c76g0Repro from a fresh Codex Desktop thread:
Get-AppxPackage OpenAI.Codex | Select-Object Name, Version, PackageFullNamewindows sandbox: runner error: CreateProcessAsUserW failed: 1920The same failure happened earlier in the same thread when trying to read an attached text file with
Get-Content, before PowerShell could start. Retrying the same read-only command outside the sandbox worked, so this still appears to be the sandbox process-launch failure rather than the target command itself.One extra note: when run outside the sandbox in this environment,
Get-AppxPackageitself could not load the Appx module (Operation is not supported on this platform. (0x80131539)), so I used the installed WindowsApps package folder name above as the version source.Still reproducing after the latest Codex Desktop update available on this machine.
Environment:
OpenAI.Codex_26.623.11225.0_x64__2p2nqsd0c76g0Repro evidence from this session:
Get-Content -Path 'C:\Users\arvid\.codex\attachments\29a1da82-ead4-413c-b781-5d745a1ac35f\pasted-text.txt'windows sandbox: runner error: CreateProcessAsUserW failed: 1920I also checked the current upstream state before posting:
rust-v0.142.5, published 2026-07-01.So this still appears to be the same Windows sandbox process-launch failure rather than a problem with the PowerShell command, attachment path, or file permissions.
Resolved this by uninstall the pwsh and install it from https://github.com/PowerShell/PowerShell/releases