Skip to content

Windows: MXC CreateProcessSecurityEnvironment 0x80070020 blocks shell, Node and local workbook access #59072

Open

Description

@urbanradim-blip

Problem

On 2026-11-03 (Europe/Prague), Codex desktop on Windows consistently fails to start local tools. This prevents reading a local XLSX workbook and doing the requested application development.

Observed error

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

Reproduction and observations

  • Ask Codex to run a basic read-only PowerShell command such as Get-Location.
  • The execution tool exits with code 1 before the requested command executes.
  • Multiple attempts in the same chat returned the identical error, including attempts to read local skill instructions and inspect workbook metadata.
  • Starting the Node tool also fails with node_repl kernel exited unexpectedly, kernel_status: exited(code=1), and reason: stdout_eof, with the same MXC error in diagnostics.
  • No workbook contents were read or modified.
  • The user separately reports three workbook upload attempts stuck on a spinner. Whether that symptom has the same cause is unknown.

Expected behavior

Local tools start successfully and can request any additional filesystem permissions needed to read the selected workbook.

Impact

The user's requested workbook analysis and investment-management application cannot proceed through local tools. Please provide a supported recovery procedure and actionable diagnostics identifying the file/resource causing the sharing violation.

Environment and limits

Windows desktop, PowerShell; exact app version and Windows build have not been collected because local tool startup is unavailable. A full Windows restart has not been confirmed in this chat. Personal paths and workbook data intentionally omitted.

Potentially related existing reports: #56138, #55230, #52042. This report is submitted at the user's explicit request.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    tool-calls
    on Nov 3, 2026
  2. rfv165888-bot commented on Nov 5, 2026

    @rfv165888-bot

    Windows 上重装 Codex 后,本机工具仍无法启动。手动打开的 PowerShell 正常,但 Codex 执行 Write-Output 'CODEX_LOCAL_TOOL_OK' 时,在命令运行前报 CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020)。2026-11-05 17:01:35(台北时间),Process Monitor 确认 codex.exe --__codex-windows-mxc(PID 3800)启动后约 166 毫秒退出,Exit Status 为 1。现有记录未识别发生冲突的资源。

  3. urbanradim-blip commented on Nov 6, 2026

    @urbanradim-blip
    Author

    Additional observation from the original reporter (2026-11-06, Europe/Prague): closing Adobe Photoshop repeatedly restores Codex local tool execution without restarting the PC or Codex.

    Most recent sequence in the same Codex chat:

    1. A read-only PowerShell command failed before execution with MXC launcher: failed to create the process security environment: CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020).
    2. The user reported closing Photoshop.
    3. A subsequent read-only PowerShell command succeeded immediately (exit code 0). This close-Photoshop / recovery pattern has occurred repeatedly during the session, including earlier successful C# builds after Photoshop was closed.

    This is a repeatable observed correlation on this machine, not a confirmed root cause. We have not collected a Process Monitor trace identifying the particular handle or file responsible for the MXC failure. Photoshop's scratch disk was configured on an internal drive; no claim is made that the external data drive caused this sandbox failure. Please investigate whether an Adobe-held file/handle can prevent MXC initialization, and consider exposing the conflicting resource in the diagnostic rather than requiring a restart.

    Personal file paths and application data omitted. Posted at the user's explicit request.

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

    appbugsandboxtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions