Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.1002.52244
What subscription do you have?
PLUS
What platform is your computer?
No response
What issue are you seeing?
Summary
On Windows, Codex's integrated node_repl tool consistently times out because the bundled node_repl.exe fails runtime read/execute validation with Windows error 32 (ERROR_SHARING_VIOLATION).
PowerShell and native node.exe work correctly, including after restarting Codex. The failure appears isolated to the integrated node_repl runtime/setup path.
Environment
- Date: 8 October 2026
- Timezone: Asia/Kolkata (IST, UTC+5:30)
- OS: Windows
- Codex App version:
26.1002.52244 - Build:
13536 - Channel: Production
Failing executable
C:\Users\abc\AppData\Local\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\node_repl.exe
Error
Sandbox setup reports:
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)
What works
The following work successfully:
- PowerShell execution
- Local file reads
- Native
node.exe - JavaScript execution through native Node
For example, native Node v24.21.0 successfully executes JavaScript and returns:
2 + 2 = 4
This suggests that Node itself is functional on the system.
What fails
The integrated Codex node_repl tool fails.
A test equivalent to:
nodeRepl.write({status:'ok',result:2+2})
times out.
Fresh sandbox log entries then show the runtime read/execute validation failure against node_repl.exe with Windows error 32 / sharing violation.
Reproduction and recovery observed
-
Initially, both PowerShell and integrated Node tools failed.
-
Codex was updated and Windows was restarted, but the issue was not fully resolved.
-
Two processes matching the exact Codex
node_repl.exepath were found and stopped:- PID
12776 - PID
2584
- PID
-
After stopping those processes, PowerShell and file reads succeeded.
-
The existing Node MCP transport closed, which was expected after stopping its process.
-
Codex was reopened.
-
At approximately
14:20:14 IST, PowerShell succeeded. -
At approximately
14:20:35–14:20:39 IST, an integrated Node test timed out. -
At approximately
14:20:35–14:20:39 IST, sandbox setup again reported the executable sharing violation. -
At approximately
14:20:49 IST, PowerShell still succeeded. -
Native Node also continued to execute successfully.
Therefore, restarting Codex did not permanently resolve the integrated Node failure.
Permissions / ACL investigation
The failing node_repl.exe has inherited:
CodexSandboxUsers: Allow ReadAndExecute/Synchronize
SYSTEM, Administrators, and the user have FullControl.
No missing read/execute permission was demonstrated by this inspection.
windows.sandbox was also restored to its original elevated configuration. A temporary unelevated test did not resolve the issue.
No application binaries, ACLs, or security software were modified.
No chats were deleted.
Runtime/download evidence
Logs show primary runtime:
26.1007.11041
for:
win32-x64
with an approximate size of:
500,695,067 bytes
The runtime was requested with:
trigger=startup_missing
Bundle installation completed.
However, subsequent plugin synchronization reported cache file-lock/access-denied and directory-not-empty errors.
These logs do not establish that every startup redownloaded the bundle.
Separate performance observation
There is also a separate performance lead that should not necessarily be treated as the cause of this bug.
App Git logs show scans with:
cwd=C:\Users\abc
including broad home-directory paths taking approximately 60 seconds.
A Git repository exists at:
C:\Users\abc\.git
This repository was not modified, and its intended use should be established before making any changes.
I am reporting this separately because I do not have evidence that the Git scan is responsible for the node_repl.exe sharing violation.
Expected behavior
The integrated Codex node_repl tool should be able to start and execute JavaScript normally when the bundled node_repl.exe exists and has the required permissions.
A valid test such as:
2 + 2
should return:
4
without timing out.
Actual behavior
The integrated node_repl tool times out.
Sandbox runtime validation subsequently reports:
The process cannot access the file because it is being used by another process.
(os error 32)
while validating:
node_repl.exe
PowerShell and standalone node.exe continue to work.
Assessment
The findings point to an integrated Codex runtime/setup sharing conflict involving node_repl.exe.
However, the exact process holding the file lock and the underlying code defect have not been proven.
The issue therefore appears to be at the Codex runtime/sandbox/tool integration level rather than a general Windows Node.js installation problem.
Request
Please investigate the Windows node_repl runtime/setup path, particularly the handling of node_repl.exe when runtime validation or ACL setup occurs.
The repeated Windows error 32 sharing violation appears to prevent the integrated Node capability from starting even though PowerShell and standalone Node execution remain functional.
Additional evidence: runtime/cache locking
There is additional evidence of file-lock/access issues during Codex runtime/plugin synchronization.
The logs show the primary win32-x64 runtime:
26.1007.11041
with an approximate size of:
500,695,067 bytes
The runtime was requested with:
trigger=startup_missing
The bundle installation completed, but subsequent plugin synchronization reported cache-related:
- file-lock/access-denied errors
- directory-not-empty errors
I cannot establish from the logs that the runtime is redownloaded on every startup, so I am not claiming that.
However, these cache synchronization errors may be relevant because the integrated node_repl.exe subsequently fails runtime read/execute validation with Windows ERROR_SHARING_VIOLATION (error 32).
I have not identified the process responsible for the file lock, so the relationship between the cache synchronization errors and the node_repl.exe failure remains unconfirmed.
What steps can reproduce the bug?
-
Run Codex on Windows with version
26.1002.52244(build13536). -
Open a new task/chat and invoke the integrated Node/JavaScript tool (
node_repl). -
Run a simple JavaScript expression, for example:
2 + 2
-
The integrated
node_replinvocation times out instead of returning4. -
Check the Codex sandbox/runtime logs. Runtime read/execute validation fails for:
C:\Users\abc\AppData\Local\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\node_repl.exe -
The failure reports Windows error 32:
The process cannot access the file because it is being used by another process. (os error 32) -
As a comparison, run the system-installed/native
node.exedirectly with the same JavaScript expression. Native Node executes successfully and returns4. -
Restarting Codex and Windows does not permanently resolve the integrated
node_replfailure; the failure recurs after reopening Codex.
What is the expected behavior?
No response
Additional information
No response
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
SanjiFlip commentedon Oct 8, 2026
Update: Found a working workaround
I was able to resolve this issue on my machine by installing Codex version
0.162.0-alpha.20globally via npm:After installing this version, the issue stopped occurring on my system.
I'm sharing this in case it helps others experiencing the same
node_repl.exe/ Windows error 32 issue.I haven't confirmed the underlying root cause or whether this also fixes the issue in the Codex desktop app.
morganbertin commentedon Oct 8, 2026
Independent reproduction on Windows 10 Pro (build 19045), observed on 2026-10-08.
The bundled CLI component reports
codex-cli 0.162.0-alpha.2; the desktop app's About version was not independently verified.The integrated browser/computer-use runtime fails before returning any browser state. A minimal
await cua.getState()invocation exits with:node_repl kernel exited unexpectedlywindows sandbox failed: helper_unknown_error: setup refresh had errorsstdout_eofAn earlier attempt also reported
orchestrator_helper_exit_nonzero.Sanitized sandbox log excerpt:
The user reports repeated complete shutdown/restart attempts without a lasting fix. Stopping two specifically identified node_repl runtime processes once closed the tool transport but did not resolve the problem after restart. Subsequent inspection found two node_repl processes whose parents were still-running Codex/bundled Node processes, so they were not established to be orphaned.
At approximately 20:11 local time (Europe/Paris), the logs showed two nearly simultaneous setup-refresh attempts followed by the same sharing-violation error. This may be relevant to concurrency during runtime setup, but the root cause is not established.
Approved outside-sandbox PowerShell execution and SFTP remain operational. Default protected shell calls can fail during setup as well, so the effect is not confined to browser automation.
No ACL, antivirus, sandbox-mode, authentication, or bundled-binary modifications were made. This report excludes personal paths, site/customer data, credentials, and raw session logs.
Please provide a supported recovery procedure that preserves sandbox isolation and conversation history, and investigate whether concurrent runtime setup can trigger the sharing violation.
Pazox commentedon Oct 8, 2026
I can reproduce a related but more severe variant of this issue.
Environment
26.1002.5224413536cua_node\3dd31cfff853001cOpenAI.Codex_26.1002.7124.0_x64__2p2nqsd0c76g0Fatal sandbox error
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)
In my case, this prevents all sandboxed commands from starting, including a minimal PowerShell command. Codex reports:
Failed to create unified exec process:
helper_unknown_error: setup refresh had errors
Process investigation
I initially found four node_repl.exe processes using the exact failing executable path. I terminated them and verified that the matching node_repl.exe process count was 0.
I then retried a minimal sandboxed command while the count was zero. It still failed immediately with the same setup-refresh error.
Other processes running from the same cua_node runtime included:
After terminating processes whose executable was inside that exact runtime directory, the Node server processes exited. However, codex-computer-use-swift.exe immediately respawned. Its direct parent was:
This demonstrates that the app actively supervises and respawns at least one process from the runtime while sandbox setup is trying to validate it. It does not by itself prove that the Swift helper owns the node_repl.exe file handle.
Other checks
It would be helpful if sandbox setup logged the PID and process name responsible for ERROR_SHARING_VIOLATION, or avoided ACL/runtime validation while processes from that runtime are active.
Mattifrog commentedon Oct 8, 2026
Additional Windows reproduction (Codex Desktop 26.1002.52244, build 13536, production channel; updater reports
up_to_date).Failure: Sandboxed shell/browser startup fails before command execution with
helper_unknown_error: setup refresh had errors. The sandbox setup log reportsopen ACL target for root-only updateon%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\<runtime-id>\bin\node_repl.exe: file in use by another process (os error 32, sharing violation).Observed process chains:
ChatGPT.exe→codex.exe→node_repl.exeChatGPT.exe→codex.exe→node.exe(@oai/cua-repl) → anothernode_repl.exeTerminating only two verified Codex
node_repl.exehelpers did not fix the failure: the parent Codex runtime immediately recreated helpers and the next sandbox refresh failed again. Reopening the app and resetting the browser REPL did not provide a lasting fix. The workspace exists, and a separately authorized read-only access path works, so this does not appear to be a workspace permission error.The evidence suggests an ACL-refresh/sharing conflict during runtime setup, but the exact implementation defect remains unconfirmed. Could maintainers investigate helper startup vs. ACL validation ordering and advise a supported fix that preserves sandbox isolation?
This report contains no personal paths, credentials, account details, session identifiers, or workspace data.
ailing137 commentedon Oct 8, 2026
补充同版本 Windows Desktop 控制启动故障实证。请明确已合并的 #51822 已进入哪个可安装 Windows Desktop 生产构建,或提供保留原注册核心与沙箱隔离的受支持原位恢复步骤。
环境与当前交付缺口
当前复现
2026-10-09 06:58:57(UTC+8),官方统一 CUA 只调用
await cua.getState(),即返回trusted Node process exited unexpectedly,未读取浏览器页面、未执行输入。相同时间沙箱日志(个人路径已脱敏):原受限本地执行及原 Windows 独立 Computer Use 此前也在相同共享启动层失败。正常完整重开已尝试,仍复发;ACL 专用 READ_CONTROL/WRITE_DAC 只读句柄检查可打开,不支持“缺少运行文件权限”的直接判断。没有关闭安全隔离、递归重置 ACL、复制或替换核心、清登录会话或批量结束业务进程。
原配置只有一个 node_repl 注册,路径一致,无已证冲突可修。PR #51822 与旧 alpha.2 runtime 文件 root-only ACL 宽访问路径相符,但尚未证明所有冲突句柄及完整因果。
已验证的新官方候选
MXC 已用当前原活跃核心、
--include-managed-config及:workspace权限 profile 执行严格单命令兼容检查,exit 1,返回failed to prepare MXC sandbox: native MXC is unavailable on this executor。没有改全局配置。本机 System32/processmodel.dll 未检出。MXC 在本机不可用,不请求较弱沙箱作为长期解决方案。请明确修复交付
此补充仅含脱敏版本、报错和诊断,不附会话、账号、客户、凭据或业务内容。提交复现证据不表示官方已确认根因或已安排修复。
mfdev-hosp commentedon Oct 9, 2026
Confirming the same failure on another Windows installation.
Environment:
Computer Use fails during initialization with:
helper_unknown_error: setup refresh had errorsThe sandbox log reports Windows error 32 when opening the bundled
node_repl.exefor an ACL update.Stopping twelve matching
node_repl.exeprocesses moved the failure toVCRUNTIME140_1.dll. The Computer Use Swift helper was confirmed to load that DLL. After termination, the app automatically restarted the helper.A subsequent test on October 9 still failed on
node_repl.exe.Could the team confirm which Windows desktop release includes #51822 and provide a supported recovery procedure that preserves chats, projects and settings?
sduchene-208 commentedon Oct 9, 2026
Additional reproduction — VS Code Codex on Windows (October 9, 2026)
I’m experiencing the same Windows sandbox initialization failure, specifically while attempting to use Windows Computer Use to control Chrome from VS Code Codex.
Environment
Observed errors
The browser interaction fails before Chrome can be inspected:
trusted Node process exited unexpectedly; kernel reset, rerun your request
windows sandbox failed:
helper_unknown_error: setup refresh had errors
(exited(code=1))
The sandbox log confirms the underlying failure:
runtime read/execute validation failed:
validate runtime read/execute access on
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)
Troubleshooting performed
Additional findings
The issue appears intermittent. Computer Use can successfully initialize and interact with Chrome, but subsequent attempts can fail before browser state retrieval.
The logs establish a Windows sharing violation during runtime ACL validation. The process holding the conflicting handle has not been identified.
Request
Could the Codex team confirm whether this failure is addressed by an existing fix, identify the first VS Code Codex release containing the correction, or provide a supported recovery procedure that preserves Windows sandbox security?
I can provide additional sanitized diagnostics if needed.
ailing137 commentedon Oct 10, 2026
更新本机恢复进展及一个独立的线程级剩余故障(2026-10-10,UTC+8),续前条脱敏回执。
新官方交付的实际结果
仍存在的独立线程级故障
同一安装下,一个原长会话的 CUA 在 08:19:33、一次受支持会话重置后 08:26:33,均在任何页面动作前返回:
该线程的原受限 shell 已正常;其他原线程控制可用,所以不能继续把它归类为共享 ACL 错误32。
只读检查该线程当前 turn_context(不公开内容/路径):
微软 CreateProcessW 命令行上限为32,767字符:https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessw
当前 node_repl 二进制包含 permissions profile 的 inline TOML 序列化路径。较大的 profile 经命令行传给 worker 是高度可疑的方向,但我们没有捕获实际 spawn argv,因此不宣称完整因果已证明。未清空权限记录、改会话数据库、删除保护项、覆盖核心或使用非沙箱替代执行器。
请给出受支持的剩余修复
此补充只含版本、错误、数量和长度;不附账号、客户、站点、业务、凭据、个人路径、会话ID或原始日志。单线程失败不影响已恢复任务继续经营。
同次升级后的原生窗口验收补充(约08:35 UTC+8)
原 Windows @oai/sky 的初始化、list_apps 和 list_windows 均已由原受影响线程实际通过。随后仅尝试一次官方 sky.launch_app 打开本机微软签名有效的 explorer.exe,返回:
立即读取当前窗口列表未见新 Explorer 窗口,未重投启动、未进行输入或文件操作。系统原 explorer 进程存在;这不足以证明窗口启动、状态捕获或输入已恢复。当前先让用户正常打开一个业务窗口,再由同一原工具做只读验收,不改系统/应用安全设置或替换控制协议。
请同时给出该窗口事件监听器未就绪的受支持诊断/恢复步骤。它与上面的单线程 Node 启动206分开记录,不能将“列窗口成功”当成完整电脑控制PASS。
已有业务窗口的窄范围恢复回读(2026-10-10约08:44 UTC+8)
用户正常打开原业务后台并保持桌面解锁后,同一原受影响线程通过原 @oai/sky 完成:重新列窗口、唯一识别既有 Edge 业务窗口、get_window、显式 activate_window、fresh get_window_state 读取实际账号和内容列表,以及一次只读页签切换并返回原列表。未做发布、编辑、删除、消息、登录、支付或权限操作。
首次 get_window_state 得到前台应用画面,未据此输入;显式激活目标并刷新后才取得正确业务画面,后续操作均绑定新的截图ID。这里只把已有窗口的识别、画面读取和只读交互记为通过。Explorer 的 launch_app 事件处理故障仍未解决,单线程206也未恢复;下一自然运行稳定性及外部写入各自待验。请保留这些故障的独立修复请求,不将本次已有窗口成功等同完整恢复。