Skip to content

Windows: browser tools fail with MXC CreateProcessSecurityEnvironment error 0x80070020 #55100

Open

Description

@sameiroeducacional

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

26.1013.40934 (build 20770)

What subscription do you have?

Plus

What platform is your computer?

Windows 11 Pro, build 26300.9711

What issue are you seeing?

The Codex desktop app cannot initialize its browser tools on Windows. Listing browser tabs and creating a browser tab fail before the browser can be accessed.

Error:

node_repl kernel exited unexpectedly
MXC launcher: failed to create the process security environment:
CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020)

Diagnostic findings:

  • An explicit MXC sandbox startup probe fails with the same error.
  • An elevated legacy sandbox startup probe succeeds with exit code 0.
  • The configuration already contains windows.sandbox = "elevated".
  • The app-server command line includes prefer_mxc=true.
  • The specific locked file or responsible process has not been identified.

Restarting Codex, restarting Windows, resetting the browser tool, and disabling Norton VPN did not resolve the issue.

The successful legacy probe only validates command startup; browser operation through that fallback has not been verified.

Bundled CLI version: 0.163.0-alpha.10.2
The app updater reports that this installation is up to date.

Feedback ID: 01a127a5-9675-7e50-aa09-c8b3aba14caa

What steps can reproduce the bug?

  1. Open the Codex desktop app on Windows.
  2. Ask Codex to list browser tabs or open a browser tab.
  3. The browser tool fails during initialization with CreateProcessSecurityEnvironment error 0x80070020.

The following browser tool calls failed:

Expected behavior:
The browser tools initialize successfully and can list or open browser tabs.

Actual behavior:
The tool kernel exits before accessing the browser.

What is the expected behavior?

The browser tools should initialize successfully and allow Codex to list, open, and inspect authorized browser tabs without the tool kernel exiting.

Additional information

Related issue: #54876

That issue also contains a report of the exact HRESULT 0x80070020 error. My case may be related, although the underlying cause has not been confirmed.

In my tests, an explicit MXC startup probe fails, while an elevated legacy sandbox startup probe succeeds.

Feedback ID: 01a127a5-9675-7e50-aa09-c8b3aba14caa

Activity

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

    @github-actions
    Contributor

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

    Powered by Codex Action

  4. oOTheOo-coder commented on Oct 21, 2026

    @oOTheOo-coder

    Additional reproduction on a separate Windows machine, with a bounded fallback-policy test that may help narrow the launcher behavior.

    Environment

    • Codex desktop app: 26.1013.40934, build 20770, prod. Built-in updater reports up_to_date.
    • Bundled CLI: codex-cli 0.163.0-alpha.10.2.
    • Windows 11 Home, build 26300, x64.

    Observed failure
    await cua.getState() fails before browser discovery, with:

    node_repl kernel exited unexpectedly
    MXC launcher: failed to create the process security environment:
    CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020)
    

    Native Computer Use initialization through the documented Node REPL / @oai/sky entry point also failed at this startup boundary in the original chat. A separately created fresh chat reproduced the CUA failure; its prerequisite skill-file read also failed at MXC startup, so native initialization was not retried there. Resetting the tool sessions did not recover the browser.

    Controlled sandbox comparison
    The documented minimal probe using windows.sandbox=elevated succeeds (ELEVATED_OK), while the explicit MXC probe fails with the HRESULT above. This validates command startup only; no browser/desktop interaction has succeeded.

    User configuration already contains:

    [features]
    prefer_mxc = false
    [windows]
    sandbox = "elevated"

    Additional managed-policy experiment
    With the machine owner's explicit approval, we temporarily installed this supported policy in the previously absent system requirements.toml:

    [windows]
    allow_mxc = false
    allowed_sandbox_implementations = ["elevated"]

    The CLI recognized the policy and the elevated probe still succeeded. After resetting each tool session, both CUA and native Node REPL instead failed with:

    invalid value for windows.sandbox: Some(Mxc) is not in the allowed set
    windows.allow_mxc = false
    

    This shows the tool launch paths consume the policy but still explicitly request MXC rather than selecting the working legacy implementation. The exact unchanged trial policy file was hash-verified and removed, restoring the prior state.

    Recent sandbox logs continue to show MXC availability: true and Windows sandbox selection: mxc. We have not identified the failing resource or established whether the HRESULT is caused by the same ACL/runtime locking path described in #52054. No security protections, ACLs, helper binaries, browser profiles, or private protocols were modified as a workaround.

    Could the team provide a supported browser/control-runtime fallback or hot-reload path that preserves the filesystem/network/approval boundaries and does not require another Windows restart? More detail about the failing resource in CreateProcessSecurityEnvironment would also help. Existing app/OS restarts reported by the user did not restore control; no further restarts were performed during these tests.

    No credentials, personal paths, raw session history, or raw log bundles are included in this report.

  5. AngusLange commented on Nov 4, 2026

    @AngusLange

    Codex Windows: in-app browser fails with error 0x80070020

    The agent could not start its browser tools. The error was:
    CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020)
    The Node kernel then exited with code 1 / stdout_eof.

    Restarting the app and Windows did not resolve it. An explicit MXC startup test failed, while the protected legacy startup test passed. User configuration already had windows.sandbox="elevated" and features.prefer_mxc=false, but the desktop app-server command line set features.prefer_mxc=true.

    This managed policy in %ProgramData%/OpenAI/Codex/requirements.toml restored browser operation after a full app restart:

    [windows]
    allow_mxc = false
    allowed_sandbox_implementations = ["elevated"]

    The agent could then connect to the in-app browser and navigate signed-in pages. Existing permission and approval settings were retained.

    Environment: Windows 11 Home 25H2, build 26200.9711. App 26.1029.61003, build 24614. Windows package 26.1029.7803.0. Bundled CLI 0.166.0-alpha.6.

    The cause of the MXC failure is still unknown. Is there an upstream fix or a recommended next diagnostic step?

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

    appbrowserbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions