Skip to content

Windows: in-app browser CUA still selects MXC and fails with 0x80070057 #54876

Open

Description

@yunionlassalle

Environment

  • Codex desktop on Windows.
  • Windows reports Windows 10 Pro, version 26H2, build 26300.9711.
  • Browser Use component version reported in local configuration: 26.1013.40934.
  • Bundled CLI used for the sandbox comparison: codex-cli 0.163.0-alpha.10.2.

Problem

The in-app browser tab opens normally, but Codex cannot connect its Browser/Computer Use controller to it. Calls such as cua.getState() or cua.getTab(..., { browser: "iab" }) terminate before reading the tab.

The tool reports:

trusted Node process exited unexpectedly
MXC launcher: failed to create the process security environment:
CreateProcessSecurityEnvironment failed (HRESULT = 0x80070057)

Reproduction

  1. Open Codex Desktop on Windows and leave a page open in the in-app browser.
  2. Call await cua.getState() or connect to the open IAB tab with cua.getTab(...).
  3. The Node kernel exits before the browser state or page can be read.

Expected: the Browser/Computer Use controller starts and can inspect the authorized in-app browser tab.

Actual: the controller fails to start with CreateProcessSecurityEnvironment before any browser interaction.

Diagnostics

  • The Codex user config has [windows] sandbox = "elevated" and [features] prefer_mxc = false.
  • After restarting Codex with that configuration, local sandbox logs still show the Browser/Computer Use launcher selecting mxc.
  • A minimal explicit MXC sandbox command fails with HRESULT 0x80070057.
  • The same harmless command using the elevated sandbox succeeds (LEGACY_OK).
  • Resetting the CUA JavaScript kernel and retrying did not change the result.
  • Logs were inspected locally; this report contains only the relevant error/configuration, with personal paths, session identifiers, credentials, and raw logs omitted.

Related reports: #53650 (Browser/Computer Use MXC startup failure with another HRESULT), #50981 (Desktop selects MXC despite prefer_mxc = false), and #52547 (Windows sandbox and browser tools fail to start).

Could you clarify why the CUA launcher continues selecting MXC when prefer_mxc = false and elevated is configured, and provide a supported recovery path that allows the browser controller to use the working legacy sandbox?

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    on Oct 17, 2026
  2. github-actions commented on Oct 17, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. winnerblack99 commented on Oct 18, 2026

    @winnerblack99

    Same underlying bug, different exact error — adding this as a data point since it's clearly the same MXC launcher failure family.

    Environment:

    • Codex app: OpenAI.Codex_26.1013.4894.0 (originally reproduced on 26.1002.7124.0)
    • Codex CLI: 0.163.0-alpha.10.2
    • Windows 11 Home, build 10.0.26300, x64

    Error:
    MXC launcher: failed to create the process security environment:
    CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020)

    (0x80070020 = ERROR_SHARING_VIOLATION, vs. the 0x80070057 in this issue — same component, same failure point, different underlying Win32 error surfaced.)

    Diagnostics:

    • Confirmed via Process Monitor trace that the MXC launcher child process (codex.exe --__codex-windows-mxc) exits with status 1 after ~0.4s with zero failed file/registry operations captured — the failure happens inside a security-token/job-object call invisible to file-system monitoring.
    • Related sandbox log entry at the same time:
      runtime read/execute validation failed: validate runtime read/execute access on
      ...\runtimes\cua_node<hash>\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)
    • Process listing showed Codex's own live node_repl.exe kernel already running ~17 seconds before an internal "setup refresh" ACL step failed trying to access that same file — looks like a race condition between the live kernel holding the file open and a parallel ACL-maintenance pass trying to re-apply ACLs to it.
    • Ruled out as causes: stale leftover processes, a persistent codex-windows-sandbox-service.exe, Windows Defender, Norton (installed but inactive), Code Integrity/WDAC, running fully elevated, app package repair, and the community sandbox = "unelevated" workaround — none changed the outcome.

    Confirming this persists after the 2026-10-15 fix:
    Updated to codex-cli 0.163.0-alpha.10.2, which includes PR #51822 "Avoid sharing violations when repairing Windows runtime ACLs" plus related MXC changes (#51547, #51896, #52193). After a clean update and relaunch, the identical CreateProcessSecurityEnvironment / 0x80070020 error still occurs. Suggests the fix doesn't cover this specific code path.

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

    appbrowserbugcomputer-usesandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions