Skip to content

Browser/Computer Use fails to start MXC on Windows with 0x80070005 #53650

Open

Description

@Kristoffer-krogh

Hello,

Browser/Computer Use in the ChatGPT/Codex desktop app cannot access Microsoft Edge or the built-in browser. It fails before any browser tab is visible.

The short error is:
“trusted Node process exited unexpectedly”

The underlying error is:
“MXC launcher: failed to create the process security environment:
CreateProcessSecurityEnvironment failed (HRESULT = 0x80070005)”

Environment:

  • ChatGPT/Codex desktop app: 26.1007.2314.0
  • Windows 11 Pro 26H2, build 26300.9457
  • Reproduced both in an RDP session and directly at the PC

Tests and troubleshooting completed:

  • Updated and restarted Windows.
  • Closed Trend Micro; identifiable Trend Micro processes, services and drivers were stopped when checked.
  • Tested in a new chat. Project files were accessible, but browser control still failed.
  • Set features.prefer_mxc = false and windows.sandbox = "elevated" in config.toml.
  • The legacy Codex sandbox starts successfully. An explicit MXC sandbox test fails with 0x80070005.
  • Repaired the app through Windows Settings, restarted it, then uninstalled and reinstalled it. Browser control still fails.
  • Opening and restarting Edge did not change the result.

Windows Code Integrity also reports that Trend Micro’s TmAMSIProvider64.dll does not meet signing level requirements. I do not know whether that is related.

Could you investigate why the Browser/Computer Use runtime still attempts MXC and whether there is a supported fallback or fix for this error? Please let me know which diagnostic logs or session ID would be most useful.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    on Oct 13, 2026
  2. rkhnorkhan-bit commented on Oct 16, 2026

    @rkhnorkhan-bit

    Independent reproduction of the same CreateProcessSecurityEnvironment / 0x80070005 symptom. This may help distinguish API presence from actual environment creation; it does not establish that the underlying cause is identical to this issue.

    Environment: Windows 11 x64, build 26300.9711 (26H2); System32 processmodel.dll file version 10.0.26100.9711. Ordinary unelevated user session.

    Public source pins used for comparison:

    • Codex 0.162.1, commit 092d3ac.
    • Microsoft MXC commit 6cd3d58f05d3447e67109cfb75e042803b843ca4.

    The pinned Codex dispatcher checks BaseContainerRunner::is_process_security_environment_usable() before decoding the requested workload. A small independent diagnostic reproduced its minimal Create boundary, without launching a child:

    • Fixed 80-byte FlatBuffer with schema major 1/minor 0, capability/filesystem grant fields unset (null), win32k disabled, UI restrictions 1023, network egress default deny.
    • Specification SHA256: 5ca855318959a3702ff99a6f8300a261efd93f1379fcf8a960c56a7769078733.
    • processmodel.dll loaded using LOAD_LIBRARY_SEARCH_SYSTEM32.
    • creationFlags=0, matching the pinned usability probe.

    Results:

    Check Under Codex execution job Ordinary PowerShell outside Codex
    IsProcessInJob true false
    API set / module / required exports present present
    Create HRESULT 0x80070005 0x80070005
    Returned environment null null
    Startup attributes / child launch not reached not reached
    Module released true true

    The outside-Codex control also reports TokenElevationType=Limited, TokenElevated=0, TokenHasRestrictions=1, IsTokenRestricted=false (no restricting SID list), TokenIsAppContainer=0. The filtered-history flag alone is not evidence that elevation is required. The identical outside-job failure means Codex job membership is not necessary for this symptom.

    Additional read-only queries under Codex:

    • QueryProcessSecurityEnvironmentSupport: HRESULT=0, flags=0xF.
    • IsProcessSecurityEnvironmentVersionSupported(major=1): HRESULT=0, available=1, minor=1. BOOLEAN* was marshalled as one byte.

    These queries advertise support but do not make Create succeed. The reported minor 1 is not treated as evidence of incompatibility with the pinned 1.0 specification.

    No credentials, model request, browser workload, remote server, elevated process, ACL/registry/firewall/security-setting changes or sandbox fallback were involved in these controls.

    Relevant public implementation:
    https://github.com/openai/codex/blob/092d3acd6bec3e3a14bdc7e7a2810ab628ab759d/codex-rs/mxc-sandbox/src/windows.rs
    https://github.com/microsoft/mxc/blob/6cd3d58f05d3447e67109cfb75e042803b843ca4/src/backends/appcontainer/common/src/base_container_runner.rs
    https://github.com/microsoft/mxc/blob/6cd3d58f05d3447e67109cfb75e042803b843ca4/src/backends/appcontainer/common/src/base_container_helpers.rs

    Which documented host prerequisite or supported diagnostic can distinguish an advertised PSEC surface from a Create/E_ACCESSDENIED failure at this stage? The current Microsoft Learn CreateProcessSecurityEnvironment reference documents the signature but does not explain this error or a privilege requirement. We can provide the minimal specification and standalone source for review if useful.

  3. rkhnorkhan-bit commented on Oct 16, 2026

    @rkhnorkhan-bit

    Additional Create-only reproduction for this issue; no child process launched.

    Windows 11 x64 build26300.9711, .NET10 diagnostic using the four-argument
    CreateProcessSecurityEnvironment ABI from MXC6cd3d58f05d3447e67109cfb75e042803b843ca4
    (the Codex0.162.1 dependency). The buffers use the pinned PSEC FlatBuffer schema1.0.

    Three separately decoded synthetic policy shapes were tested:

    1. Default minimal80bytes: no capabilities or filesystem vectors;
      disallow_win32k_system_calls=true, ui_restrictions=1023, egressdeny.
    2. Populated536bytes: the same defaults plus one owned-empty RW path,
      one RO path and one explicit deny path; no additional capabilities/network.
    3. Offline-policy1776bytes: registryRead, disallow_win32k_system_calls=false,
      ui_restrictions=990; two owned-empty RW paths and nine RO paths, including
      the .agents/.aws/.codex/.git carveouts under each RW root; no explicit deny,
      proxy, peer or network allow. These flags/carveouts follow pinned Codex
      policy.rs, but this is not a complete real runtime/package-root inventory.

    For all three shapes, flags=0, Create returned0x80070005 with a null environment.
    This reproduced both inside the development host's inherited job and from an
    ordinary unelevated desktop shell with IsProcessInJob=false, TokenElevation=0,
    TokenElevationType=3, TokenHasRestrictions=1 and TokenIsAppContainer=0.

    The API set, System32 module and Create/QuerySupport/Close exports were present.
    QueryProcessSecurityEnvironmentSupport returned S_OK with flags0xF. No startup
    attribute, child creation or enforcement check was reached. No privilege, ACL,
    security setting or network configuration was changed. The three embedded
    buffers/ABI and error-path ownership were independently reviewed. Failed output
    handles were not adopted/closed. A dotnet-host invocation inside the inherited
    job also returned the same three Create errors.

    This confirms that an inherited job is not necessary for these three failures.
    It does not identify the cause, establish failure of every full workload policy,
    or demonstrate child isolation. I noticed microsoft/mxc#1285 removes the extra
    minimal availability Create, but its stated rationale is duplicate sandbox
    creation; these direct populated/source-shaped Create failures remain a separate
    observation. Are there documented native PSEC preconditions or a known OS/runtime
    fix applicable to this build and unelevated token?

  4. shelwinjue commented on Nov 3, 2026

    @shelwinjue

    I resolved the error by changing the permissions for the user (CodexSandboxUsers) on the %LOCALAPPDATA%\Packages\OpenAI.Codex_xxx directory to Full Control. After restarting ChatGPT, it no longer reports an error.

  5. denelon commented on Nov 5, 2026

    @denelon

    A Microsoft MXC issue may be related to the PSEC-creation failure described here:

    Both reports observe the Windows PSEC surface appearing available or successfully passing preliminary validation, followed by CreateProcessSecurityEnvironment returning 0x80070005 with no child process created. The reports use different MXC revisions, policy payloads, caller environments, and integration paths, and neither establishes the originating access check. The matching failure stage and HRESULT are useful for correlation, but they do not establish a shared root cause.

    Drafted with GitHub Copilot assistance.
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