Skip to content

Windows app 26.1002.7124.0: sandbox setup error 32 on VCRUNTIME140_1.dll blocks local commands #52216

Open

Description

@EffeHubben

Codex App version

26.1002.7124.0 (from installed package path in the sandbox log).

Subscription

Pro.

Platform

Windows, x64. Exact Windows build not collected.

Issue

The desktop is connected and authorized, but local commands fail before execution:

Failed to create unified exec process:
exec-server rejected request (-32603):
helper_unknown_error: setup refresh had errors

The sandbox log reports:

runtime read/execute validation failed:
validate runtime read/execute access on
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\node_modules\@oai\sky\bin\windows\swift\x64\VCRUNTIME140_1.dll:
open ACL target for root-only update:
The process cannot access the file because it is being used by another process. (os error 32)

Steps to reproduce

  1. Open the desktop app and connect the Windows computer.
  2. Request a harmless local PowerShell command such as Get-Location.
  3. Execution fails during sandbox setup, before the command starts.

Feedback ID: no-active-thread-01a11cc3-8a12-7c13-9044-31879d787d4b

Troubleshooting and observations

  • Fully quitting and reopening the app did not resolve the failure.
  • codex-computer-use-swift.exe reappears after termination while the app is running. It disappears when the app is fully closed and returns when the app is reopened.
  • The exact process holding the DLL has not been independently confirmed.
  • The latest captured failing attempt was 2026-10-08 at 17:35 UTC.
  • No DLL deletion or security/ACL changes were made.

Expected behavior

Authorized local commands should execute normally. Sandbox setup should safely handle bundled runtime files already in use.

Related reports

The symptoms match #52036 and #52127. This report supplies an additional feedback ID and the observed app version. Personal paths and unrelated log content have been omitted.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    on Oct 8, 2026
  2. alghamdi07anas-ui commented on Oct 9, 2026

    @alghamdi07anas-ui

    Additional evidence from an independent reproduction on 26.1002.7124.0 (bundled codex-cli 0.162.0-alpha.2), Windows 11 10.0.26300, elevated sandbox. Everything below was measured unless marked "inference" or "hypothesis".

    1. Which file fails depends on what is running — the failure moves.

    • With node_repl.exe running, the log names …\cua_node\…\bin\node_repl.exe (open ACL target for root-only update … os error 32).
    • After stopping every node_repl.exe, the next run fails on …\bin\node_modules\@oai\sky\bin\windows\swift\x64\VCRUNTIME140_1.dll (loaded by codex-computer-use-swift.exe).
    • If the Computer Use backend is killed, the app respawns it in ~19 ms, so there is no holder-free window while the app runs.
    • With the desktop app fully quit and nothing from the runtime tree loaded, the same refresh passes (errors=[], setup binary completed) and a sandboxed command runs. After a normal relaunch it fails again on VCRUNTIME140_1.dll.

    2. Access-mask probes (open then close, nothing written). On a running node_repl.exe: READ_CONTROL|WRITE_DAC, WRITE_ATTRIBUTES → OK; FILE_WRITE_DATA, GENERIC_WRITE, GENERIC_ALL, FILE_ALL_ACCESS, MAXIMUM_ALLOWED → ERROR_SHARING_VIOLATION (32). Inference: this matches the description of PR #51822 ("opening active EXE/DLL files with MAXIMUM_ALLOWED"). The installed app bundles 0.162.0-alpha.2, which by release order should predate that PR (merged 2026-10-07). I did not find a gap in the PR for the file case. For directories it still uses MAXIMUM_ALLOWED; on my runtime directories that open succeeded while the app was running, so I could not show a failure there.

    3. Supported values / workaround checked in-app. windows.sandbox accepts elevated, unelevated, mxc (unknown variant … expected one of … for anything else).

    • unelevated: shell, writes in the working directory, Roblox MCP, mcp__cua_repl__js (including js_reset and await cua.getState(), which lists Codex In-app Browser and Codex MCP Apps) all work, also after clean restarts and a Windows reboot. Isolation still holds in the app: a write outside the allowed roots is denied; outbound HTTPS is refused.
    • mxc: shell works, but mcp__cua_repl__js was unreliable. Of 6 attempts: 2 passed, 2 failed with node_repl kernel exited unexpectedly … MXC launcher: cannot locate required Windows platform directory: HRESULT 0x80070003, and 2 were rejected with MCP tool call requires approval, but approval policy is never. (I did not see the approval rejection under unelevated.)

    4. Separate failure in the LocalSystem service path (hypothesis). CodexSandboxService logged 21× helper_sandbox_lock_failed: lock sandbox bin dir … open directory … (2026-10-06 → 2026-10-08), each leaving setup_marker.json empty. The Windows Firewall log shows the failing runs executed as SYSTEM from the WindowsApps copy of codex-windows-sandbox-setup.exe; the same helper run elevated as the user succeeded. The underlying Win32 error is not logged. Hypothesis: SYSTEM cannot rewrite the DACL of .sandbox-bin (owner = user, SYSTEM/Administrators have Modify only).

    5. Still broken under unelevated: Computer Use itself (skill environment is not available for this callback while reading its instructions, 2 separate chats).

    Happy to test a newer build with the same checks if useful.

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