Skip to content

[Windows] Runtime ACL validation fails with os error 32 on node_repl.exe, blocking Chrome control and shell commands #51981

Open

Description

@xzx767877191-droid

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

26.1002.52244 (build 13536)

What subscription do you have?

plu

What platform is your computer?

Windows 11 Pro 25H2, build 26200.8873, x64

What issue are you seeing?

Summary

On Windows, Codex cannot initialize Chrome/browser control or execute ordinary sandboxed PowerShell commands.

The generic error is helper_unknown_error: setup refresh had errors. Local sandbox logs identify the specific fatal failure: runtime read/execute validation attempts to open Codex's bundled node_repl.exe for an ACL update and fails with Windows os error 32 (“another process is using this file”).

Environment

  • Codex App: 26.1002.52244, build 13536
  • Windows package: OpenAI.Codex 26.1002.7124.0
  • OS: Windows 11 Pro 25H2, build 26200.8873, x64
  • Configured Windows sandbox: elevated
  • Task sandbox mode: workspace-write
  • Runtime: cua_node\3dd31cfff853001c
  • Workspace: C:\Users<USER>\Documents\Codex\2026-10-08\chrome
  • The app update checker returned up_to_date during diagnosis.

Steps to reproduce on this installation

  1. Open a local Codex chat on Windows.
  2. Ask Codex to connect to Chrome.
  3. Browser control initialization via cua.getState() fails before any browser or tab information is returned.
  4. Retry the connection; the failure persists.
  5. Ask Codex to execute the minimal read-only PowerShell command Get-Location.
  6. Ordinary sandboxed execution fails before the command produces output.

Actual behavior

Browser/Node initialization reports:

node_repl kernel exited unexpectedly

kernel_status: exited(code=1)
kernel_stderr_tail:
windows sandbox failed: helper_unknown_error: setup refresh had errors

Earlier attempts also reported:

trusted Node process exited unexpectedly; kernel reset, rerun your request

Ordinary shell execution reports:

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

Confirmed sandbox log evidence

The latest minimal Get-Location reproduction occurred on 2026-10-08 at approximately 14:45:15 Asia/Shanghai (06:45:15 UTC).

Anonymized excerpt:

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:
另一个程序正在使用此文件,进程无法访问。 (os error 32)

setup refresh completed with errors
setup error: setup refresh had errors
setup refresh: exited with status ExitStatus(ExitStatus(1))

The Chinese Windows error means:
“The process cannot access the file because it is being used by another process.”

The log also contains a user-profile read-attributes ACE warning with error 32, but that warning says continuing setup. The fatal errors list specifically identifies runtime validation of node_repl.exe.

Diagnostic findings

  • The same runtime-validation failure appears repeatedly in the local sandbox log.
  • Four running node_repl.exe processes were observed from the same runtime directory.
  • This process inventory does not establish which process or handle causes the sharing conflict.
  • A read-only diagnostic executed outside the ordinary sandbox succeeded, including Get-Location and reading sandbox logs.
  • Ordinary sandboxed Get-Location still failed.
  • No ACLs, ownership, sandbox settings, runtime files, or processes were changed during this diagnosis.
  • An app/Windows restart was not independently verified during this diagnosis.

Expected behavior

Codex should initialize its Windows sandbox and execute authorized browser actions and local commands while its runtime helpers are running.

If initialization fails, the tool-facing error should include the failing path and Windows error code instead of only helper_unknown_error.

Impact and related report

This blocks my Chrome automation and ordinary local file/command workflows.

The symptoms closely match [#51719](#51719), including the Windows package version and runtime directory. A shared underlying cause has not been independently established.

Please confirm whether this is the same tracked issue and provide a supported fix or workaround that preserves existing chats and files.

What steps can reproduce the bug?

Feedback ID: 01a11a34-b2d6-77e2-a00d-45e2e29c7718

What is the expected behavior?

Codex should successfully initialize its Windows sandbox and run authorized local tools.

Specifically:

  • Browser control should initialize and return Chrome connection/tab information, or report a browser-specific connection problem.
  • A basic read-only command such as Get-Location should execute and return the workspace path.
  • Running Codex runtime helpers should not prevent sandbox initialization.

If sandbox setup fails, the visible error should identify the failing runtime file and underlying Windows error code, rather than only reporting helper_unknown_error or an unexpected Node kernel exit.

Additional information

Verified environment:

  • Codex App: 26.1002.52244, build 13536
  • Windows package: OpenAI.Codex 26.1002.7124.0
  • Windows 11 Pro 25H2, build 26200.8873, x64
  • Configured Windows sandbox: elevated
  • Task sandbox mode: workspace-write
  • Runtime: cua_node\3dd31cfff853001c
  • The app update checker returned up_to_date during diagnosis.

Four running node_repl.exe processes were observed from the same runtime directory. The process or file handle responsible for the sharing conflict has not been identified.

The user-profile ACE warning also reports error 32, but explicitly says continuing setup. The fatal errors list instead identifies runtime validation of node_repl.exe.

No permissions, ownership, sandbox settings, runtime files, or processes were changed during this diagnosis. An app/Windows restart was not independently verified.

Related report: [#51719](#51719). The package version, runtime directory, and error closely match that report; a shared underlying cause has not been independently established.

This blocks both Chrome automation and ordinary local command/file workflows. Please provide a supported fix or workaround that preserves existing chats and files.

Activity

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

    @DLAte-1201

    Additional reproduction on Windows 11 Home with the same app and runtime versions: a verified complete app restart did not restore sandboxed command execution.

    Environment observed on 2026-10-09

    • Windows 11 Home, OS 10.0.26200 (full revision not collected).
    • App: 26.1002.52244, build 13536, prod.
    • Windows package: OpenAI.Codex 26.1002.7124.0.
    • Bundled runner: codex-cli 0.162.0-alpha.2.
    • App updater reported up_to_date during the investigation.
    • Failing task permission mode: workspace-write.

    Verified restart and reproduction

    All times below are 2026-10-09 KST (UTC+09:00):

    1. 06:44:54: requested normal window closure.
    2. 06:45:09: the verified app process remained running and was terminated after the wait; this was not an entirely graceful shutdown.
    3. 06:45:16: no processes remained in the exact Codex package/runtime executable paths in the same Windows session. Targets had been checked for app ancestry, current user, PID, creation time and executable path. This scoped check does not exclude foreign handles or prove the file was globally unlocked.
    4. 06:45:17: launched the app once through its registered AppsFolder application ID; the new app was still running after 30 seconds.
    5. Two new node_repl.exe processes for the same runtime file had creation timestamps around 06:46:12.
    6. 06:46:36: a normal sandboxed call containing only Get-Location failed before PowerShell started, with helper_unknown_error: setup refresh had errors.

    Abridged log excerpt (username redacted; the Windows error sentence is translated from Korean):

    [2026-10-08T21:46:35.993178+00:00]
    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)
    
    [2026-10-08T21:46:36.005400+00:00] setup refresh completed with errors
    [2026-10-08T21:46:36.005421600+00:00] setup error: setup refresh had errors
    

    Additional non-mutating comparison before the restart

    An open/close-only CreateFileW probe on that exact runtime file produced:

    • MAXIMUM_ALLOWED: Windows error 32.
    • READ_CONTROL: success.
    • READ_CONTROL | WRITE_DAC: success.

    All probes used FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, OPEN_EXISTING, and FILE_FLAG_BACKUP_SEMANTICS. Handles were disposed immediately; no ACL update or file write was performed. This is consistent with the mechanism described in #51822, but does not identify the incompatible holder or establish the exact installed binary's source revision.

    Result: app restart verified; original sandbox recovery failed. Read-only diagnostics outside the sandbox worked, but are not counted as recovery. No manual ACL/ownership changes, runtime/data deletion, sandbox disabling, or reinstall was performed in this recovery attempt.

    Could maintainers identify the first Windows desktop app build containing #51822 or an equivalent fix, and a supported recovery for this build that preserves existing data and sandbox protections?

  4. aicreator-emprenovus commented on Oct 9, 2026

    @aicreator-emprenovus

    On Windows 11, Codex Doctor reports sandbox provisioning complete, but tasks still fail with helper_unknown_error: setup refresh had errors. The log shows Windows error 32 when accessing cua_node\3dd31cfff853001c\bin\node_repl.exe. I restarted Windows, updated Codex, and ran codex sandbox setup --elevated --current-user; the error returns when Codex starts. Closing Codex and stopping the node_repl.exe processes does not resolve it.

  5. Flysky701 commented on Oct 9, 2026

    @Flysky701

    Additional reproduction and same-machine executor comparison, tested on October 9, 2026.

    Environment

    • Windows 11 Pro, build 26200, x64
    • Desktop app: 26.1002.52244, build 13536
    • Windows package: 26.1002.7124.0
    • Desktop bundled CLI: 0.162.0-alpha.2
    • Configured Windows sandbox: elevated

    Desktop failure

    A minimal Get-Location command fails before process creation with:

    helper_unknown_error: setup refresh had errors
    

    Sandbox logs identify a sharing violation while validating:

    %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\<runtime>\bin\node_repl.exe
    open ACL target for root-only update: ... (os error 32)
    

    The file already grants CodexSandboxUsers read/execute access. A controlled CreateFileW probe on the active executable, using identical sharing flags, produced:

    Requested access Result
    READ_CONTROL Success
    READ_CONTROL + WRITE_DAC Success
    MAXIMUM_ALLOWED Windows error 32

    Stopping the affected node_repl.exe processes moved the failure to VCRUNTIME140_1.dll, loaded by codex-computer-use-swift.exe. Stopping that component did not resolve the problem because the desktop app immediately restarted it.

    Successful comparison

    On the same machine, the official CLI bundled with the installed VS Code extension—0.162.0-alpha.17.2—successfully ran codex sandbox with :read-only and --include-managed-config.

    • Get-Location succeeded.
    • whoami returned <MACHINE>\CodexSandboxOffline.
    • A file-write attempt inside the workspace was denied.

    The desktop’s ordinary sandboxed execution still failed afterward. No ACLs, saved configuration, or application binaries were manually changed during these tests.

    These observations are consistent with the issue addressed by #51822, although I have not confirmed which desktop release includes that fix. Could you identify the first Windows desktop version containing it and provide a supported update path?

  6. christophf-tech commented on Oct 9, 2026

    @christophf-tech

    I can reproduce the same Windows Codex sandbox failure.

    Environment:

    • Windows x64
    • Installed package: OpenAI.Codex 26.1002.7124.0
    • Runtime: cua_node\3dd31cfff853001c
    • Failure: helper_unknown_error: setup refresh had errors

    Confirmed findings:

    • Sandboxed Get-Location fails before PowerShell starts.
    • Sandbox logs show node_repl.exe ACL validation failing with os error 32 (sharing violation).
    • Process Explorer confirms multiple node_repl.exe processes loading the same runtime executable.
    • Terminating Codex and Node helper processes does not permanently resolve the issue.
    • Renaming the cua_node runtime directory and allowing it to be recreated does not resolve the issue.
    • A complete Windows reboot does not resolve the issue.
    • Switching to Full Access allows Get-Location to execute successfully (exit code 0).

    Impact: Normal sandboxed development workflows are blocked. Full Access currently works as a temporary workaround but removes the usual sandbox restrictions.

    Please investigate the runtime ACL refresh and file-sharing conflict. A fix that preserves sandbox isolation would be appreciated.

  7. jamiefrostdesigns commented on Oct 9, 2026

    @jamiefrostdesigns

    I have this exact same issue. Please help

  8. limingming874745 commented on Oct 9, 2026

    @limingming874745

    我也是一样遇到故障,但不知道怎么解决,测试多台电脑新版的codex都有这个问题

  9. LukeMagrath commented on Oct 9, 2026

    @LukeMagrath

    Computer Use and ordinary sandboxed commands still fail after ChatGPT Repair, an app restart, and a full Windows Restart:
    helper_unknown_error: setup refresh had errors
    My current environment is ChatGPT/Codex app 26.1002.52244 (build 13536), Windows package OpenAI.Codex 26.1002.7124.0, and Windows 11 Pro build 26200.9457. The app and package versions match this issue; the issue lists the earlier Windows build 26200.8873.
    Codex Doctor reports failed elevated Windows sandbox provisioning. The fresh sandbox log says read/execute validation of node_repl.exe failed because another process was using the file (os error 32). Stopping the Codex helpers did not resolve it because the app restarted them and the lock returned.
    Microsoft Store and Help → Check for Updates both say the app is current. No project files were changed.

  10. hanamai0930 commented on Oct 9, 2026

    @hanamai0930

    Additional Windows reproduction: process termination and full reboot do not resolve error 32

    I am encountering the same issue in ChatGPT Work on Windows (2026-10-09).

    Environment

    • Windows build: 26200 series (exact revision not verified here)
    • Installed Windows package: OpenAI.Codex 26.1002.7124.0 (x64)
    • Service: CodexSandboxService.OpenAI.Codex, state Running, startup Auto
    • Runtime: cua_node\3dd31cfff853001c
    • Sandbox log: %USERPROFILE%\.codex\.sandbox\sandbox.2026-10-09.log

    Failure: Even cmd /c ver fails before execution:

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

    Local log (paths anonymized):

    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: another process is using this file (os error 32)
    setup refresh completed with errors
    setup error: setup refresh had errors
    setup refresh exited with status ExitStatus(1)
    

    The log separately records a user-profile read-attributes ACE failure with error 32 and continuing setup; the fatal failure is runtime access validation on node_repl.exe.

    Additional controlled observations

    • 15:02:11 local time: two node_repl.exe instances started using the exact affected executable.
    • 15:06:05: sandbox setup refresh started; at 15:06:06 the ACL validation failed with error 32.
    • Process Explorer confirmed both instances loaded the executable (DLL/image entries); it did not establish which handle causes the sharing violation.
    • I closed the application normally; the runtime processes exited.
    • After reopening, I terminated both instances with Stop-Process (without -Force). Both exited, but new instances appeared at 15:24:41, preceding another sandbox refresh at 15:26:00 and the same error at 15:26:01.
    • Repaired the Windows application; also tried reinstalling it and fully rebooting Windows. Work still cannot execute cmd /c ver.
    • Windows application events queried for Codex/ChatGPT/sandbox errors did not reveal a matching entry.
    • No manual ACL/ownership changes or runtime deletions were performed.

    This appears consistent with an ACL-update/file-sharing or initialization-order conflict, but the precise locking process has not been established. Could the team investigate and advise on a supported fix or safe workaround? It blocks all local command execution in Work.

  11. janetworkx commented on Oct 9, 2026

    @janetworkx

    I can reproduce this independently on Windows 11 Pro with ChatGPT Desktop 26.1002.52244 / package 26.1002.7124.0.

    The sandbox log shows:
    runtime read/execute validation failed on node_repl.exe
    os error 32
    setup refresh had errors

    Existing workers may continue to work, while newly created workers fail during sandbox setup.

  12. xzx767877191-droid commented on Oct 12, 2026

    @xzx767877191-droid
    Author

    Original reporter follow-up — partial recovery, Chrome still blocked (2026-10-12, UTC+08:00)

    I tested the community fallback and desktop rollback on the machine described in this issue. Ordinary commands now work, but real external Chrome control still fails. This is not a complete recovery.

    Original confirmed failure

    • Windows 11 Pro 25H2, build 26200.8873, x64 (recorded during the original investigation).
    • Codex App 26.1002.52244, build 13536; Windows package 26.1002.7124.0.
    • Bundled CLI 0.162.0-alpha.2; runtime cua_node/3dd31cfff853001c.
    • With [windows] sandbox = "elevated", ordinary Get-Location and browser runtime initialization failed.
    • Sandbox logs identified an ACL-validation sharing violation on the bundled node_repl.exe: os error 32, followed by setup refresh had errors.

    Steps tried and observed results

    1. Fallback sandbox (October 8): backed up config.toml and changed only windows.sandbox from elevated to unelevated. No manual ACL or ownership changes were made.

    2. Full app restart: ordinary commands in this chat subsequently succeeded with exit code 0. Browser runtime initialization also started and discovered the Chrome extension.

    3. External Chrome remained blocked: both browser inventory and direct Chrome tab enumeration failed with:

      Unable to load browser request-header policy. Retry the browser command.
      

      No tab titles or page content were obtained. This resembles Chrome connection fails: Unable to load browser request-header policy #45678; a common cause with the original sandbox defect has not been established.

    4. On Windows package 26.1007.2314.0 (October 12): ordinary commands still worked with unelevated, but browser inventory and a direct Chrome tab-list request failed with nodeRepl.fetch request failed. This changed error text does not establish a changed root cause.

    5. Desktop rollback (October 12): followed the community reports in Windows 26.1002.52244: sandbox ACL refresh fails on running node_repl.exe (error 32), blocking browser and shell #51965. Downloaded the previous official x64 MSIX from:
      https://persistent.oaistatic.com/codex-app-prod/releases/26.930.7945.0/ChatGPT-x64.msix

      Verified its complete length (912043391 bytes), Authenticode status Valid, and manifest identity/version before installation. Local state backups were made. Automated installation attempts stopped before installation because of a process-exit race and then backup readback differences; I ultimately installed the verified package manually, without uninstalling first:

      Add-AppxPackage -Path "<verified-old-package.msix>" -ForceUpdateFromAnyVersion -ForceApplicationShutdown
    6. Post-install verification in the reopened app: Get-AppxPackage -Name OpenAI.Codex confirmed installed package 26.930.7945.0. Ordinary sandboxed Get-Location succeeded, exit code 0. Configuration remained windows.sandbox = "unelevated".

    7. Real Chrome test after rollback: cua.getState() discovered Chrome using the extension backend, but its inventory reported:

      Browser 3: Error: nodeRepl.fetch request failed
      

      The returned empty tabs list is an inventory failure, not evidence that Chrome has no open tabs. No Chrome page content or tab title was read successfully.

    Current limits and questions

    • Rollback installation is confirmed; browser recovery is not.
    • Command execution was already working under unelevated before rollback, so I cannot attribute that recovery to rollback.
    • I have not retested elevated after rollback, and am not claiming that the original elevated ACL failure is fixed locally.
    • No local runtime binaries were patched, no manual ACL workaround was applied, and no browser security/policy bypass was used.
    • PR Avoid sharing violations when repairing Windows runtime ACLs #51822 addresses the runtime ACL sharing violation, but I have no evidence that it fixes the separate external Chrome policy/fetch failure.

    Could maintainers advise:

    1. Which supported Windows desktop release includes Avoid sharing violations when repairing Windows runtime ACLs #51822?
    2. What supported diagnostics identify the failing request behind nodeRepl.fetch request failed / the earlier request-header-policy error?
    3. Should the remaining Chrome problem be tracked entirely under Chrome connection fails: Unable to load browser request-header policy #45678, and what safe recovery is recommended?

    Only the sanitized findings above are shared; no credentials, cookies, browsing history, private page contents, personal filesystem paths, or full transcripts are attached.

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

    appbrowserbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions