You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows desktop: sandbox setup fails with os error 32 on bundled runtime files #52127
appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
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)
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.
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.
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.
appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Oct 8, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
svmariansv11-maker commentedon Oct 8, 2026
I can confirm the same issue on Windows 11 x64.
Affected versions:
Codex Desktop:
26.1002.7124.0Integrated Codex CLI:
0.162.0-alpha.2Bundled Node.js:
24.21.0Additional 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 VIOLATIONBoth events reference the exact same executable:
C:\Users\<USERNAME>\AppData\Local\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\node_repl.exeThe failed CreateFile operation reports:
Desired Access:
Read Attributes, Synchronize, Maximum AllowedDisposition:
OpenShareMode:
Read, Write, DeleteResult:
SHARING VIOLATION (OS error 32)Process tree:
codex.exe(PID 1624) launches the bundlednode.exe(PID 13652), which startsnode_repl.exe(PID 7068). The sandbox setup executable (PID 24720) is also launched bycodex.exe.Process Monitor shows no recorded end time for
node_repl.exePID 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 involvingVCRUNTIME140_1.dllas 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.
JoonSeongJeong commentedon Oct 8, 2026
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.
Hendra827 commentedon Oct 9, 2026
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.
SunshineW99 commentedon Oct 9, 2026
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 上也能复现,文件占用的具体机制尚未确认。kjwo54 commentedon Oct 9, 2026
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?