Skip to content

Windows sandbox setup refresh validates stale CUA runtime and blocks delegated Work execution #51714

Open

Description

@mptoni88-hash

Summary

On Windows 11 x64, delegated Work execution fails during the Windows sandbox setup refresh, before the requested process is created.

Manual Codex execution initiated directly from ChatGPT Desktop works. The failure is specific to the delegated Work execution path and is reproduced by both the official elevated sandbox setup and a process-scoped unelevated test.

The setup refresh attempts to validate a stale CUA Node runtime even though the current runtime is different.

Feedback/session ID: 01a1167e-c2d7-7cd1-aacf-04b153adf14f

Environment

  • OS: Windows 11 x64 — build 10.0.26200
  • ChatGPT Desktop: 26.1002.52244
  • Codex CLI: 0.162.0-alpha.2
  • Current CUA runtime: 2c9e75c4e9c71beb
  • Stale CUA runtime referenced during setup refresh: 71e3f41277f96d73

Observed behavior

Working path

Manual Codex execution initiated directly from ChatGPT Desktop works.

Failing path

Delegated Work execution fails before process creation.

The exact reported error is:

helper_unknown_error: setup refresh had errors

The sandbox setup log shows:

runtime read/execute validation failed

for the stale runtime path:

...\runtimes\cua_node\71e3f41277f96d73\bin\node_repl.exe

The underlying Windows error is:

Access denied (os error 5)

The current runtime is 2c9e75c4e9c71beb, but the setup-refresh path still attempts to validate 71e3f41277f96d73.

Reproduction results

Official elevated setup

Running the officially supported elevated setup through:

windowsSandbox/setupStart(mode="elevated")

reproduces the failure.

The setup refresh validates the stale runtime path and terminates with:

helper_unknown_error: setup refresh had errors

Process-scoped unelevated test

A single process-scoped test using:

-c windows.sandbox="unelevated"

reproduces the same shared setup/preflight failure.

The test was limited to starting PowerShell under a read-only permission profile. PowerShell was never created because the preflight again attempted to validate:

...\runtimes\cua_node\71e3f41277f96d73\bin\node_repl.exe

and failed with:

Access denied (os error 5)

The persistent sandbox configuration was not changed.

Expected behavior

Sandbox setup refresh should use the currently selected runtime, 2c9e75c4e9c71beb, and should not include or validate an obsolete runtime that is no longer active.

Delegated Work execution should proceed to process creation when the current runtime and sandbox infrastructure are available.

Diagnostics already completed

The following were verified:

  • The normal Windows user has expected read/write access to the Codex home directory.
  • Creating and deleting a disposable file in the Codex temporary directory succeeds.
  • The Codex sandbox users and local sandbox group exist, including CodexSandboxUsers.
  • Sandbox user/group membership was verified.
  • The elevated sandbox service exists and its service identity was verified.
  • Relevant sandbox firewall configuration exists.
  • Manual Desktop Codex execution works.
  • The current runtime is accessible and selected as 2c9e75c4e9c71beb.
  • The failure occurs before the delegated target process is created.
  • The official elevated setup reproduces the failure.
  • The process-scoped unelevated mode reproduces the same shared preflight failure.
  • A ChatGPT Desktop update did not resolve the issue.
  • A previous application reinstall did not resolve the issue.
  • No manual ACL or Windows permission modifications were performed.
  • No Codex databases or runtime files were manually deleted or altered.

Observed facts versus hypotheses

Observed facts

  • The current runtime is 2c9e75c4e9c71beb.
  • The current Codex CLI setup-refresh flow supplies runtime 71e3f41277f96d73 to the sandbox setup helper, which then attempts to validate it.
  • Validation fails on that runtime's node_repl.exe with Access denied (os error 5).
  • Both elevated and unelevated setup paths fail during the shared setup refresh.
  • Delegated Work execution fails before process creation.
  • Manual Desktop Codex execution works.
  • Updating Desktop and previously reinstalling the application did not remove the stale reference.

Hypotheses — not established

  • The current codex.exe setup-refresh payload may be obtaining the stale CUA runtime reference from a persisted runtime registry, manifest, cached activity state, or another internal source not exposed by the available diagnostics.
  • Because elevated and unelevated modes fail on the same runtime validation, the defect may be in shared payload construction or preflight handling rather than in the mode-specific sandbox execution layer.
  • Access denied on the stale executable may be a consequence of the obsolete reference rather than the primary provisioning defect.

The exact source of the stale runtime reference has not been established.

Request

Please investigate why the current codex.exe includes or otherwise supplies stale CUA runtime 71e3f41277f96d73 to the Windows sandbox setup-refresh payload while the selected runtime is 2c9e75c4e9c71beb.

Please also provide a supported method to rebuild or clear that stale runtime reference without:

  • manually changing ACLs or Windows permissions;
  • manually deleting Codex databases, conversations, or runtime state;
  • reinstalling the entire application again.

A sanitized diagnostic PDF containing only the relevant sandbox failure-window log, setup_error.json, and setup_marker.json is available. It excludes usernames, authentication data, tokens, conversations, project paths/content, databases, rollouts, and .sandbox-secrets.

Activity

  1. added
    bug
    CLI
    windows-os
    sandbox
    on Oct 7, 2026
  2. mptoni88-hash commented on Oct 7, 2026

    @mptoni88-hash
    Author

    At OpenAI Support's request, the relevant sanitized CODEX_HOME/.sandbox/sandbox.log failure-window evidence is included inline below. The connected GitHub integration does not support attachment uploads, so this compact excerpt preserves the initial failure and the later elevated/current-build and process-scoped unelevated setup attempts. It contains no .sandbox-secrets, authentication data, tokens, conversations, databases, rollouts, or project content.

    [2026-10-07 09:12:28.643 codex.exe] setup refresh: spawning C:\Users\<REDACTED_USER>\AppData\Local\OpenAI\Codex\bin\979a96ce184041d1\codex-windows-sandbox-setup.exe (cwd=C:\Program Files\WindowsApps\OpenAI.Codex_26.1002.6548.0_x64__2p2nqsd0c76g0\app\resources, payload_len=4164)
    [2026-10-07T12:12:29.495418400+00:00] runtime read/execute validation failed: validate runtime read/execute access on C:\Users\<REDACTED_USER>\AppData\Local\OpenAI\Codex\runtimes\cua_node\71e3f41277f96d73\bin\node_repl.exe: open ACL target for root-only update: Acceso denegado. (os error 5)
    [2026-10-07T12:12:32.674473800+00:00] setup refresh: processed 2 write roots (read roots delegated); errors=["runtime read/execute validation failed: validate runtime read/execute access on C:\\Users\\<REDACTED_USER>\\AppData\\Local\\OpenAI\\Codex\\runtimes\\cua_node\\71e3f41277f96d73\\bin\\node_repl.exe: open ACL target for root-only update: Acceso denegado. (os error 5)"]
    [2026-10-07T12:12:32.674510300+00:00] setup error: setup refresh had errors
    [2026-10-07 09:12:32.678 codex.exe] setup refresh: exited with status ExitStatus(ExitStatus(1))
    
    [... repeated identical setup-refresh failures omitted ...]
    
    [2026-10-07 11:27:24.519 codex.exe] setup refresh: spawning C:\Users\<REDACTED_USER>\AppData\Local\OpenAI\Codex\bin\9691020b546a15b2\codex-windows-sandbox-setup.exe (cwd=C:\Program Files\WindowsApps\OpenAI.Codex_26.1002.7124.0_x64__2p2nqsd0c76g0\app\resources, payload_len=4164)
    [2026-10-07T14:27:26.063075100+00:00] runtime read/execute validation failed: validate runtime read/execute access on C:\Users\<REDACTED_USER>\AppData\Local\OpenAI\Codex\runtimes\cua_node\71e3f41277f96d73\bin\node_repl.exe: open ACL target for root-only update: Acceso denegado. (os error 5)
    [2026-10-07T14:27:26.066337600+00:00] setup refresh completed with errors: ["runtime read/execute validation failed: validate runtime read/execute access on C:\\Users\\<REDACTED_USER>\\AppData\\Local\\OpenAI\\Codex\\runtimes\\cua_node\\71e3f41277f96d73\\bin\\node_repl.exe: open ACL target for root-only update: Acceso denegado. (os error 5)"]
    [2026-10-07T14:27:26.066350300+00:00] setup error: setup refresh had errors
    [2026-10-07 11:27:26.066 codex-windows-sandbox-setup.exe] setup error: setup refresh had errors
    [2026-10-07 11:31:35.342 codex.exe] START: windows -c windows.sandbox="unelevated" --permission-profile :read-only --cd <REDACTED_WORKSPACE> -- C:\Windows\System32\WindowsPowerShell\v1.0\powershe
    [2026-10-07 11:31:35.461 codex.exe] setup refresh: spawning C:\Users\<REDACTED_USER>\AppData\Local\OpenAI\Codex\bin\9691020b546a15b2\codex-windows-sandbox-setup.exe (cwd=C:\Users\<REDACTED_USER>, payload_len=3712)
    [2026-10-07T14:31:35.518157900+00:00] runtime read/execute validation failed: validate runtime read/execute access on C:\Users\<REDACTED_USER>\AppData\Local\OpenAI\Codex\runtimes\cua_node\71e3f41277f96d73\bin\node_repl.exe: open ACL target for root-only update: Acceso denegado. (os error 5)
    [2026-10-07T14:31:35.520331400+00:00] setup refresh completed with errors: ["runtime read/execute validation failed: validate runtime read/execute access on C:\\Users\\<REDACTED_USER>\\AppData\\Local\\OpenAI\\Codex\\runtimes\\cua_node\\71e3f41277f96d73\\bin\\node_repl.exe: open ACL target for root-only update: Acceso denegado. (os error 5)"]
    [2026-10-07T14:31:35.520367900+00:00] setup error: setup refresh had errors
    [2026-10-07 11:31:35.520 codex-windows-sandbox-setup.exe] setup error: setup refresh had errors
    [2026-10-07 11:31:35.524 codex.exe] setup refresh: exited with status ExitStatus(ExitStatus(1))
    
  3. OliviaDevil commented on Oct 8, 2026

    @OliviaDevil

    I’m seeing the same delegated-execution symptom on Windows with ChatGPT desktop 26.1002.52244 (About release date: 2026-10-07).

    An ordinary Codex task I created in the desktop app successfully ran pwd. Delegated local execution fails before process creation with exec-server -32603: helper_unknown_error: setup refresh had errors. Both existing and new delegated tasks fail, including a test with an explicitly specified known-working directory. The computer is reported as connected and authorized.

    Restarting the app and fully rebooting the computer did not resolve this as of October 8, 2026 (UTC). My sandbox logs have not been inspected, so I cannot confirm the stale-runtime finding or a shared root cause.

    Could maintainers investigate and provide a supported recovery path that preserves local data and security settings?

  4. spirillen2001 commented on Oct 8, 2026

    @spirillen2001

    I am seeing what appears to be the same blocking Windows runtime/setup-refresh failure, but I want to clarify the business impact:

    This affects all of my local Codex Work chats, not just one chat or one tool. Whenever a task requires actual local work, browser control, computer-use, cua_repl, node_repl, or command execution, Codex cannot perform the work and instead falls back to only giving me written instructions.

    That means my paid business/work profile is currently reduced to a normal chat assistant. I cannot use Codex for the core reason I pay for it: having it actually operate in my local work environment.

    In-app feedback ID:
    01a0cca8-0218-73b0-8e5b-66d622a8687a

    Environment:

    • Codex desktop app for Windows
    • Version: 26.1002.52244, build 13536, production channel, up to date
    • OS: Windows 11 Pro 64-bit, version 10.0.26300, build 26300
    • Date/time: 8 October 2026, approx. 13:24 CEST

    Impact:

    • All local Codex Work chats are affected
    • Browser control fails
    • Computer-use / Power Automate control fails
    • cua_repl fails
    • node_repl fails
    • Local command execution fails
    • Codex can only provide written guidance instead of doing the work

    Exact errors:

    • windows sandbox failed: helper_unknown_error: setup refresh had errors
    • trusted Node process exited unexpectedly

    Additional local Codex log errors:

    • MCP startup failed: The specified path was not found (os error 3)
    • plugin installation failed: cache_overwrite_failure
    • plugin_cache_windows_file_lock
    • failed to back up plugin cache entry: Access denied (os error 5)

    Troubleshooting already completed:

    • Full Windows restart
    • Full Codex app restart
    • Confirmed the app is up to date
    • Confirmed [windows] sandbox = "elevated"
    • Stopped stale node.exe, node_repl.exe and computer-use helper processes
    • Reopened Codex and retried several times

    The error remains unchanged. Please treat this as a blocking business-impact issue. I can provide the complete local log 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

    CLIbugcomputer-usesandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions