Skip to content

Windows: MXC startup fails with CreateProcessSecurityEnvironment error 0x80070002 after update #53417

Open

Description

@jolenesbuys-lgtm

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

6.1007.21434 (build 13901)

What subscription do you have?

Pro

What platform is your computer?

Windows, OS build 26300.9550 — last confirmed on 9 October.

What issue are you seeing?

Browser control and local command execution stopped working after a desktop app update on 9 October 2026. They previously worked on this same private, unmanaged laptop.

Actual behaviour:
Every attempt fails before the requested command or browser action starts:

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

Expected behaviour:
Local commands and browser tools should start successfully.

Steps to reproduce:

  1. Open the desktop app.
  2. Open a Work/Codex chat.
  3. Ask it to run a simple local command or connect to the browser.
  4. The launcher fails with the error above.

Troubleshooting completed:

  • Fully closed and restarted the app.
  • Restarted Windows.
  • Used Windows app Repair.
  • Uninstalled and reinstalled the app.
  • Set [windows] sandbox = "unelevated" and restarted; the error still named MXC.
  • Updated to version 26.1007.21434, build 13901. The app reports it is up to date, but the failure persists.

Diagnostics:
The desktop log contains no matches for “MXC” or “CreateProcessSecurityEnvironment”. It contains a separate failure running wsl.exe --status with errorCode 50; its relationship to the launcher error is unknown.

Impact:
This blocks my business website and payment setup work. I am preparing customer quotes manually.

Please investigate the launcher failure and provide a recovery path that preserves sandbox protection and local chats.

What steps can reproduce the bug?

  1. Open the ChatGPT desktop app on Windows.
  2. Open a Work/Codex chat.
  3. Ask the agent: “Run a local command to display the current directory.”
  4. The tool fails before the command executes. Asking the agent to connect to the browser produces the same failure.

A minimal PowerShell command for the test is:

Get-Location

Actual result:
MXC launcher: failed to create the process security environment: CreateProcessSecurityEnvironment failed (HRESULT = 0x80070002)

Expected result:
The command returns the current directory, and browser tools can start.

The issue began after an app update on 9 October 2026 and persists after repair, reinstall, Windows restart, and updating to app version 26.1007.21434 (build 13901).

Setting [windows] sandbox = "unelevated" and restarting did not change the error; it still identified “MXC launcher”.

Session ID: Available privately through Support.
Token limit usage / context window usage: Not recorded. No token-limit or context-window error was displayed.

What is the expected behavior?

The app should initialise its protected execution environment successfully. A simple local command such as Get-Location should return the current directory, and browser tools should connect to an authorised browser.

These functions worked before the update. They should work without the MXC launcher error or requiring deletion of local chats, project files or settings.

Additional information

This is a private laptop, not a company-managed device. The problem began immediately after an app update on 9 October 2026; browser access had worked for hours beforehand.

The failure persists in version 26.1007.21434 (build 13901), which the app reports as up to date.

I have tried Windows app Repair, uninstalling and reinstalling, fully restarting the app and Windows, and setting the sandbox to unelevated. The error still identifies “MXC launcher”.

The expected sandbox log could not be found. Desktop logs contain a separate wsl.exe --status failure with errorCode 50, but no matches for “MXC” or “CreateProcessSecurityEnvironment”. Whether the WSL error is related is unknown.

One retry also reported:
“failed to clean up stale arg0 temp dirs: Access is denied. (os error 5)”

A support case has already been escalated. I can provide full logs privately.

This blocks business website and payment setup work. Please provide a recovery path that preserves sandbox protection, local chats and project files.

Activity

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

    @github-actions
    Contributor
  4. jolenesbuys-lgtm commented on Oct 12, 2026

    @jolenesbuys-lgtm
    Author

    Thanks. The suggested issues report HRESULT 0x80070020, whereas mine consistently reports 0x80070002.

    Issue #50981 appears to be a closer match, including the same browser-control failure:
    #50981

    Could a maintainer confirm whether these share the same cause? I’m keeping this issue open pending confirmation.

  5. denelon commented on Nov 5, 2026

    @denelon

    A Microsoft MXC issue explicitly cites this report as another occurrence of the same HRESULT with a differently characterized caller:

    Both reports observe CreateProcessSecurityEnvironment failing with 0x80070002 before a child process starts. The available Codex evidence does not establish the effective policy, caller security context, profile state, or originating Windows operation. The MXC issue concerns a specifically characterized session-0 batch-logon caller with no explicit filesystem grants. The matching HRESULT is therefore useful for correlation and diagnostic tracking, but it does not establish that the reports share a 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

    appbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions