Skip to content

Windows desktop: sandbox setup fails with os error 32 on bundled runtime files #52127

Open

Description

@nemanjack

Codex desktop tools stopped working, apparently after an app update.

App version: 26.1002.52244
Build: 13536
Platform: Windows

Both shell execution and browser automation fail before running.

Error:
helper_unknown_error: setup refresh had errors

Sandbox logs show:
runtime read/execute validation failed
open ACL target for root-only update:
The process cannot access the file because it is being used by another process. (os error 32)

Affected bundled runtime files:

  • node_repl.exe
  • node_modules/@oai/sky/bin/windows/swift/x64/VCRUNTIME140_1.dll

Tried without success:

  • Restarting the desktop app
  • Restarting the computer multiple times
  • Resetting the JavaScript tool sessions
  • Switching models
  • Stopping two identified node_repl.exe processes: the next setup attempt failed on VCRUNTIME140_1.dll instead

Sandboxed commands fail, but explicitly approved commands outside the sandbox can run.

Expected: shell and browser tools start normally.
Actual: sandbox setup fails and blocks both tools.

Possibly related: #52121, but my logs specifically show file-lock errors (os error 32).

Please advise on a fix or a supported rollback procedure.

Activity

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

    @svmariansv11-maker

    I can confirm the same issue on Windows 11 x64.

    Affected versions:

    • Codex Desktop: 26.1002.7124.0

    • Integrated Codex CLI: 0.162.0-alpha.2

    • Bundled Node.js: 24.21.0

    Additional evidence from Microsoft Process Monitor:

    I captured the following sequence during a failed sandbox setup:

    Time | Process | PID | Operation | Result -- | -- | -- | -- | -- 15:28:18.475 | node_repl.exe | 7068 | Load Image | SUCCESS 15:28:23.506 | codex-windows-sandbox-setup.exe | 24720 | CreateFile | SHARING VIOLATION

    Both events reference the exact same executable:

    C:\Users\<USERNAME>\AppData\Local\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\node_repl.exe

    The failed CreateFile operation reports:

    • Desired Access: Read Attributes, Synchronize, Maximum Allowed

    • Disposition: Open

    • ShareMode: Read, Write, Delete

    • Result: SHARING VIOLATION (OS error 32)

    Process tree:

    codex.exe (PID 1624) launches the bundled node.exe (PID 13652), which starts node_repl.exe (PID 7068). The sandbox setup executable (PID 24720) is also launched by codex.exe.

    Process Monitor shows no recorded end time for node_repl.exe PID 7068.

    This suggests a possible startup-order conflict: Codex loads its bundled runtime before sandbox setup attempts to access the same executable for ACL configuration. However, the capture does not conclusively identify the process holding the incompatible file access.

    Troubleshooting performed without success:

    • Complete Desktop reinstall

    • Bundled runtime regeneration

    • CLI testing with Desktop fully closed

    • Removal of independently installed Node.js

    • Removal of Avast and Norton, with Microsoft Defender enabled

    The sandbox still fails with OS error 32, sometimes involving VCRUNTIME140_1.dll as well.

    Commands explicitly approved outside the sandbox can still execute.

    Could the team investigate runtime startup ordering and ACL setup synchronization, and advise whether a fixed version or supported workaround is available?

    I can provide Process Monitor screenshots and sandbox logs if needed.

  3. JoonSeongJeong commented on Oct 8, 2026

    @JoonSeongJeong

    Update: I found a temporary workaround.

    After installing Codex version 0.162.0-alpha.20 using the standalone installer and installing the Desktop app and VS Code Codex with a temporary PATH, the issue no longer occurred on the system.

    I am sharing this in case it might be helpful to other users experiencing the same node_repl.exe / Windows Error 32 problem.

    While the above temporary method is not a fundamental solution, it seems it will be usable until an official patch is released.

  4. Hendra827 commented on Oct 9, 2026

    @Hendra827

    This matches the Windows runtime-file sharing violation described in #51932 and addressed by PR #51822. Please clarify whether a Desktop release containing that fix is available or planned. A supported workaround would help users whose shell and browser tools are both blocked.

  5. SunshineW99 commented on Oct 9, 2026

    @SunshineW99

    Windows 10 Pro 22H2(19045.3930)上,Codex 桌面应用的沙箱命令均在 PowerShell 启动前失败:helper_unknown_error: setup refresh had errors。PowerShell 7.6.5 在沙箱外正常。沙箱日志显示,更新 Codex 自带的 node_repl.exe 访问权限时遇到文件占用(os error 32);codex doctor 也报告 elevated 沙箱配置失败。重启 Windows、结束该进程和使用 Windows“修复”均未解决;进程结束后会被 Codex 重新启动。该问题在 Windows 10 上也能复现,文件占用的具体机制尚未确认。

  6. kjwo54 commented on Oct 9, 2026

    @kjwo54

    Same issue on Codex App 26.1002.52244 (build 13536), Windows 10.0.26200.0 x64. A full Windows restart did not resolve it.

    Browser tools and sandboxed commands fail with error 32 on cua_node/node_repl.exe.

    Feedback ID with diagnostic logs:
    01a0d3bb-eb6e-72e2-9f70-a49a4e9fc010

    Which Windows desktop release includes PR #51822, and how can I obtain it?

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