Skip to content

Windows: shell execution fails with sandbox setup errors due to locked cua_node runtime files #52243

Open

Description

@bozensel

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

26.1002.52244 (build 13536)

What subscription do you have?

ChatGPT Plus

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

What issue are you seeing?

Codex cannot execute local shell commands, including a simple PowerShell pwd. Execution fails before the shell process starts:

helper_unknown_error: setup refresh had errors

The sandbox log reports runtime read/execute validation failures when updating ACLs on files under:

C:\Users<user>\AppData\Local\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\

Affected files observed across attempts:

  • node_repl.exe
  • node.exe
  • node_modules@oai\sky\bin\windows\swift\x64\VCRUNTIME140_1.dll

The underlying Windows error is:
"The process cannot access the file because it is being used by another process. (os error 32)"

Process inspection confirmed this chain:
codex.exe → node.exe running @oai/cua-repl/bin/cua-repl.mjs → node_repl.exe

codex-computer-use-swift.exe was also confirmed to load the exact DLL reported in the error.

External PowerShell and SSH work normally. The failure also occurs in a fresh Codex chat requesting only PowerShell execution.

Restarting Windows and Codex did not fix it. Stopping the runtime helper processes restored execution once, but subsequent attempts failed, and helpers were observed restarting with new PIDs.

Disabling "Any Application" under Computer Use and disabling the node_repl MCP did not resolve the failure.

What steps can reproduce the bug?

  1. Open the Codex desktop app on Windows.
  2. Start a new local chat.
  3. Ask Codex to run pwd in PowerShell in a local workspace, without using browser or computer-control tools.
  4. Command execution fails before PowerShell starts with:
    helper_unknown_error: setup refresh had errors
  5. Inspect %USERPROFILE%.codex.sandbox\sandbox.2026-10-08.log.
  6. The log shows runtime ACL validation failing with Windows os error 32 on cua_node runtime files.

Expected: PowerShell starts and prints the working directory.
Actual: Sandbox setup fails and the command never executes.

What is the expected behavior?

Codex should start PowerShell and execute pwd successfully, printing the working directory. Running CUA helper processes should not prevent sandbox setup or block unrelated shell commands.

Additional information

The app update check reported that version 26.1002.52244 (build 13536) was up to date.

Administrator PowerShell confirmed that codex.exe launches node.exe with @oai/cua-repl/bin/cua-repl.mjs, which launches node_repl.exe.

The codex-computer-use-swift.exe helper was observed restarting with a new PID after being stopped. Its loaded modules included the exact VCRUNTIME140_1.dll path reported by sandbox setup.

The issue persists in a fresh chat and after disabling both Computer Use ("Any Application") and the node_repl MCP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugcomputer-usesandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions