Skip to content

[Windows 10][0.162.0-alpha.2] Elevated sandbox runtime sharing violation persists after rebuild; unelevated Get-Location succeeds #52117

Open

Description

@zhuiluo916-hash

Summary

Reporting at the affected user's explicit request. On Windows 10 Pro, Codex Desktop cannot run even Get-Location in the elevated Windows sandbox. Setup fails before the command starts with helper_unknown_error: setup refresh had errors.

The fatal log entry is runtime read/execute validation of an already-running node_repl.exe, with open ACL target for root-only update and Windows error 32 (sharing violation). Ending the identified tool processes only moved the blocker to a loaded VCRUNTIME140_1.dll; the desktop app automatically restarted the helper holding that DLL.

A real sandbox-state rebuild was completed, but the same error returned after reopening the desktop app. A per-invocation unelevated test executed Get-Location successfully.

This has consumed substantial troubleshooting time and blocks basic local development. Please prioritize a supported fix that preserves the elevated sandbox, local history, configuration, and projects.

Verified environment

  • Windows 10 Pro, version/build 10.0.19045, 64-bit (queried with Win32_OperatingSystem).
  • Running desktop package: OpenAI.Codex_26.1002.7124.0_x64 (verified from the running main application's executable path; this is the package version, not a separately verified About-dialog display version).
  • Bundled CLI: codex-cli 0.162.0-alpha.2 (verified with --version).
  • Native sandbox configuration: [windows] sandbox = "elevated".
  • Effective local-chat execution policy: workspace-write.
  • Active runtime generation: cua_node\3dd31cfff853001c.
  • Observed October 8, 2026, Asia/Shanghai (UTC+08).
  • The user reports that this is the latest desktop version offered to them.

Reproduction

  1. Open Codex Desktop and a local chat.
  2. Ask it to run only Get-Location.
  3. The execution tool fails before PowerShell starts:
Failed to create unified exec process:
helper_unknown_error: setup refresh had errors
  1. Read the newest local sandbox log. It identifies the already-running Codex runtime executable:
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
setup refresh: exited with status ExitStatus(1)

The Windows message above is an English translation of the logged Chinese message; the error code and error-context strings are unchanged.

Troubleshooting and observed results

  • Retried the minimal command and disabled shell profile loading: same setup failure.
  • Restarted/reopened the desktop app: runtime processes reappeared and the failure recurred.
  • Node REPL initialization independently failed with the same sandbox setup error.
  • Read-only external/approved PowerShell commands succeeded, so PowerShell itself works.
  • Checked the runtime executable's owner and security descriptor: the interactive user owns the file, and its ACL is readable. No ownership correction or recursive ACL reset was applied.
  • Stopped only verified node_repl.exe processes using the affected runtime. The next elevated refresh advanced past that executable but failed on:
    ...\node_modules\@oai\sky\bin\windows\swift\x64\VCRUNTIME140_1.dll.
  • Identified codex-computer-use-swift.exe as the process loading that exact DLL. Stopping it did not sustain recovery: a new helper instance appeared, with Codex's main desktop application as its parent.
  • Completed a sandbox rebuild with the app closed: the old .sandbox and .sandbox-bin directories were renamed to backups, and new directories were created at 20:51:50 UTC+08. The new log explicitly recorded that the setup marker was missing and sandbox setup was performed.
  • After reopening the app, a normal chat Get-Location failed again at 21:23:30 UTC+08 on node_repl.exe with error 32.
  • With the desktop app running, an independent invocation of the same bundled CLI in elevated mode also failed on the same runtime file at 21:27:42 UTC+08.
  • A per-invocation override using the same CLI and same workspace succeeded:
& $bundledCodex -c 'windows.sandbox="unelevated"' -c 'sandbox_mode="workspace-write"' sandbox -- powershell.exe -NoProfile -Command Get-Location

It returned the expected workspace path and exit code 0. This was a one-command test; the global sandbox configuration was not changed. It demonstrates a working fallback for this command, not that every desktop feature or permission policy works in unelevated mode.

Expected behavior

The elevated sandbox should initialize while Codex's own runtime processes are running, without requiring users to terminate automatically restarted helpers, weaken isolation, rebuild sandbox state repeatedly, or downgrade the desktop app.

Please investigate the live-runtime ACL open/access requirements, provide a supported recovery or fixed build, and expose the exact failing path and native error in the UI rather than only the generic setup-refresh message.

Related reports

This is an additional reproduction on Windows 10 build 19045 and package 26.1002.7124.0. It does not claim a newly proven source-level root cause. No code patch, ACL workaround, or desktop rollback was applied during this investigation.

Only a compact anonymized excerpt and diagnostic summary are included. Credentials, sandbox secrets, project contents, full logs, and full chat transcripts are omitted.

Activity

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

    @Hendra827

    Please priority this issue in high priority this bug global issue or any solution for this issue

  3. JoonSeongJeong commented on Oct 8, 2026

    @JoonSeongJeong

    Update: I found a temporary workaround.

    After installing Codex version 0.162.0-alpha.20 using the standalone installer and installing the Desktop app and VS Code Codex with a temporary PATH, the issue no longer occurred on the system.

    I am sharing this in case it might be helpful to other users experiencing the same node_repl.exe / Windows Error 32 problem.

    While the above temporary method is not a fundamental solution, it seems it will be usable until an official patch is released.

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