Skip to content

[Windows][Codex Desktop] Dot-Delegated CUA Fails with HRESULT 0x80070003 — Missing SystemDrive Environment Variable #53970

Open

Description

@lonestarsigns

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

Version 26.1007.71326

What subscription do you have?

pro 200

What platform is your computer?

windows 11

What issue are you seeing?

Description

Codex Desktop on Windows consistently fails to initialize Computer Use (CUA) when invoked through Dot-delegated sessions.

The failure occurs immediately during MXC launcher initialization, before the browser can be accessed.

Exact error:

MXC launcher: cannot locate required Windows platform directory: HRESULT 0x80070003

Additional diagnostic output:

node_repl kernel exited unexpectedly
kernel_status: exited(code=1)

Environment

  • Operating system: Windows (exact build not yet collected)
  • Codex Desktop: 26.1007.71326
  • Previous version: 26.1007.21434
  • Execution route: Dot-delegated Codex session
  • MXC sandbox: Enabled; no changes made
  • Application: Codex Desktop for Windows

Steps to reproduce

  1. Open Codex Desktop on Windows.
  2. Connect Dot to the computer through the supported delegation workflow.
  3. Have Dot initiate a harmless CUA browser-state or tab-list request.
  4. Observe that initialization fails before browser information can be retrieved.

Actual result

On version 26.1007.71326, the browser-state attempt failed after approximately 0.263 seconds with HRESULT 0x80070003.

The same error was observed before upgrading from 26.1007.21434.

Rebooting Windows did not resolve the issue.

A separate direct Codex session successfully controlled Chrome through its attached DevTools browser connection, suggesting this is specific to certain execution paths rather than a general inability to run Chrome.

However, direct CUA initialization has also timed out in an earlier diagnostic.

Suspected cause

Investigations in existing Codex GitHub issues suggest that Windows environment variables, particularly SystemDrive and LOCALAPPDATA, may not be propagated correctly into Dot-delegated execution environments.

Affected users have captured child processes missing these variables. An unresolved %SystemDrive%\ProgramData path has been associated with HRESULT 0x80070003.

Independent reproduction tests support this failure mechanism, but we have not verified the exact environment of the failing process on this particular installation.

This may indicate a Codex process-launch environment-filtering defect rather than a Windows operating system failure.

Troubleshooting completed

  • Upgraded Codex Desktop to 26.1007.71326.
  • Repeated a single read-only CUA initialization test.
  • Confirmed that the exact error persists.
  • Previously rebooted Windows without improvement.
  • Verified that Chrome DevTools browser control works through a separate execution route.

No MXC security settings were disabled. No runtime patches, application resets, or session deletions were performed.

Related issues

Impact

This issue blocks Dot from supervising browser-dependent development work on our Windows workstation.

Multiple active business application projects are affected because automated browser access and acceptance testing cannot proceed.

Requested investigation

Please investigate whether the Dot-delegated CUA/MXC process launcher is incorrectly filtering required Windows environment variables.

We would appreciate:

  1. Confirmation of the root cause.
  2. An official fix for the environment-variable propagation issue.
  3. A supported diagnostic procedure.
  4. A workaround that preserves MXC sandbox security and existing session history.
  5. Confirmation of which Windows Desktop release contains the repair.

This problem remains reproducible after updating to Codex Desktop 26.1007.71326.

What steps can reproduce the bug?

Steps to Reproduce

  1. Install and open Codex Desktop for Windows, version 26.1007.71326.

  2. Start a new Codex session on the Windows computer, preferably through Dot delegation.

  3. Allow the session to initialize using its normal Windows sandbox and default security settings.

  4. Ask Codex to execute this harmless PowerShell command:

    Write-Output 'CODEX_SHELL_OK'
  5. Observe that the command produces no stdout, stderr, or exit code after 10 seconds.

  6. Interrupt the stalled command. In our test, interruption returned exit code 1.

  7. Repeat once using:

    Write-Output PREFLIGHT_OK
  8. Observe that the second command also hangs without output or an exit code, even after 30 seconds.

Actual Behavior

Basic PowerShell commands hang indefinitely or until interrupted. No output or exit status is returned during execution.

This failure occurs before any repository operations begin.

Expected Behavior

Both PowerShell commands should complete almost immediately, print their respective text markers, and return exit code 0.

Environment

  • OS: Windows
  • Codex Desktop: 26.1007.71326
  • Execution: Dot-delegated Windows session
  • Shell: PowerShell
  • Sandbox: Existing/default configuration, unchanged
  • No STELLA repository modifications

Additional Information

The same failure was previously observed before updating Codex Desktop. Updating to 26.1007.71326 did not resolve it.

Related GitHub issues: #39574, #50725, #51882.

The underlying cause is not confirmed. The failure could involve process launching, command dispatch, or result delivery in Codex Desktop.

What is the expected behavior?

Codex Desktop should preserve the Windows environment information required to initialize supported Computer Use processes.

Dot-delegated CUA operations should successfully initialize the browser-control environment, read browser state, enumerate tabs, and perform authorized interactions without HRESULT 0x80070003.

Updating Codex Desktop should preserve existing conversations, worktrees, settings, and security protections.

If initialization fails, Codex should return actionable diagnostic information identifying the missing dependency or failed launcher operation.

Additional information

Codex Desktop version: 26.1007.71326
Previous version: 26.1007.21434

CUA failure duration: 0.263 seconds

Error:
MXC launcher: cannot locate required Windows platform directory: HRESULT 0x80070003

Additional output:
node_repl kernel exited unexpectedly
kernel_status: exited(code=1)

Result:
CUA initialization failed before reading browser state.

Activity

  1. added
    app
    on Oct 14, 2026
  2. added
    bug
    windows-os
    dots
    tool-calls
    on Oct 14, 2026
  3. sidrew commented on Oct 15, 2026

    @sidrew

    Also affected on Windows 11, version 26.1007.71326.

    Browser control fails to initialize with:

    MXC launcher: cannot locate required Windows platform directory: HRESULT 0x80070003
    

    Other attempts return:

    trusted Node process exited unexpectedly; kernel reset, rerun your request
    

    Restarting the application and then rebooting Windows did not resolve it. The underlying cause has not been confirmed on this machine. Please share a supported fix or recovery procedure.

  4. olfencealcadia-debug commented on Oct 16, 2026

    @olfencealcadia-debug

    Confirmed root cause + a workaround that keeps the MXC sandbox (Codex Desktop 26.1013.31256, Windows 11, Dots → local Windows PC).

    Verification. I read the environment block of each running process directly. The Dots-path cua_repl processes (node.exe …\@oai\cua-repl\bin\cua-repl.mjs and its node_repl.exe, spawned by codex.exe exec-server --remote) start with only ~24 variables: Path, PATHEXT, SHELL, SystemRoot, TEMP, TMP plus the env entries from the plugin's .mcp.json. SystemDrive, windir, USERPROFILE, LOCALAPPDATA, APPDATA and ProgramData are all missing. The parent ChatGPT.exe / codex.exe processes, and the local (non-Dots) node_repl processes, do have SystemDrive. cua-repl's launch.js forwards process.env as-is, so the variables are dropped when the exec-server spawns the stdio MCP server. This matches what #54069 fixes.

    Workaround (no Full Access needed). Add the missing variables to mcpServers.cua_repl.env in

    %USERPROFILE%\.codex\plugins\cache\openai-bundled\unified-computer-use\<version>\.mcp.json
    
    "SystemDrive": "C:",
    "windir": "C:\\Windows",
    "USERPROFILE": "C:\\Users\\<user>",
    "HOMEDRIVE": "C:",
    "HOMEPATH": "\\Users\\<user>",
    "LOCALAPPDATA": "C:\\Users\\<user>\\AppData\\Local",
    "APPDATA": "C:\\Users\\<user>\\AppData\\Roaming",
    "ProgramData": "C:\\ProgramData",
    "ProgramFiles": "C:\\Program Files",
    "USERNAME": "<user>",
    "COMPUTERNAME": "<host>",

    Then restart Dots only, not the desktop app. After this, MXC initialization succeeded, and listing Chrome tabs, opening a page and clicking links all worked.

    Caveats:

    • The desktop app regenerates .mcp.json on every launch, so this has to be re-applied after each app restart, until a build that includes Fix Windows environment handling for remote MCP servers #54069 ships.
    • Adding the variables to config.toml [mcp_servers.node_repl.env] or HKCU\Environment does not help.
    • Native computer APIs are disabled afterwards is expected: the Dots path uses CUA_REPL_ENABLED_SURFACES=browser.

    Related: #54477

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

    appbugcomputer-usedotstool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions