You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows: MXC CreateProcessSecurityEnvironment 0x80070020 blocks shell, Node and local workbook access #59072
appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingtool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems
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.
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:
A read-only PowerShell command failed before execution with MXC launcher: failed to create the process security environment: CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020).
The user reported closing Photoshop.
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.
appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingtool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Nov 3, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
rfv165888-bot commentedon Nov 5, 2026
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。现有记录未识别发生冲突的资源。
urbanradim-blip commentedon Nov 6, 2026
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:
MXC launcher: failed to create the process security environment: CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020).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.