Skip to content

Windows Codex execution helper fails during sandbox setup refresh with node_repl.exe sharing violation (os error 32) #52269

Open

Description

@PAversano

What version of the Codex App are you using (From “About Codex” dialog)?

Version 26.1002.52244

What subscription do you have?

Pro

What platform is your computer?

Windows Surface Pro 1st Edition Snapdragon Model 2110

What issue are you seeing?

Summary

Codex local execution is failing on Windows before any shell command can start.

Even a brand-new local task running only:

Get-Location

### What steps can reproduce the bug?

1. Open Codex desktop app.
2. Open or create a local task.
3. Point it at:
   C:\Projects\GuardianPost
4. Run only:
   Get-Location
5. The execution helper fails before the command launches.
The same behavior occurs after:
- restarting Codex,
- rebooting Windows,
- creating a brand-new local task.

### What is the expected behavior?

The Codex execution helper should initialize successfully and run basic commands such as:
Get-Location. Actual behavior
Codex reports that the execution helper failed to start.
setup_error.json contains:
{
  "code": "helper_unknown_error",
  "message": "setup refresh had errors"
}

The sandbox log repeatedly shows failure while validating runtime read/execute access on:
C:\Users\phili\AppData\Local\OpenAI\Codex\runtimes\cua_node\5543cb366c7bee11\bin\node_repl.exe
Relevant error:
runtime read/execute validation failed:
validate runtime read/execute access on
C:\Users\phili\AppData\Local\OpenAI\Codex\runtimes\cua_node\5543cb366c7bee11\bin\node_repl.exe:
open ACL target for root-only update:
The process cannot access the file because it is being used by another process.
(os error 32)

This is followed by:
setup error: setup refresh had errors

### Additional information

The problem appears to happen during Codex sandbox setup before repository access.
This does not appear to be specific to the GuardianPost repository.
No project files or production state were modified during troubleshooting.
Request. Troubleshooting already performed
- Fully restarted Codex desktop app.
- Rebooted Windows.
- Created brand-new local Codex tasks.
- Verified intended workspace path.
- Confirmed normal PowerShell works outside Codex.
- Confirmed node_repl.exe exists.
- Confirmed file ownership/permissions appear normal:
  - current Windows user: FullControl
  - SYSTEM: FullControl
  - Administrators: FullControl
  - CodexSandboxUsers: ReadAndExecute
- Resource Monitor did not show a persistent handle.
- Identified multiple Codex node_repl.exe / cua_node processes.
- Closed Codex and confirmed those processes were gone.
- Reopened Codex and retried Get-Location.
- The failure immediately returned.
Additional observations
The problem appears to happen during Codex sandbox setup before repository access.
This does not appear to be specific to the GuardianPost repository.
No project files or production state were modified during troubleshooting.
Request
Please investigate a Windows Codex sandbox/runtime race or file-sharing issue involving node_repl.exe during setup refresh / ACL validation.
The repeated os error 32 suggests the runtime file is being held open while Codex attempts to update or validate ACLs.

Before submitting, add your **Codex app version** and **Windows version/build** if you can find them. That will make the report more useful to the engineering team.

Activity

  1. added
    app
    on Oct 8, 2026
  2. added
    bug
    windows-os
    sandbox
    on Oct 8, 2026
  3. PAversano commented on Oct 8, 2026

    @PAversano
    Author

    I reviewed the suggested duplicates. #52243 appears to match my case most closely, with #52233 also describing the same node_repl.exe / os error 32 sandbox setup failure. My issue reproduces after Windows reboot, full Codex restart, fresh local task, and clearing stale node_repl.exe/

  4. neilestate commented on Oct 9, 2026

    @neilestate

    I'm experiencing the same issue on Windows 10 with the latest Codex desktop app.

    The sandbox fails before executing even Get-Location, reporting setup refresh had errors.

    I confirmed the failure using Sysinternals Process Monitor:

    • Process: codex-windows-sandbox-setup.exe
    • Operation: CreateFile
    • Result: SHARING VIOLATION
    • Target: Codex cua_node runtime executable
    • Sandbox log: node_repl.exe ACL validation fails with OS error 32

    I've restarted Windows, restarted Codex, removed a recently installed plugin, verified the executable permissions, and renamed the runtime folder to force a fresh rebuild. The problem persists.

    Is there a confirmed workaround or an upcoming fix for this Windows sandbox initialization failure?

  5. bigbaraka16 commented on Oct 10, 2026

    @bigbaraka16

    Same root cause here, but from the CLI: codex-cli 0.162.0 (npm), Windows 11 Home 26200, [windows] sandbox = "elevated". The sandbox log shows os error 32 on %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\<hash>\bin\node_repl.exe during setup refresh, so every shell command fails with helper_unknown_error: setup refresh had errors. Fully quitting the desktop app didn't help (only CodexSandboxService was still running). Workaround: npm install -g @openai/[email protected]. With the same config and folder, setup refresh logs errors=[] and commands run. Hooks fire normally on both versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions