Skip to content

Windows sandbox setup fails with OS error 32 on bundled Computer Use runtime files #52030

Open

Description

@yanx1980-crypto

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

26.1002.7124.0

What subscription do you have?

Plus

What platform is your computer?

Windows, x64

What issue are you seeing?

Normal sandboxed shell commands fail before execution, including the harmless PowerShell command Get-Location.

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

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

Initially, the failing target was:
<CODEX_RUNTIME>/cua_node//bin/node_repl.exe

After terminating the associated node_repl processes, the failing target changed to:
<CODEX_RUNTIME>/cua_node//bin/node_modules/@oai/sky/bin/windows/swift/x64/VCRUNTIME140_1.dll

Loaded-module inspection identified codex-computer-use-swift.exe as loading that DLL. After this helper was terminated, the desktop app immediately started a replacement helper, and sandbox setup failed on the same DLL again.

Configuration already uses [windows] sandbox = "elevated". The workspace is explicitly writable, and the runtime ACL grants sandbox users ReadAndExecute.

This suggests a conflict between Computer Use runtime startup and sandbox ACL refresh. The exact internal cause has not been confirmed.

What steps can reproduce the bug?

Observed sequence on the affected installation:

  1. Restart Windows and launch the Codex desktop app.
  2. Open a local workspace with write permission.
  3. Ask Codex to run Get-Location using normal sandboxed execution.
  4. Observe that sandbox initialization fails with OS error 32 on node_repl.exe.
  5. With user authorization, terminate the associated bundled node_repl processes and retry.
  6. Observe that initialization now fails on VCRUNTIME140_1.dll.
  7. Terminate the codex-computer-use-swift.exe helper loading that DLL.
  8. Observe that the app automatically starts a replacement helper and the same failure recurs.

Expected: sandbox initialization completes safely while bundled Computer Use components are running.

Actual: ordinary shell commands cannot start.

No sandbox protections were disabled, and no ACL or configuration changes were made during these tests.

What is the expected behavior?

Normal sandboxed shell commands, such as Get-Location, should execute successfully in an authorized local workspace.

Sandbox initialization should safely handle bundled Computer Use runtime files that are already loaded, without failing with OS error 32.

Users should not need to manually terminate helper processes, disable sandbox protections, or change folder permissions to run ordinary commands.

Additional information

Usernames, machine names, full local paths, process IDs, session IDs, credentials, and project content have been omitted. No raw logs or conversation transcript are attached.

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