Skip to content

Windows: local commands fail with “setup refresh had errors” and OS error 32 on node_repl.exe #51925

Open

Description

@moneybylibyli-droid

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?

"$([Environment]::OSVersion.VersionString) $(if ([Environment]::Is64BitOperatingSystem) { 'x64' } else { 'x86' })"

What issue are you seeing?

Codex cannot run local commands on Windows. Even simple read-only commands such as Get-Item and Get-Content fail before execution.

Tool error:
Failed to create unified exec process:
helper_unknown_error: setup refresh had errors

The sandbox log repeatedly 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)

Affected path:
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\node_repl.exe

Troubleshooting already attempted:

  • Restarted the application completely.
  • Restarted Windows.
  • Tried a new conversation.
  • Confirmed that all six node_repl.exe processes terminate when the application closes.
  • Reopened Codex, but the same error returned.
  • Searched for node_repl.exe in Resource Monitor's Associated Handles; no results appeared.

Expected behavior:
Local commands should start successfully so Codex can read and process local files.

Actual behavior:
Sandbox setup fails before any command executes.

Feedback was successfully submitted through the application.
Feedback ID:
01a078aa-b274-7e73-a4f7-34f3ad623a52

What steps can reproduce the bug?

Feedback ID: 01a078aa-b274-7e73-a4f7-34f3ad623a52

What is the expected behavior?

Sandbox setup should complete successfully, and Codex should execute local PowerShell commands and access authorized local files without this error.

Additional information

Six node_repl.exe processes were observed, all located under:
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\

All of these processes terminate when the application is fully closed. However, the error returns after reopening it.

Resource Monitor's Associated Handles search for node_repl.exe returned no results.

The latest inspected sandbox log repeats:
runtime read/execute validation failed
open ACL target for root-only update
The file is being used by another process. (os error 32)

Diagnostics were submitted successfully through the application's feedback feature.

Activity

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

    @wonjulifestory

    Additional reproduction on Windows on 2026-10-08, affecting local command execution and file editing.

    The same runtime is involved:
    %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\node_repl.exe

    A minimal command such as python -c "print('ready')" fails before Python starts:

    Failed to create unified exec process:
    helper_unknown_error: setup refresh had errors
    

    Sanitized sandbox log excerpt (2026-10-08T04:48:29Z):

    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:
    다른 프로세스가 파일을 사용 중이기 때문에 프로세스가 액세스 할 수 없습니다. (os error 32)
    setup refresh completed with errors
    setup error: setup refresh had errors
    setup refresh: exited with status ExitStatus(ExitStatus(1))
    

    The Korean message means the file cannot be accessed because another process is using it (sharing violation).

    Observed impact and recovery attempts:

    • Local document generation/editing is blocked. apply_patch also cannot write even a small text file.
    • Some directory reads and downloads still succeed; execution is not uniformly unavailable.
    • A full Windows restart did not resolve the failure.
    • Resetting the Node REPL session did not resolve the failure.
    • The user reports that Claude Code can work on the same computer.
    • codex --version from the installed command-line executable returns codex-cli 0.161.0. This is not a verified version of the desktop app's bundled core; the desktop app version and exact Windows build were not collected.

    The immediate runtime ACL-update failure is confirmed from the log. The process responsible for the conflicting file access and any startup-order race remain unconfirmed. No sandbox protections or ACLs were changed as part of these reproduction steps.

    Please investigate and identify the fixed desktop/runtime release when available. We are leaving the current configuration unchanged while waiting for a supported fix.

  4. davesaad-design commented on Oct 8, 2026

    @davesaad-design

    Same failure here on Windows 11 (Codex desktop app 26.1002.52244, MSIX package OpenAI.Codex 26.1002.7124.0 from the Store).

    • Every sandboxed command, including scheduled automations, failed before running: helper_unknown_error: setup refresh had errors.
    • .codex\.sandbox\sandbox.<date>.log: runtime read/execute validation failed ... runtimes\cua_node\3dd31cfff853001c\bin\node_repl.exe: open ACL target for root-only update ... (os error 32), then setup exit 1. The same os error 32 was logged as a non-fatal warning on the user-profile root.
    • It first appeared right after the update installed on 2026-10-07; there were 270+ occurrences the next day and none before. A full Windows restart did not help: two node_repl.exe helpers were running again within minutes, and the error came back.
    • The ACLs on node_repl.exe already grant CodexSandboxUsers read/execute (inherited), the same as node.exe. This looks like a sharing violation on the exclusive open, not missing rights.

    Workaround that worked for me (same as #51668): I quit Codex, then installed the signed OpenAI.Codex 26.930.7945.0 MSIX (Add-AppxPackage -ForceUpdateFromAnyVersion; signature Valid, publisher matching the installed package). After relaunch the app uses CLI 0.160.1, the cua_node\3dd31cfff853001c runtime is gone, and a scheduled automation that had failed twice got past the point where it previously died. [windows] sandbox = "elevated" was left unchanged.

  5. parkhotellinde commented on Oct 8, 2026

    @parkhotellinde

    Additional verified reproduction on Windows 10 Education 22H2, build 19045.6456, observed on 2026-10-08. Desktop version: 26.1002.52244; bundled CLI: 0.162.0-alpha.2; CUA runtime: 3dd31cfff853001c. Windows sandbox mode remains elevated.

    An additional finding: the officially supported elevated setup succeeds while the desktop app is completely closed, but the failure returns after reopening the app.

    With the app closed, windowsSandbox/setupStart(mode="elevated") through a local stdio app-server completed successfully. The sandbox log at 2026-10-08T16:55:25Z records:
    setup refresh: processed 1 write roots (read roots delegated); errors=[]
    setup binary completed

    The configuration file's SHA-256 was unchanged after setup.

    After reopening the app, the first sandboxed read-only command failed before execution at 2026-10-08T16:56:11Z. The log again reports:
    runtime read/execute validation failed ... 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)

    Browser-control calls also fail before page access; the trusted Node process exits.

    During an earlier live recovery attempt, terminating the two specifically identified node_repl.exe helpers moved the setup failure to:
    cua_node\3dd31cfff853001c\bin\node_modules@oai\sky\bin\windows\swift\x64\VCRUNTIME140_1.dll

    Windows Restart Manager identified codex-computer-use-swift.exe as using that DLL. After that helper was terminated, the desktop app immediately spawned a replacement and setup still failed on the same DLL. The node_repl.exe ACL already grants CodexSandboxUsers inherited read/execute access.

    These observations suggest a runtime-startup/ACL-refresh ordering or file-sharing conflict, but do not establish the root cause. No sandbox downgrade, broad ACL reset, or runtime binary replacement was applied. Please advise on a supported fix and the release containing it.

  6. 13032585789-spec commented on Oct 8, 2026

    @13032585789-spec

    I am experiencing the same issue on Codex Desktop for Windows.

    Environment
    Codex Desktop version: 26.1002.52244
    Platform: Windows
    Sandbox modes tested: elevated and unelevated
    Affected runtime: cua_node/3dd31cfff853001c/bin/node_repl.exe
    Steps to reproduce
    Launch Codex Desktop.

    Open a local project.

    Ask Codex to run a basic PowerShell command: Write-Output "CODEX_TEST_OK".
    The command fails before execution.

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

    Sandbox log
    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

    Troubleshooting performed
    Closed and reopened Codex Desktop.
    Tested a separate workspace.
    Identified node_repl.exe processes launched by codex.exe and node.exe.
    Terminated the relevant processes after closing Codex.
    Restarted Codex; the error persisted.
    Changed the Windows sandbox setting from elevated to unelevated; the error still occurred.

    Expected behavior
    Codex should initialize the sandbox successfully and execute basic local commands.

    Actual behavior
    Every local command fails before execution. This also prevents Codex from accessing and modifying local documents through its normal execution tools.

    Could the maintainers confirm whether this is a known regression in version 26.1002.52244 and whether a supported fix or workaround is available?

    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

  7. curtis-fox-hyland commented on Oct 8, 2026

    @curtis-fox-hyland

    Confirming this affects skill usage on my build (About Codex version: 26.1002.52244).

    Same failure signature as above, but triggered by attempting to use an installed skill rather than a direct shell command, browser-control action, or the VS Code extension — worth noting since every report I’ve seen in this cluster so far describes a manual/direct trigger. This points at the failure being in the generic sandbox setup/refresh path itself, which runs before any unified-exec call regardless of what initiated it, rather than something specific to how the command was invoked.

    Sandbox log excerpt:

    [2026-10-08 13:11:10.313 codex.exe] setup refresh: spawning C:\Users\<user>\AppData\Local\OpenAI\Codex\bin\9691020b546a15b2\codex-windows-sandbox-setup.exe (cwd=C:\Users\<user>\AppData\Local\OpenAI\Codex\bin\9691020b546a15b2, payload_len=3452)
    [2026-10-08T17:11:10.935513600+00:00] failed to grant non-inheriting read-attributes ACE on user profile C:\Users\<user>: open ACL target for root-only update: The process cannot access the file because it is being used by another process. (os error 32); continuing setup
    [2026-10-08T17:11:10.953221900+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-08T17:11:10.977746200+00:00] setup refresh: processed 4 write roots (read roots delegated); errors=["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-08T17:11:10.977792300+00:00] setup error: setup refresh had errors
    [2026-10-08 13:11:10.982 codex.exe] setup refresh: exited with status ExitStatus(ExitStatus(1))
    

    Retried in a fresh conversation and full app re-launches - same runtime path, same error.

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