Skip to content

Windows desktop sandbox setup fails on node_repl.exe with os error 32 after reboot and reinstall #52155

Open

Description

@eric-zheng-0912

Problem

All sandboxed local commands fail before execution in Codex desktop on Windows. Browser/Node REPL tooling also fails to initialize. Even Get-Location fails in a fresh projectless chat.

Environment

  • Codex desktop version reported by the app updater before reinstall: 26.1002.52244, build 13536, prod channel. Exact post-reinstall version has not been verified.
  • Windows (exact OS version not yet collected)
  • Occurred October 8, 2026, Asia/Taipei (UTC+8)
  • Sandbox helper directory: %LOCALAPPDATA%\OpenAI\Codex\bin\9691020b546a15b2
  • CUA runtime directory: %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin

Steps / troubleshooting performed

  1. Execute Get-Location in a local project chat.
  2. Restart Windows and retry: still fails.
  3. Create another chat in the same project: still fails.
  4. Create a fresh projectless chat: still fails.
  5. Uninstall and reinstall Codex, then retry Windows setup: UI shows Windows setup incomplete and setup fails again.
  6. After closing Codex, the user's process query filtering executable paths under *\OpenAI\Codex\* returned no matching processes. This does not establish which process holds the conflicting handle.

Actual result

Failed to create unified exec process:
helper_unknown_error: setup refresh had errors

%USERPROFILE%\.codex\.sandbox\setup_error.json:

{"code":"helper_unknown_error","message":"setup refresh had errors"}

Latest diagnostic evidence

Read directly from %USERPROFILE%\.codex\.sandbox\sandbox.2026-10-08.log. User profile and unrelated workspace paths are redacted. At 23:52:11 local time (15:52:11 UTC), after reinstall and in a projectless test:

[2026-10-08 23:52:11.195 codex.exe] START: <USERPROFILE>\.cache\codex-runtimes\codex-primary-runtime\dependencies\native\powershell\pwsh.exe -NoProfile -Command ... Get-Locat
[2026-10-08 23:52:11.387 codex.exe] setup refresh: spawning <LOCALAPPDATA>\OpenAI\Codex\bin\9691020b546a15b2\codex-windows-sandbox-setup.exe
[2026-10-08T15:52:11.444681900+00:00] failed to grant non-inheriting read-attributes ACE on user profile <USERPROFILE>: open ACL target for root-only update: 程序無法存取檔案,因為檔案正由另一個程序使用。 (os error 32); continuing setup
[2026-10-08T15:52:11.456331800+00: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: 程序無法存取檔案,因為檔案正由另一個程序使用。 (os error 32)
[2026-10-08T15:52:11.506326800+00:00] read ACL run completed
[2026-10-08T15:52:11.557273500+00:00] setup refresh completed with errors: [runtime read/execute validation failed ... node_repl.exe ... (os error 32)]
[2026-10-08T15:52:11.557312100+00:00] setup error: setup refresh had errors
[2026-10-08 23:52:11.564 codex.exe] setup refresh: exited with status ExitStatus(ExitStatus(1))

Chinese error means the process cannot access the file because it is being used by another process. The same runtime validation error appears repeatedly before and after reboot/reinstall.

Possibly related fix

#51822 describes sharing violations when opening active EXE/DLL files during runtime ACL repair. This looks related, but the relationship and whether the installed desktop release contains that fix are unconfirmed. Please advise on a supported recovery procedure or fixed desktop release.

Expected behavior

Sandbox setup completes and a simple local command can execute without requiring an unsandboxed workaround.

Activity

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

    @thisisanand-tm

    Additional reproduction on Codex Desktop for Windows 26.1002.52244 (October 9, 2026):

    • Normal sandboxed execution fails before running even Write-Output "SANDBOX_TEST_OK", with helper_unknown_error: setup refresh had errors.
    • The sandbox log repeatedly identifies runtime read/execute validation failed while trying to open the ACL target for %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\node_repl.exe, returning The process cannot access the file because it is being used by another process. (os error 32).
    • A full Windows restart did not resolve the failure.
    • Windows Resource Monitor → CPU → Associated Handles, searching node_repl.exe, showed no results at the time of inspection.
    • Explicitly approved execution outside the normal sandbox succeeded: Write-Output "CODEX_TEST_OK" returned CODEX_TEST_OK.
    • Retesting execution inside the normal sandbox failed again with the same setup-refresh error.
    • The same failing runtime path appeared when commands were attempted from more than one local project, suggesting this isn't workspace-specific.

    The log shows read-ACL setup finishing, while the runtime read/execute ACL validation on node_repl.exe causes setup refresh to exit unsuccessfully. I have not found a reliable local fix. Is there an ETA for a Windows desktop build that fixes this file-sharing/ACL initialization failure, or a supported way to restore sandboxed execution?

    (Windows username and project names intentionally omitted.)

  3. People-Xie commented on Oct 9, 2026

    @People-Xie

    Codex Desktop for Windows: sandbox setup fails with node_repl.exe sharing violation after reinstall

    Intended destination: #52155
    Status: Prepared for submission; not yet posted.
    Observed: 2026-10-08 through 2026-10-09 (UTC+08:00).

    Summary

    Codex/ChatGPT Desktop for Windows fails to initialize its sandbox for even simple local commands such as Get-Location. The Windows application itself is installed correctly, but the integrated command runner fails before launching the requested command. The issue persists after closing/restarting the desktop application and uninstalling/reinstalling it.

    The sandbox helper reports a Windows os error 32 (sharing violation) while attempting to open the versioned cua_node runtime's node_repl.exe to validate/update ACLs.

    Environment

    • Platform: Windows desktop. (Exact OS version was not confirmed in the supplied diagnostics.)
    • Package: OpenAI.Codex
    • Installed version: 26.1002.7124.0
    • Package state: Ok (from Get-AppxPackage OpenAI.Codex).
    • Native Windows PowerShell outside Codex: works; can read and SHA-256 hash local files.
    • Codex desktop command runner: fails before the requested command is executed.

    Reproduction

    1. Start Codex/ChatGPT Desktop for Windows.
    2. Open a local session and request execution of Get-Location or Get-FileHash on a local test file.
    3. Observe that the integrated command runner does not start. The assistant may display workspace context as a fallback, but no shell result is produced.
    4. Attempt normal application restart, then uninstall/reinstall the application.
    5. The first-run Windows sandbox setup still reports that setup is incomplete; the same command-runner failure persists.

    Expected result

    The Windows sandbox initializes successfully, and normal read-only commands execute with sandbox protections enabled.

    Actual result

    Failed to create unified exec process:
    helper_unknown_error: setup refresh had errors
    

    The first-run desktop UI also reports that Windows setup is incomplete while preparing the sandbox.

    Verified diagnostics — 2026-10-09

    PowerShell package inspection:

    Name           Version         Status
    OpenAI.Codex   26.1002.7124.0  Ok
    

    Latest observed log: %USERPROFILE%\.codex\.sandbox\sandbox.2026-10-09.log (all personal paths anonymized):

    [2026-10-09T02:49:06Z] 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)
    [2026-10-09T02:49:06Z] setup refresh completed with errors
    [2026-10-09T02:49:06Z] setup error: setup refresh had errors
    [2026-10-09T02:49:18Z] runtime read/execute validation failed on the same node_repl.exe (os error 32)
    [2026-10-09T02:49:18Z] setup error: setup refresh had errors
    

    %USERPROFILE%\.codex\.sandbox\setup_error.json:

    {
      "code": "helper_unknown_error",
      "message": "setup refresh had errors"
    }

    Equivalent node_repl.exe sharing-violation errors appeared in the prior day's sandbox log. No particular handle owner has been conclusively identified.

    Troubleshooting already attempted

    • Verified that Windows PowerShell works independently of Codex.
    • Verified file readability and hashes outside the desktop execution environment.
    • Fully closed/restarted Codex/ChatGPT Desktop.
    • Inspected running node_repl.exe processes; at one point, none remained after exit, but the failure later recurred.
    • Uninstalled and reinstalled the desktop application.
    • Retried Windows sandbox initialization and minimal read-only commands afterward.
    • Did not disable sandboxing, tamper with runtime ACLs, turn off security software, or alter project data to work around this failure.

    Potential upstream relationship

    This appears consistent with a sharing violation during runtime ACL validation. We cannot confirm that the cited change fixes this particular machine or that it has reached the installed Windows desktop release.

    Requested maintainer guidance

    1. Is the node_repl.exe runtime ACL os error 32 issue known in Windows desktop version 26.1002.7124.0?
    2. Is fix Avoid sharing violations when repairing Windows runtime ACLs #51822 included in the Windows desktop release channel? If not, which signed, official build is expected to contain the fix?
    3. Is there a supported recovery path that preserves sandbox isolation and does not require disabling security controls or changing ACLs manually?
    4. If additional diagnostics are needed, which sanitized log excerpt or trace is most helpful?

    Privacy: No device/user identifiers, login names, secret values, certificates, or private project paths are included. No claim is made that the GitHub submission has already succeeded.

  4. suisshost-com commented on Oct 9, 2026

    @suisshost-com

    Additional independent reproduction on Windows 10. The symptoms, package version, and runtime directories closely match this issue. I have additional before/after timeline evidence, although a common root cause has not been independently proven.

    Impact

    Ordinary sandboxed local commands fail before executing, and the desktop browser automation tool cannot initialize. The desktop app can still display this conversation; that does not establish that its local execution or browser automation works.

    Environment

    • Windows 10 Pro 22H2, build 19045.6466, x64.
    • Desktop updater metadata: installedVersion 26.1002.52244, installedBuildVersion 13536, prod channel.
    • Installed Microsoft Store package: OpenAI.Codex_26.1002.7124.0_x64__2p2nqsd0c76g0.
    • The user-visible Configurations screen was separately reported as 26.1007.11041. These are different version labels; I am not assuming they identify the same component.
    • Windows sandbox configuration: elevated; task permissions: workspace-write.
    • Current native engine directory: %LOCALAPPDATA%\OpenAI\Codex\bin\9691020b546a15b2.
    • Current copied command runner: codex-command-runner-0.162.0-alpha.2.exe.
    • CUA runtime directory: %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c.
    • Date of the observed transition: 9 October 2026. Timeline below is Europe/Budapest, UTC+02:00.

    Minimal reproduction on this installation

    1. Open the existing desktop app and a local project chat.
    2. Ask the agent to run the read-only PowerShell command: Write-Output 'CODEX_SANDBOX_TEST_OK'.
    3. The command fails before producing output with the setup-refresh error below.
    4. Ask the built-in browser automation tool to initialize via cua.getState(). Initialization fails before it returns any browser or tab state.
    5. Fully restarting the app has not resolved the failure.

    This report does not claim that a new Windows user, clean installation, or fresh projectless chat was tested on this machine.

    Errors

    Ordinary local execution:

    Failed to create unified exec process:
    helper_unknown_error: setup refresh had errors
    

    Browser initialization has reported:

    trusted Node process exited unexpectedly; kernel reset, rerun your request
    

    Some subsequent attempts report "Transport closed". That transport error also occurred after stopping a Node helper during troubleshooting; it is not being presented as the original root cause.

    Sanitized sandbox-log error, with line wrapping adjusted:

    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 failing runtime validation is followed by setup refresh completing with errors. The precise process/file handle responsible for the sharing conflict has not been identified.

    Before/after timeline

    All times below are local UTC+02:00 on 9 October 2026. File creation times and log events are distinguished deliberately.

    • 02:01:42: sandbox refresh logged errors=[] while using runner 0.160.1 and the older engine directory bin\5ea220ae823df3d7.
    • 02:06:15-18: filesystem CreationTime values for the current engine, runner/setup, and node_repl.exe fall in this interval.
    • 02:06:55: the first matching runtime ACL sharing violation found in the inspected dated log was emitted by setup from bin\9691020b546a15b2.
    • 03:53:08-40: an earlier controlled probe with the desktop app closed succeeded: the sandbox probe returned exit code 0 and CODEX_SANDBOX_OK; a runtime version probe returned exit code 0 and v24.21.0. Browser automation was NOT verified by those probes.
    • 03:53:39: the log recorded "recopied command-runner" and the versioned runner copy was created. This is later than the first failure; it is not evidence that the copied file caused the original incident.
    • 03:55:11: the same sharing violation was recorded again.
    • A later full desktop restart was independently checked: the previously captured app process identities had exited. Subsequent ordinary terminal and browser initialization tests still failed.

    The timing suggests a regression or interaction involving the refreshed components. It does NOT establish causation, the exact faulty function, or that reverting just one executable would be safe or effective.

    Troubleshooting and integrity checks

    • Repeated ordinary app restarts did not resolve it.
    • Official elevated sandbox setup was rerun with Windows administrator approval and reported completion, but the subsequent tool tests still failed.
    • Scoped read-only diagnostic commands outside ordinary sandbox execution could read metadata and logs. That is not a successful test of normal sandboxed execution.
    • The copied 0.162.0-alpha.2 runner and its source executable both have valid OpenAI Authenticode signatures and identical SHA-256 hashes:
      759831F8FE8B0CC69C567CE3BCDF5C0577071B445DEFB02B05D312A3BF11DC45
    • Two node_repl.exe processes were observed under the same current desktop app process tree. One was stopped as a controlled troubleshooting attempt. Ordinary sandboxed execution still failed, and browser transport closed. This did not identify a redundant process or prove the lock owner.
    • Earlier user troubleshooting also included removal of an unresolved Windows ACL entry. Its full scope and exact timing are not established in this report; I am not claiming a pristine-permissions comparison or assigning causation to that change.
    • The app update tool currently reports unavailable because Microsoft Store must determine eligibility. An earlier Store/winget upgrade check reported no available upgrade. Neither proves that a fixed desktop build does not exist elsewhere.
    • A rollback was investigated but NOT applied. The complete previous engine directory is no longer present at its recorded path. Only an old runner and much older cached components were found. No individual executable was substituted.
    • No unelevated/full-access workaround has been enabled for this issue, and no runtime directory or chat history has been deleted as part of this investigation.

    Possible related fix and request

    PR #51822 appears relevant to runtime ACL sharing violations. I have not confirmed whether this desktop build includes that fix or whether it addresses this particular reproduction.

    Could a maintainer please:

    1. Confirm whether this is the same tracked issue and whether the cold-probe versus normal-app behavior is useful for diagnosing it.
    2. Identify a supported desktop release containing the relevant fix, rather than only a standalone CLI release.
    3. Provide a supported recovery procedure or signed, compatible rollback package that preserves existing local chats and project files without mixing component versions or disabling sandbox protection.
    4. Specify any additional narrowly scoped diagnostics needed to identify the conflicting handle.

    Expected result: the elevated Windows sandbox starts successfully, a harmless local command executes, and browser automation initializes while normal application helper processes are running.

    Personal paths and unrelated project details have been removed. Full configuration, authentication files, browser data, .sandbox-secrets, and private recovery backups are not included. A separate OpenAI Support conversation has already been escalated to a specialist.

  5. pingvi90 commented on Oct 9, 2026

    @pingvi90

    I can reproduce the same issue on Windows.

    Every local command fails before execution with:

    helper_unknown_error: setup refresh had errors
    

    The sandbox log shows:

    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)
    

    I confirmed this is not caused by Windows Firewall:

    • LocalPolicyModifyState returns 0.
    • BFE and MpsSvc services are running.
    • Restarting Windows and completely restarting Codex did not resolve it.
    • Renaming the cua_node runtime folder caused Codex to recreate it, but the same error returned immediately.

    This blocks all local file and shell operations in Codex Desktop. Please advise on a supported workaround or a fixed desktop release.

  6. martellaalcantara commented on Oct 10, 2026

    @martellaalcantara

    I'm experiencing the same issue with the Codex VS Code extension on Windows.

    Environment:

    • Codex VS Code extension: 26.1007.21434
    • App-server daemon: 0.162.1
    • Local Windows sandbox

    Error:

    helper_unknown_error: setup refresh had errors
    

    The sandbox log shows:

    runtime read/execute validation failed:
    validate runtime read/execute access on
    ...\cua_node\f8d2abcb7481383b\bin\node_repl.exe
    
    The process cannot access the file because
    it is being used by another process. (os error 32)
    

    The error persists after restarting Windows and VS Code.

    Even basic read-only commands fail before execution. Resource Monitor did not identify an open handle when I searched for node_repl.exe.

    Latest failures occurred on October 10, 2026, at approximately 13:06 and 13:10 WIB.

    I have not modified ACLs, disabled the sandbox, deleted runtime files, or requested privilege elevation.

    Is there a supported fix available for this issue in the stable release?

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