Skip to content

[Windows][26.1002.52244] node_repl.exe fails runtime validation with ERROR 32 sharing violation #52033

Open

Description

@yuvv-raj

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

  1. Initially, both PowerShell and integrated Node tools failed.

  2. Codex was updated and Windows was restarted, but the issue was not fully resolved.

  3. Two processes matching the exact Codex node_repl.exe path were found and stopped:

    • PID 12776
    • PID 2584
  4. After stopping those processes, PowerShell and file reads succeeded.

  5. The existing Node MCP transport closed, which was expected after stopping its process.

  6. Codex was reopened.

  7. At approximately 14:20:14 IST, PowerShell succeeded.

  8. At approximately 14:20:35–14:20:39 IST, an integrated Node test timed out.

  9. At approximately 14:20:35–14:20:39 IST, sandbox setup again reported the executable sharing violation.

  10. At approximately 14:20:49 IST, PowerShell still succeeded.

  11. 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?

  1. Run Codex on Windows with version 26.1002.52244 (build 13536).

  2. Open a new task/chat and invoke the integrated Node/JavaScript tool (node_repl).

  3. Run a simple JavaScript expression, for example:

    2 + 2
  4. The integrated node_repl invocation times out instead of returning 4.

  5. 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
    
  6. The failure reports Windows error 32:

    The process cannot access the file because it is being used by another process.
    (os error 32)
    
  7. As a comparison, run the system-installed/native node.exe directly with the same JavaScript expression. Native Node executes successfully and returns 4.

  8. Restarting Codex and Windows does not permanently resolve the integrated node_repl failure; the failure recurs after reopening Codex.

What is the expected behavior?

No response

Additional information

No response

Activity

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

    @SanjiFlip

    Update: Found a working workaround

    I was able to resolve this issue on my machine by installing Codex version 0.162.0-alpha.20 globally via npm:

    npm install -g @openai/[email protected]

    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.

  4. morganbertin commented on Oct 8, 2026

    @morganbertin

    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 unexpectedly
    • windows sandbox failed: helper_unknown_error: setup refresh had errors
    • stdout_eof
      An earlier attempt also reported orchestrator_helper_exit_nonzero.

    Sanitized sandbox log excerpt:

    runtime read/execute validation failed ... cua_node/3dd31cfff853001c/bin/node_repl.exe:
    open ACL target for root-only update: file is being used by another process (os error 32)
    

    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.

  5. Pazox commented on Oct 8, 2026

    @Pazox

    I can reproduce a related but more severe variant of this issue.

    Environment

    • Windows
    • Codex App: 26.1002.52244
    • Build: 13536
    • Runtime: cua_node\3dd31cfff853001c
    • App package path includes: OpenAI.Codex_26.1002.7124.0_x64__2p2nqsd0c76g0

    Fatal 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:

    • Four instances of node.exe ./server.mjs
    • codex-computer-use-swift.exe
      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:
    Name: ChatGPT.exe
    ExecutablePath:
    C:\Program Files\WindowsApps\OpenAI.Codex_26.1002.7124.0_x64__2p2nqsd0c76g0\app\ChatGPT.exe
    

    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

    • Restarting Codex did not resolve the problem.
    • Restarting Windows did not resolve the problem.
    • Resetting the JavaScript/computer-use runtime did not resolve it.
    • The repository .git owner matches the logged-in Windows user.
    • Bitdefender showed no corresponding detection or blocked action.
    • I did not change runtime ACLs or add antivirus exclusions.

    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.

  6. Mattifrog commented on Oct 8, 2026

    @Mattifrog

    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 reports open ACL target for root-only update on %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.exe
    • ChatGPT.exe → codex.exe → node.exe (@oai/cua-repl) → another node_repl.exe

    Terminating only two verified Codex node_repl.exe helpers 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.

  7. ailing137 commented on Oct 8, 2026

    @ailing137

    补充同版本 Windows Desktop 控制启动故障实证。请明确已合并的 #51822 已进入哪个可安装 Windows Desktop 生产构建,或提供保留原注册核心与沙箱隔离的受支持原位恢复步骤。

    环境与当前交付缺口

    • Windows 11 企业版 10.0.22000 x64。
    • Codex Desktop 26.1002.52244,build 13536,prod;Appx 26.1002.7124.0。
    • 当前原活跃核心实际版本:codex-cli 0.162.0-alpha.2。
    • 本机生产更新检查显示 up_to_date。独立 CLI 预发布包含修复,不足以证明该修复已进入本机 Desktop 或证明替换核心后的注册身份、服务分支与隔离等价。

    当前复现

    2026-10-09 06:58:57(UTC+8),官方统一 CUA 只调用 await cua.getState(),即返回 trusted Node process exited unexpectedly,未读取浏览器页面、未执行输入。相同时间沙箱日志(个人路径已脱敏):

    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)
    setup refresh completed with errors
    setup error: setup refresh had errors
    

    原受限本地执行及原 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 在本机不可用,不请求较弱沙箱作为长期解决方案。

    请明确修复交付

    1. 首个包含 PR Avoid sharing violations when repairing Windows runtime ACLs #51822 的可安装 Windows Desktop 生产版本,以及对应 bundled core 版本。
    2. 当前安装是否有受支持的原位恢复步骤,且保留注册身份、沙箱隔离和现有任务历史。
    3. 修复后的验收条件:原受限项目读写及拒绝边界保持;官方浏览器与原 Windows 电脑控制实际启动、取得当前状态并可操作合法非敏感目标;之后在原任务自然周期复现。

    此补充仅含脱敏版本、报错和诊断,不附会话、账号、客户、凭据或业务内容。提交复现证据不表示官方已确认根因或已安排修复。

  8. mfdev-hosp commented on Oct 9, 2026

    @mfdev-hosp

    Confirming the same failure on another Windows installation.

    Environment:

    • App: 26.1002.52244, build 13536
    • Windows package: 26.1002.7124.0
    • Bundled Codex: 0.162.0-alpha.2

    Computer Use fails during initialization with:
    helper_unknown_error: setup refresh had errors

    The sandbox log reports Windows error 32 when opening the bundled node_repl.exe for an ACL update.

    Stopping twelve matching node_repl.exe processes moved the failure to VCRUNTIME140_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?

  9. sduchene-208 commented on Oct 9, 2026

    @sduchene-208

    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

    • VS Code Codex extension: openai.chatgpt-26.1007.21434-win32-x64
    • Computer Use runtime: @oai/sky 0.7.6
    • Runtime directory: cua_node\3dd31cfff853001c
    • Original Windows sandbox configuration: elevated (also tested unelevated)

    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

    • Restarted Windows.
    • Verified that the Computer Use runtime and executables are present.
    • Successfully inspected a Notepad window using Computer Use.
    • Successfully inspected Chrome at https://example.com/ and navigated to an IANA page in one session.
    • Subsequently reproduced the sandbox initialization failure.
    • Closed VS Code and ChatGPT, terminated lingering Codex and Node REPL processes, then restarted with one VS Code session.
    • Confirmed that the same node_repl.exe sharing violation returned after the controlled restart.

    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.

  10. ailing137 commented on Oct 10, 2026

    @ailing137

    更新本机恢复进展及一个独立的线程级剩余故障(2026-10-10,UTC+8),续前条脱敏回执。

    新官方交付的实际结果

    • 当前 Windows 已注册 Appx:26.1007.2314.0;实际运行的原 bundled core:codex-cli 0.162.0-alpha.17.2。
    • 原默认受限 shell 的项目读写/回读/清理通过,受保护配置的写访问仍被拒绝。
    • 原统一浏览器已能初始化、读页面并完成一次可回读导航;两个原业务线程也已完成各自真实浏览器操作。
    • 原 Windows @oai/sky 的 import/list_apps 通过,完整原生窗口业务验收仍在进行。
    • 没有修改 ACL、沙箱、核心、凭据或安全设置。以上不证明具体 PR 已进入该 Desktop 构建,也不证明长期稳定。

    仍存在的独立线程级故障
    同一安装下,一个原长会话的 CUA 在 08:19:33、一次受支持会话重置后 08:26:33,均在任何页面动作前返回:

    failed to start Node runtime:
    文件名或扩展名太长。 (os error 206)
    

    该线程的原受限 shell 已正常;其他原线程控制可用,所以不能继续把它归类为共享 ACL 错误32。

    只读检查该线程当前 turn_context(不公开内容/路径):

    当前 node_repl 二进制包含 permissions profile 的 inline TOML 序列化路径。较大的 profile 经命令行传给 worker 是高度可疑的方向,但我们没有捕获实际 spawn argv,因此不宣称完整因果已证明。未清空权限记录、改会话数据库、删除保护项、覆盖核心或使用非沙箱替代执行器。

    请给出受支持的剩余修复

    1. 确认当前 Desktop/core 的共享 ACL 修复交付映射。
    2. 对长会话权限记录累积导致的 Windows Node 启动206,提供保留同一线程/历史/注册核心和同等隔离的原位恢复步骤。
    3. 若确为 inline profile/命令行长度,请采用安全的非命令行传输或语义等价压缩,保留所有受保护子路径拒绝和真实业务权限边界,并明确首个交付版本。

    此补充只含版本、错误、数量和长度;不附账号、客户、站点、业务、凭据、个人路径、会话ID或原始日志。单线程失败不影响已恢复任务继续经营。

    同次升级后的原生窗口验收补充(约08:35 UTC+8)
    原 Windows @oai/sky 的初始化、list_apps 和 list_windows 均已由原受影响线程实际通过。随后仅尝试一次官方 sky.launch_app 打开本机微软签名有效的 explorer.exe,返回:

    accessibility window-opened handler did not become ready
    

    立即读取当前窗口列表未见新 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也未恢复;下一自然运行稳定性及外部写入各自待验。请保留这些故障的独立修复请求,不将本次已有窗口成功等同完整恢复。

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

    appbugsandboxtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions