Skip to content

Windows Codex Desktop 26.1002.52244: Sandbox setup fails with node_repl.exe sharing violation (os error 32) #52094

Open

Description

@chudthai

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

26.1002.52244 (Released October 7, 2026)

What subscription do you have?

ChatGPT Business

What platform is your computer?

Windows x64 (Virtual Machine / VM Clone)

What issue are you seeing?

Codex Desktop 26.1002.52244 on Windows fails to initialize its sandbox. All sandboxed commands fail before execution.

Visible error:

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

The sandbox log reveals the underlying failure:

runtime read/execute validation failed: validate runtime read/execute access on ...\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 Windows sandbox setup helper (9691020b546a15b2) exits with status 1.

The log also reports an error 32 while attempting to grant a non-inheriting read-attributes ACE on the user profile, although that step is marked as nonfatal.

Sandbox mode: workspace-write.

This blocks all sandboxed shell commands and prevents native Node REPL testing.

Previously, the original Windows VM successfully executed both sandboxed shell commands and native Node REPL using Codex Desktop 26.930.61225. After cloning the VM and starting Codex Desktop 26.1002.52244, sandbox initialization fails.

What steps can reproduce the bug?

  1. Start Codex Desktop 26.1002.52244 on a Windows x64 VM.
  2. Open a local workspace with sandbox mode set to workspace-write.
  3. Ask Codex to execute the read-only PowerShell command Get-Location using its sandboxed execution tool.
  4. Observe that sandbox initialization fails before the command starts with helper_unknown_error: setup refresh had errors.
  5. Inspect the sandbox log in .codex\.sandbox\sandbox.2026-10-08.log. It records os error 32 while validating access to the bundled node_repl.exe.

The issue occurred repeatedly.

Troubleshooting:

  • Searched Resource Monitor for handles containing node_repl.exe and cua_node; no matching handles were visible at inspection time.
  • Rebooted the VM once and retried.
  • The sandbox still failed after reboot.
  • No manual ACL changes or Windows security bypasses were applied.

What is the expected behavior?

The Windows sandbox should initialize successfully and execute read-only commands such as Get-Location.

The bundled Node REPL runtime should be accessible without sandbox initialization failing due to a Windows sharing violation.

Additional information

Codex App version: 26.1002.52244
Sandbox helper bin: 9691020b546a15b2
cua_node runtime: 3dd31cfff853001c

The original VM ran successfully on Codex Desktop 26.930.61225. The updated clone fails. Since cloning, restarting, and runtime changes were not independently isolated, the app version alone is not proven to be the root cause.

The underlying os error 32 was confirmed in logs before reboot. After reboot, the same visible setup error persisted, but the latest log was not separately checked.

Related issue: #51719

Activity

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

    @yizhibibao125

    same problum

  4. AxelCFC commented on Oct 8, 2026

    @AxelCFC

    Same issue here on 26.1002.52244 (build 13536), same node_repl.exe path (cua_node\3dd31cfff853001c) and same os error 32 during "runtime read/execute validation". It worked the day before (10/07).

    Extra details that may help:

    • Avast is installed (Defender inactive, Add-MpPreference fails with 0x800106ba). Disabling Avast shields did not unlock the file.
    • With every Codex process stopped, opening node_repl.exe with FileShare.None still reported the file as locked. Resource Monitor "Associated Handles" showed nothing, same as in this report.
    • 3 Windows restarts did not help.
    • Killing processes by name was undone within seconds, because the app (ChatGPT.exe) respawns node_repl, node and codex-computer-use-swift.

    Workaround that fixed it for me:

    1. Close Codex fully, including all ChatGPT.exe processes.
    2. Rename %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node to cua_node.old. Codex recreates it.
    3. With the app still fully closed, set [windows] sandbox = "unelevated" in ~.codex\config.toml. (An edit made while the app was running was overwritten back to "elevated" on close.)
      Step 2 alone was not enough: the log still showed os error 32 on the freshly recreated node_repl.exe. After step 3, terminal, node_repl and browser control work again.

    This suggests the failure is in the elevated setup path, which tries to update the ACL of node_repl.exe while it is open. Happy to provide the full sandbox log.

  5. yizhibibao125 commented on Oct 8, 2026

    @yizhibibao125

    Thank yout very much!!! It is very helpful!😄

  6. lll953147712-crypto commented on Oct 9, 2026

    @lll953147712-crypto

    你好,请问解决了吗

  7. yizhibibao125 commented on Oct 9, 2026

    @yizhibibao125

    我试了一下,解决了,codex又能用了。

    前天出问题之后测试了好多方法都不行,只能转而暂时使用CLI、但是CLI不如codex桌面端用的顺手😢

    希望openai官方尽快修复这一问题

  8. diliwo commented on Oct 9, 2026

    @diliwo

    I'm experiencing the same issue on Windows with Codex CLI 0.162.0.

    My sandbox logs consistently report runtime read/execute validation failed for cua_node\...\node_repl.exe, followed by Windows os error 32 and helper_unknown_error: setup refresh had errors.

    The problem reproduces outside any Git repository, including with harmless commands such as Get-Date. I've tried restarting Windows, closing lingering Codex processes, testing a cached 0.161.0 executable, and reinstalling 0.162.0 using the official PowerShell installer, without restoring command execution.

    My configuration uses [windows] sandbox = "elevated".

    I haven't modified ACLs or tested the unelevated workaround yet. This appears closely related to the issue reported here.

  9. yizhibibao125 commented on Oct 9, 2026

    @yizhibibao125

    I was able to resolve this issue by changing the Windows sandbox setting from elevated to unelevated in ~/.codex/config.toml:

    [windows]
    sandbox = "unelevated"

    I also renamed %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node to cua_node.old while Codex was fully closed, allowing it to recreate the runtime directory.

    After restarting Codex, command execution started working again in both Codex CLI and the desktop app.

    I can't confirm whether changing the sandbox setting alone is sufficient, since I applied both changes, but this workaround resolved the issue for me.

  10. mgonzalezCV commented on Oct 9, 2026

    @mgonzalezCV

    Confirming the same issue on a native Windows x64 PC (not a VM).

    My installation uses the same Codex binary identifier (9691020b546a15b2) and Node runtime identifier (3dd31cfff853001c).

    The failure began October 8, 2026. A Windows restart initially helped, but the issue returned October 9 and persisted through additional restarts and process cleanup.

    The sandbox logs repeatedly report:

    runtime read/execute validation failed
    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 inspected the processes using Sysinternals Handle and Windows PowerShell. Multiple node.exe and node_repl.exe processes belonged to the Codex runtime, although the precise executable file-lock owner was not conclusively identified.

    Workaround confirmed: Changing only the following setting restored shell execution:

    [windows]
    sandbox = "unelevated"

    I did not need to rename, delete, or reinstall the cua_node runtime directory.

    This suggests the issue is associated with the elevated Windows sandbox initialization/ACL validation path.

    I have sanitized diagnostic logs from October 8–9 available if useful.

  11. jaydudko commented on Oct 9, 2026

    @jaydudko

    I'm experiencing the same Windows sandbox failure using ChatGPT Work with built-in Codex functionality.

    Environment: Windows 11 x64, ChatGPT Plus, Windows package version 26.1002.7124.0.

    The failure frequently occurs after successfully creating a custom skill or plugin. Even a simple read-only PowerShell command fails afterward.

    My October 9 sandbox logs show runtime read/execute validation failed on cua_node\3dd31cfff853001c\bin\node_repl.exe, followed by Windows os error 32 and helper_unknown_error: setup refresh had errors.

    Restarting Windows, checking Windows Security, and inspecting runtime permissions have not resolved the problem.

    This is blocking my custom skills, PDF processing, and file-generation workflows. I can provide sanitized diagnostic logs if needed.

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