Windows: local tools fail with sandbox setup error 0xC0000142
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.901.22334 (About dialog); Windows package: 26.901.4073.0
What subscription do you have?
plus
What platform is your computer?
Windows 11
What issue are you seeing?
Steps to reproduce:
- Open the desktop app on the affected Windows PC.
- Ask the assistant to run Get-Date or read a workspace file.
- The local tool fails before completing the operation.
Expected behavior: local commands and file operations should work reliably within the permitted workspace.
What steps can reproduce the bug?
- Open the ChatGPT desktop app on the affected Windows PC.
- Ask it to run a basic local command such as Get-Date, or read a workspace file.
- The tool fails with "code-mode host exited during handshake" or "orchestrator_helper_exit_nonzero" with exit code -1073741502.
Two commands briefly succeeded after a restart, but subsequent attempts failed again.
Feedback ID: 01a06c68-7b30-71b1-9287-8a6ff3c2a8ce
What is the expected behavior?
Local tools should start reliably and allow the assistant to read and create files within the permitted workspace, as they do on my notebook.
Additional information
Feedback ID: 01a06c68-7b30-71b1-9287-8a6ff3c2a8ce
The app is up to date. Restarting Windows and repairing the app through Windows Settings did not resolve the issue. The same app works on my notebook.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report names the Windows desktop app, local tool startup, and the handshake errors but no repository file or test. Start by reproducing Get-Date or workspace-file access on Windows and trace the failing sandbox setup; done means permitted local commands and file operations complete reliably without the reported exit code.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100