Skip to content

[Windows] Codex Desktop sandbox setup fails with error 32 on node_repl.exe — local execution completely blocked #52090

Closed as duplicate

Description

@Mirli-JVR

Summary

Codex in the ChatGPT Windows desktop application cannot execute any local commands.

Every execution attempt fails during Windows sandbox initialization with:

exec-server rejected request (-32603):
helper_unknown_error: setup refresh had errors

The sandbox log identifies a Windows file-sharing violation (os error 32) while validating ACL permissions on node_repl.exe.

This issue persists after restarting Windows and completely closing and reopening ChatGPT.

Environment

  • Application: ChatGPT Desktop / Codex & OWL
  • App version: 26.1002.52244
  • Windows package: OpenAI.Codex 26.1002.7124.0
  • Operating system: Windows 11, build 26300, x64
  • Subscription: ChatGPT Plus
  • Device: Personal computer, not enterprise-managed
  • Antivirus: McAfee
  • Execution mode: Local Windows sandbox
  • Codex CLI: Not used

Steps to reproduce

  1. Open ChatGPT Desktop on Windows.

  2. Start a Codex/Worki session.

  3. Request execution of a simple local PowerShell command:

    Write-Output "WORKI_LOCAL_EXEC=PASS"

  4. Observe that the command fails before execution.

Actual result

exec_command failed:
CreateProcess {
  message: "Rejected(
    Failed to create unified exec process:
    exec-server rejected request (-32603):
    helper_unknown_error: setup refresh had errors
  )"
}

Sandbox log:

runtime read/execute validation failed:
validate runtime read/execute access on
C:\Users\<USER>\AppData\Local\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\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)

Process Monitor findings

Sysinternals Process Monitor captured the following sequence:

  • Process: codex-windows-sandbox-setup.exe
  • Operation: CreateFile
  • Target: node_repl.exe

Successful operation:

  • Result: SUCCESS
  • Desired Access: Read Attributes, Synchronize
  • ShareMode: Read, Write, Delete
  • Options: Open Reparse Point

Failed operation:

  • Result: SHARING VIOLATION
  • Desired Access: Read Attributes, Synchronize, Maximum Allowed
  • ShareMode: Read, Write, Delete

The failing call uses Maximum Allowed, unlike the successful call.

The stack includes:

  • codex-windows-sandbox-setup.exe
  • KernelBase.dll / CreateFileW
  • ntdll.dll / NtCreateFile
  • ntoskrnl.exe
  • FLTMGR.SYS

Additional diagnostics

  • Windows reboot: FAIL
  • Complete ChatGPT shutdown and restart: FAIL
  • No remaining ChatGPT/Codex/Node processes after shutdown: CONFIRMED
  • node_repl.exe Authenticode signature: VALID
  • Signer: OpenAI OpCo, LLC
  • Existing ACLs inspected: No obvious anomaly detected
  • McAfee Framework Host accesses node_repl.exe: CONFIRMED
  • McAfee filesystem minifilter (mfesec) attached to C:: CONFIRMED
  • McAfee as root cause: NOT ESTABLISHED

The issue reproduces even after a clean ChatGPT restart.

Latest confirmed reproduction:
2026-10-08 14:03:55 (Europe/Madrid).

Expected behavior

Codex should initialize its Windows sandbox successfully and execute authorized local commands.

The sandbox setup should not fail because its own runtime executable is in use.

Related issues

Issue #51777 describes an almost identical failure on the same application version and Windows build.

Request

Please confirm:

  1. Whether this is a known Windows sandbox regression.
  2. Whether a patched release is available or planned.
  3. Whether sandbox="unelevated" is supported for this ChatGPT Desktop version.
  4. Whether an officially supported rollback is available that preserves chats, projects and local files.

This issue completely blocks local Codex execution.

I can provide the sandbox log and Process Monitor evidence if required.

codex_sandbox_2026-10-08_SANITIZADO.log

Activity

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

    @nerzon

    Additional diagnostic findings from another affected Windows installation:

    • Restarting the computer did not resolve the issue.
    • In a regular local Codex chat, Get-Location; Get-Date -Format o succeeds with exit code 0. Listing projects also succeeds locally.
    • Through Dot, delegated command execution still fails before PowerShell starts with setup refresh had errors. Project listing also fails through Dot, although we have not established whether it has the same cause.

    The sandbox log records the following at 2026-10-09 12:40:33 +07:00:

    runtime read/execute validation failed:
    validate runtime read/execute access on
    %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\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)
    

    The referenced executable exists. A subsequent read-only process inspection outside the sandbox found multiple processes running that exact executable, with codex.exe or Codex's bundled node.exe as their parents. Several started at 12:39:20, shortly before the recorded failure. We have not identified the specific conflicting file handle.

    No OS error 5 or missing-path errors were found in the sandbox logs inspected for October 8–9.

    Installed Desktop version: 26.1002.52244, build 13536, prod channel.

    This appears consistent with the runtime ACL sharing violation addressed by #51822. Could you confirm the first Windows Desktop release containing that fix, and whether there is a supported recovery procedure for affected installations?

    No runtime files were deleted, ACLs changed, or sandbox protections disabled during diagnosis.

  3. rauberradischen-ship-it commented on Oct 9, 2026

    @rauberradischen-ship-it

    I can confirm the same issue on Windows 10, with some additional diagnostic findings.

    Important note: I am not a programmer or Windows security expert. This report was written by ChatGPT based on my own observations, screenshots, and sandbox log files. ChatGPT guided me through the diagnostic steps. I cannot independently verify the underlying technical cause.

    Environment

    • Windows 10 Pro, version 22H2, build 19045.6466
    • ChatGPT Windows desktop app 26.1002.52244
    • Codex used through the ChatGPT desktop application
    • Native Windows, no WSL or separate Codex CLI
    • [windows] sandbox = "elevated" in my Codex configuration
    • Local project workspace on an NTFS drive
    • No desktop app update currently offered

    Error

    All local command execution is blocked, including basic PowerShell and CMD commands such as git status --short.

    The reported error is:

    exec_command failed: CreateProcess {
      message: "Rejected(\"Failed to create unified exec process: helper_unknown_error: setup refresh had errors\")"
    }
    

    My local sandbox log repeatedly identifies the following failure:

    runtime read/execute validation failed:
    validate runtime read/execute access on
    %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\
    3dd31cfff853001c\bin\node_repl.exe:
    
    open ACL target for root-only update:
    Der Prozess kann nicht auf die Datei zugreifen,
    da sie von einem anderen Prozess verwendet wird.
    (os error 32)
    

    This is followed by:

    setup refresh completed with errors
    setup error: setup refresh had errors
    setup refresh: exited with status 1
    

    The same error appeared repeatedly on October 9, 2026, including after restarting Windows.

    Troubleshooting performed

    With ChatGPT's guidance, I tried:

    1. Completely closing the ChatGPT desktop app, including its background processes, and reopening it.
    2. Performing a full Windows restart.
    3. Checking the Windows Resource Monitor for handles matching node_repl.exe and node_repl, without finding any.
    4. Checking Windows Task Manager, where two running node_repl.exe processes were visible.
    5. Verifying that both processes originated from the exact executable path named in the sandbox error log.
    6. Carefully terminating those two processes when no Codex task was running.
    7. Retrying a simple local command afterward.

    The error persisted even after terminating both processes.

    I have not deleted or replaced runtime files, changed file permissions, disabled security features, or modified sandbox settings.

    Impact

    Codex had already made changes to my project's test infrastructure, but the environment failure prevented the final checks.

    The changes remain uncommitted because no local commands or tests can currently run.

    This blocks further development work.

    Request

    Could the developers confirm whether this is the Windows runtime ACL sharing-violation issue addressed by PR #51822?

    If so, could you clarify whether the fix is included in desktop version 26.1002.52244, and when a corrected Windows desktop release is expected?

    I would appreciate an officially supported recovery procedure that preserves my existing project files and does not weaken sandbox security.

    I can provide sanitized excerpts of the sandbox log if needed.

    Thank you for your help.

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