openai / openai/codex

Windows: local tools fail with sandbox setup error 0xC0000142

Open
#42,774 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app bug sandbox tool-calls windows-os
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:

  1. Open the desktop app on the affected Windows PC.
  2. Ask the assistant to run Get-Date or read a workspace file.
  3. 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?
  1. Open the ChatGPT desktop app on the affected Windows PC.
  2. Ask it to run a basic local command such as Get-Date, or read a workspace file.
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.