Skip to content

files not processing #52042

Open
Open

Description

@APLSAM

Codex on Windows: file-processing tools fail even after a full restart

I cannot complete Excel-processing tasks because Codex’s local tools fail to start across multiple chats.

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

I have restarted the app and fully restarted Windows, but the problem persists. Basic commands also fail before opening any workbook. Both the shell and Node runtime encountered the same startup error.

This is blocking report consolidation and discount-table preparation.

Observed on 8 October 2026, India Standard Time.

Please investigate the Windows execution-environment failure and provide a fix or supported workaround.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    tool-calls
    on Oct 8, 2026
  2. github-actions commented on Oct 8, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  3. qqfortunate-collab commented on Oct 9, 2026

    @qqfortunate-collab

    I am experiencing the same error on Windows:

    CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020)

    It also occurs in a new chat: all three attempts to run Get-Date failed before execution. PowerShell opened manually outside Codex works.

    I submitted in-app feedback with diagnostic logs:
    01a11e2b-c691-7a30-87df-f8bd9588e813

    Please help investigate. This blocks all local commands and computer-use tools.

  4. ercshn123-oss commented on Oct 9, 2026

    @ercshn123-oss

    Additional reproduction: Windows 11 — HRESULT 0x80070002 persists after complete reinstall

    I can confirm a related, reproducible MXC launcher failure on Windows 11 x64.

    Current error:

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

    Reproduction:

    1. Open Codex Desktop on Windows 11.
    2. Start a fresh conversation.
    3. Ask Codex to execute:
      cmd /d /c "echo CODEX_TOOL_OK & whoami & cd & ver"
    4. The exec_command tool fails before the child process starts.

    Observed:

    • stdout: empty
    • Exit code: 1
    • No shell command successfully executes.

    Important: A complete uninstall and reinstall did NOT resolve this issue. Resetting the application and changing Windows sandbox configuration also failed.

    Environment:

    • Windows 11 x64, build 26200
    • Previous Codex MSIX package: 26.1002.7124.0
    • Current post-reinstall version: not yet verified
    • Ubuntu WSL2 independently confirmed operational

    Other errors observed during troubleshooting:

    • CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020)
    • Failed to create unified exec process: No such file or directory (os error 2) in WSL-mode attempts

    This appears related to the Windows execution environment described in this issue, although the HRESULT values differ and may have different underlying causes.

    Impact: Codex Desktop cannot execute any local command. Existing development projects are effectively blocked.

    Could the maintainers investigate the MXC security-environment initialization and provide an official fix or workaround?

    I can provide sanitized diagnostic logs and an OpenAI Support ticket ID if needed.

  5. APLSAM commented on Oct 9, 2026

    @APLSAM
    Author

    Update: The problem persists on 9 October after a complete Windows restart and repeated retries. Even a basic command fails before any file is opened.

    The suggested duplicate #50981 reports 0x80070002, whereas my error is 0x80070020. Please confirm whether these have the same cause before closing this report as a duplicate.

    Please advise which diagnostics you need and whether a supported fix or workaround is available. This is blocking my Excel report work.

  6. afukuda1111 commented on Oct 9, 2026

    @afukuda1111

    I am experiencing a similar Windows MXC launcher failure, but with a different HRESULT: 0x8007000F.

    Environment

    • Windows 11, Codex Desktop 26.1002.7124.0 (also reproduced on 26.930.7945.0)
    • Bundled Codex CLI before the update: 0.160.1
    • Task sandbox policy: workspace-write; user config contains [windows] sandbox = "elevated"

    Error

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

    Reproduction

    • hostname succeeds on the intended Windows host.
    • cmd /c echo OK fails before command execution.
    • Both standard Python and a project-specific Python executable fail with the same MXC error.
    • Running Python directly from Windows Command Prompt succeeds.

    Troubleshooting

    • Restarted Codex Desktop.
    • Manually started CodexSandboxService.OpenAI.Codex, confirmed RUNNING; error persisted.
    • Updated Desktop from 26.930.7945.0 to 26.1002.7124.0; error persisted.
    • Ran Windows app Repair (not Reset); error persisted, same installed version.
    • codex doctor --summary --ascii on the previous installation reported 0 failures; it did not identify this command-launch problem.

    I have also encountered sandbox errors on a separate Windows PC without the corporate proxy, but cannot confirm they share the same root cause.

    Could you confirm whether HRESULT 0x8007000F is related to this issue, and whether a fix or officially supported workaround is available? I can provide additional sanitized diagnostics if needed.

  7. afukuda1111 commented on Oct 9, 2026

    @afukuda1111

    Additional diagnostics for my earlier report of HRESULT 0x8007000F:

    I tested the bundled Codex CLI on Windows 11 (Desktop package 26.1002.7124.0).

    • Starting the normal CLI with --sandbox workspace-write -C <local-project> returned: this CLI has no complete local package; install a packaged Codex CLI or use the standalone installer. It suggested --no-daemon.
    • Starting the same CLI with --no-daemon --sandbox workspace-write -C <local-project> successfully opened an interactive session (displayed CLI v0.162.0-alpha.2).
    • Inside that session, hostname succeeded, but cmd /c echo OK did not respond and was stopped after approximately 60 seconds. Python was not attempted after this failure.
    • The CLI displayed one startup warning: Under-development features enabled: respect_system_proxy. This is a warning only; I have no evidence that it caused the execution failure.
    • The Desktop app continues to fail immediately with CreateProcessSecurityEnvironment failed (HRESULT = 0x8007000F).

    This suggests that neither the Desktop execution path nor the tested standalone interactive CLI path can reliably launch even a basic local command. No project data, source code, or confidential files were included in these tests.

    Could the maintainers advise whether the CLI timeout and Desktop MXC failure are related, and what supported diagnostics or fix to try next?

  8. ganfanyu0918-commits commented on Oct 9, 2026

    @ganfanyu0918-commits

    [Windows 11] Codex Computer Use Completely Broken — MXC Launcher Fails with HRESULT 0x80070020

    Summary

    I am experiencing the exact same issue reported in this GitHub thread.

    Codex on Windows 11 is unable to initialize its local execution environment. As a result, Computer Use cannot interact with desktop applications, including Adobe Illustrator and even Windows Notepad.

    The recurring error is:

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

    I have spent several hours troubleshooting this problem. Unfortunately, the issue remains unresolved.

    I am sharing my findings, diagnostic logs, and troubleshooting history to help other users and the Codex development team investigate this issue.

    1. System Environment

    Component Details
    Operating System Windows 11
    Application Codex / ChatGPT Work desktop environment
    Application Status Latest version reported on October 9, 2026
    Subscription ChatGPT Plus
    Network Clash Verge Rev proxy
    Sandbox Modes Tested unelevated and elevated
    Original Task Control Adobe Illustrator to draw a flag
    Additional Test Open Windows Notepad and type text
    Primary Error 0x80070020
    Status Unresolved

    The application occasionally displays “Reconnecting 2/5”, but I have not established whether this is related to the local sandbox failure.

    1. Steps to Reproduce

    2. Launch Codex / ChatGPT Work on Windows 11.

    3. Ask Codex to control a desktop application.

    4. For example: “Open Windows Notepad and type ‘Computer Use test successful’.”

    5. Codex attempts to initialize its local execution environment.

    6. The task fails with CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020).

    7. No desktop interaction occurs.

    Expected behavior: Codex successfully initializes its local execution environment and interacts with Windows desktop applications.

    Actual behavior: The MXC launcher fails to create the process security environment, and the local execution kernel exits.

    1. Confirmed Internal Error Logs

    I inspected the following local database using Python 3.11 and SQLite in read-only mode:

    C:\Users\admin.codex\logs_2.sqlite

    The logs table contained approximately 4,151 records when initially inspected.

    Searching the log messages produced:

    Search Term Matching Records
    0x80070020 13
    CreateProcessSecurityEnvironment 13
    sandbox 122
    sharing violation 0

    These numbers represent matching log records, not necessarily distinct failed executions.

    Log ID 4534

    LEVEL: INFO
    TARGET: codex_rmcp_client::stdio_server_launcher
    MCP server stderr:
    MXC launcher: failed to create the process security environment:
    CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020)

    Log ID 4538

    LEVEL: INFO
    TARGET: codex_rmcp_client::stdio_server_launcher
    MCP server stderr:
    node_repl diagnostics:
    {
    "kernel_pid": 25272,
    "kernel_status": "exited(code=1)",
    "kernel_stderr_tail": "MXC launcher: failed to create the process security environment: CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020)"
    }

    The error was reported when launching the MCP server through the bundled Codex cua_node runtime.

    This suggests the failure occurs before Computer Use can actually interact with the desktop.

    1. Sandbox Configuration

    My original Codex configuration included:

    [windows]
    sandbox = "unelevated"

    Both bundled computer-use plugins were enabled:

    [plugins."unified-computer-use@openai-bundled"]
    enabled = true
    [plugins."computer-use@openai-bundled"]
    enabled = true

    The configuration also included:

    SKY_CUA_NATIVE_PIPE = "1"
    NODE_REPL_UNTRUSTED_ENV_ALLOWLIST = "CODEX_WINDOWS_REGISTERED_CORE"

    I backed up the configuration, changed the Windows sandbox mode to:

    [windows]
    sandbox = "elevated"

    I then restarted Codex.

    Result: The same error persisted.

    1. Troubleshooting Already Performed

    Attempted Fix Result
    Run Codex as administrator Failed
    Restart Windows multiple times Failed
    Repair the Codex application Failed
    Reset the application Failed
    Check for application updates Already up to date
    Test Adobe Illustrator Failed
    Test Windows Notepad Failed
    Inspect Windows Defender protection history No confirmed Codex block
    Check Controlled Folder Access Already disabled
    Change sandbox to elevated Failed
    Investigate Process Monitor sharing violations No confirmed root cause
    Investigate installed file-system filter drivers Found MessageTransfer.sys
    Uninstall Perfect World Arena Same error persisted
    Inspect Codex SQLite logs Identified MXC launcher failure

    1. Process Monitor Findings

    I used Microsoft Sysinternals Process Monitor to capture SHARING VIOLATION events.

    Some events involving codex.exe included:

    C:\DumpStack.log.tmp
    C:\hiberfil.sys
    C:\swapfile.sys

    There were also sharing violations involving a Photoshop temporary-file path.

    The captured call stack included Windows system components:

    KernelBase.dll
    ntdll.dll
    ntoskrnl.exe
    FLTMGR.SYS

    However, these events do not conclusively identify the cause of the MXC failure. Some Windows-managed files are normally locked.

    1. File-System Filter Driver Investigation

    Using:

    fltmc filters

    I identified a third-party file-system filter named MessageTransfer.

    Its service configuration was:

    SERVICE_NAME: MessageTransfer
    TYPE: FILE_SYSTEM_DRIVER
    START_TYPE: AUTO_START
    STATE: Running
    BINARY_PATH_NAME:
    D:\Program Files (x86)\perfectworldarena\plugin\MessageTransfer.sys
    LOAD_ORDER_GROUP: FSFilter Activity Monitor

    The driver had six active filter instances when inspected.

    It belonged to the Perfect World Arena installation directory.

    I uninstalled Perfect World Arena as a troubleshooting step.

    The Codex error persisted after the uninstall.

    I have not yet supplied a final post-uninstall filter list confirming that this driver was fully unloaded, so I cannot conclusively rule out its continued presence.

    1. Codex Local Files

    The Codex configuration directory contains:

    .codex/
    .sandbox/
    .sandbox-bin/
    .sandbox-secrets/
    computer-use/
    node_repl/
    plugins/
    sessions/
    thread-writer-locks/
    config.toml
    logs_2.sqlite

    The presence of these folders indicates that Codex created local runtime data, but does not prove the execution environment initialized successfully.

    1. My Current Assessment

    Based on the logs, the failure appears to occur in the local MCP / node_repl startup process.

    The MXC launcher fails while creating its Windows process security environment, and the kernel subsequently exits with code 1.

    I cannot determine whether this is caused by:

    • A regression in the Codex Windows runtime.
    • A Windows sandbox or process-security compatibility issue.
    • An unidentified locked resource.
    • A remaining third-party driver conflict.
    • An MXC launcher implementation issue.

    I do not have evidence that Adobe Illustrator or the occasional network reconnection messages are responsible.

    1. Questions for the Codex Development Team

    2. What exactly does CreateProcessSecurityEnvironment initialize, and what conditions could produce HRESULT 0x80070020?

    3. Are there additional MXC launcher diagnostics that can identify the locked resource?

    4. Is this a known issue in the current Windows runtime?

    5. Does switching between unelevated and elevated sandbox modes affect MXC initialization?

    6. Is there a supported workaround that does not involve disabling Windows security protections or modifying kernel drivers?

    7. Can maintainers recommend a safe method to capture the specific resource or file responsible for the failure?

    I would be happy to provide additional sanitized logs or test a targeted workaround.

    I hope this information helps other users experiencing the same issue. Thank you to everyone investigating it.

  9. TMH-MEDIA commented on Oct 9, 2026

    @TMH-MEDIA

    Workaround found: Disconnecting remote C$ administrative shares resolves sandbox error 0x80070020

    I experienced the following error in the Codex Windows desktop app:

    CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020)

    Environment

    • Codex Windows Desktop version: 26.1002.7124.0
    • Windows
    • Existing network connections to administrative C$ shares on other Windows computers, using UNC paths such as \\ComputerName\C$

    Troubleshooting

    I tried the following without resolving the issue:

    • Reinstalling the Codex app multiple times
    • Repairing and resetting the app
    • Switching the Windows sandbox to unelevated
    • Changing the approval policy to on-request
    • Disabling Codex plugins
    • Renaming the cua_node runtime directory to force recreation
    • Restarting Codex and its related processes

    Even a simple whoami command failed inside the sandbox with HRESULT 0x80070020, while execution outside the sandbox worked after approval.

    During troubleshooting, Process Explorer showed multiple node_repl.exe instances. However, I could not conclusively identify which process or file caused the sharing violation.

    Workaround that resolved the issue

    I disconnected the existing network connections to the administrative C$ shares of other Windows computers.

    The connections used UNC paths such as:

    \\ComputerName\C$

    After disconnecting these connections, whoami successfully executed inside the Codex sandbox and returned my Windows account.

    PowerShell also reported a filesystem drive initialization error during testing, suggesting that filesystem or network-drive initialization might be relevant.

    After disconnecting the remote C$ connections, the Codex sandbox issue was resolved on my machine.

    Possible root cause

    Existing SMB connections to remote administrative shares may interfere with Windows sandbox initialization or filesystem access.

    I cannot confirm whether the underlying cause is SMB connection handling, unavailable remote paths, PowerShell filesystem initialization, or another interaction with the Windows sandbox.

    This is a confirmed workaround on my system, not a verified universal fix.

    I hope this helps the maintainers reproduce and investigate the issue.

  10. igbins09 commented on Oct 10, 2026

    @igbins09

    Root cause found on my machine for CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020)

    Environment: Windows 11 Home 26200, Codex desktop 26.1002.7124.0 (bundled codex-cli 0.162.0-alpha.2), MXC backend selected by the desktop app. Lenovo Legion laptop with the Realtek audio driver and the bundled Elevoc AI noise-suppression component.

    Cause: an exclusively locked file directly at a drive root. On my machine that file is D:\elevoc_dnn_kernel.log, a 2 KB log. The Elevoc audio-processing plugin inside the Windows audio engine (audiodg.exe) holds it open with no read sharing whenever the built-in Realtek microphone is used.

    Repro with the bundled CLI:

    • codex sandbox -P :workspace -c windows.sandbox="mxc" -C <dir> -- cmd /c echo ok fails with 0x80070020.
    • The same command with a profile that has no :root read grant succeeds.
    • Bisecting explicit read grants over every item at every drive root: only D:\elevoc_dnn_kernel.log reproduces the error on its own.
    • Restarting Audiosrv releases the lock and MXC works; opening the built-in mic re-locks the file and MXC fails again.

    Why (source): expand_volume_roots() in codex-rs/mxc-sandbox/src/policy.rs expands :root into one grant per drive-root child. Its compare_existing_filesystem_objects probe is metadata-only, so it succeeds on share-locked files (only paging files get skipped). CreateProcessSecurityEnvironment then fails with ERROR_SHARING_VIOLATION. The function is unchanged in rust-v0.162.1 and 0.163.0-alpha.4.

    Suggested fix: for generated volume-root grants, skip children whose open fails with ERROR_SHARING_VIOLATION (explicit grants can still fail closed), or let PSEC tolerate them. This probably also covers the other triggers reported here (mapped or administrative network shares, locked BitLocker volumes in #50915).

    Not workarounds:

    • Turning off Windows "Audio enhancements" holds only until the mic is used again.
    • Disabling the Elevoc software component did not help either.
    • A deny-path carve-out in a permission profile fails while a mapped SMB drive exists, because MXC can't resolve the share root when deny paths are present.
  11. sushiHex commented on Oct 13, 2026

    @sushiHex

    A minimal, deterministic trigger for the same HRESULT, using plain codex sandbox (codex-cli 0.162.1, Windows 11 10.0.26200.9550). It may help narrow down the cases here.

    Under windows.sandbox = "mxc", a permission profile entry that names a file another process has open with share mode 0 stops every command from starting:

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

    Reproduction:

    1. In one process, open a file with CreateFileW(path, GENERIC_READ, 0 /* no sharing */, NULL, OPEN_EXISTING, ...) and keep the handle.
    2. Run:
      codex sandbox -c 'windows.sandbox="mxc"' -c 'default_permissions="repro"' -c 'permissions.repro.extends=":read-only"' -c 'permissions.repro.filesystem={"C:\\tmp\\locked.bin"="deny"}' -- cmd.exe /d /c "exit 0"
      It exits 1 with 0x80070020.
    3. Close the handle and run the same command again. It exits 0.

    It's the entry being named that matters: the command never touches the file. In the wild we hit this with Codex's own ~/.codex/.codex-provisioning-*.guard lock file, which a running Codex holds exclusively, when a profile denied everything in ~/.codex.

    This agrees with the Process Monitor evidence in #52547: sharing violations on pagefile.sys, hiberfil.sys and similar files under :root read. The pattern seems to be that preparing any filesystem entry, read or deny, fails the whole environment when the object it resolves can't be opened. Skipping or tolerating an entry whose object is locked, rather than failing the launch, would seem to cover both cases.

  12. JunLogger commented on Oct 14, 2026

    @JunLogger

    I was able to reproduce and isolate the same MXC error (HRESULT = 0x80070020) on Windows 11.

    Environment

    • Windows 11 Pro 26H2 (Build 26300.9550)
    • Codex CLI: 0.162.0-alpha.17.2
    • Adobe Photoshop 2026

    Findings

    The failure was caused by a Photoshop scratch disk temporary file located at G:\Photoshop Temp<id>.

    I tested 173 root-level filesystem entries across five drives (C, D, E, F, G).

    • Narrow MXC filesystem permissions: Success
    • Adding :root read access: Failure (0x80070020)
    • Including the Photoshop temporary file: Failure
    • Excluding that single file: Success
    • Closing Photoshop normally: MXC, node_repl, and in-app browser tools all worked again

    Windows Restart Manager also identified Photoshop.exe as the process using the conflicting file.

    The issue appears to occur when MXC processes filesystem permissions for root-level files that are opened with incompatible sharing modes.

    Conclusion

    This strongly suggests a file-sharing conflict during MXC security environment creation. Photoshop itself does not appear to be malfunctioning.

    No system files or Codex settings were modified during testing.

    I hope this additional reproduction case helps the maintainers investigate and resolve the issue.

    Note: These findings are based on tests performed on my Windows PC with the assistance of Codex. I used ChatGPT to help organize and translate the results into English.

  13. Attila-FIN commented on Oct 15, 2026

    @Attila-FIN

    Another likely locked-file case: Primo Ramdisk hybrid backing file at a drive root.

    ChatGPT Work / Computer Use on Windows failed at startup with node_repl kernel exited unexpectedly and:

    CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020)
    
    • D:\Temp_RAM_Drive_Hybrid.hbd is an active Primo Ramdisk hybrid backing file. A .NET open test returned System.IO.IOException, HRESULT 0x80070020 (file in use). Other unlocked root-level RAM-disk images opened successfully.
    • No SMB mappings (net use / Get-SmbMapping were empty). Rebooting and recreating cua_node did not help.
    • Confirmed workaround: create C:\ProgramData\OpenAI\Codex\requirements.toml with:
    [windows]
    allow_mxc = false

    My user config already had [windows] sandbox = "elevated". After restarting ChatGPT, the Work browser worked without moving/unlocking the file or changing the RAM disk.

    This fits the locked-file reports above and #52547, although I have not isolated this file with an MXC included/excluded comparison. Unmounting the RAM disk would be disruptive because Windows/application folders are redirected to it.

    And yes, this comment is now being filled in by the embedded browser that previously refused to start. It has finally agreed to help report its own bug. 🙂

  14. jpfulton248 commented on Oct 17, 2026

    @jpfulton248

    Another case of the locked-root-file cause, this time a file at the root of a mapped network drive. It still reproduces on Codex app 26.1013.31256 (codex-cli 0.163.0-alpha.10.2).

    Locked file: V:\<company>.QBW, where V: maps to \\<server>\QuickbooksCompanyFiles. The QuickBooks Database Server Manager (QBDBMgrN.exe) on the file server holds it open the whole time. It is a live accounting database, so closing it is not a workable fix.

    Evidence (ETW File I/O trace of one failing command):

    • Appinfo creates the sandbox AppContainer, then opens the .QBW over SMB with share access read|write.
    • The open returns STATUS_SHARING_VIOLATION (0xC0000043).
    • About 3 ms later the MXC launcher exits 1 with CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020).
    • Restart Manager on the server names QBDBMgrN.exe as the holder. A probe from the client shows that reading attributes and the security descriptor succeeds, while GENERIC_READ fails with error 32. That matches the metadata-only check in expand_volume_roots() described above.

    So the :root expansion includes the roots of mapped network drives as well as local volumes, and a single share-locked file on any of them stops every command.

    Workaround: use :danger-full-access, which skips MXC. The suggestion is the same as above: skip, or degrade to a warning, any root entry that cannot actually be opened, instead of failing the whole environment.

  15. RustRevo commented on Oct 20, 2026

    @RustRevo

    Reproducible MXC failure: ordinary Excel workbook open at the root of a local drive

    I reproduced CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020) on Windows 11 with the Codex desktop application's bundled CLI. I was able to isolate the trigger to opening a Microsoft Excel workbook saved directly at the root of my F: storage drive.

    Minimal reproduction

    1. Create a brand-new, blank Excel workbook (no edits, macros, or add-ins involved).

    2. Save it directly as F:\Test.xlsx (a local storage drive, not the Windows system drive).

    3. Keep the workbook open in Excel.

    4. Run the bundled Codex CLI's MXC check from PowerShell:

      & $codex -c windows.sandbox=mxc sandbox --include-managed-config --permission-profile :workspace -- cmd.exe /d /c echo MXC_OK
      $LASTEXITCODE

      ($codex is the full path to the Codex desktop app's bundled codex.exe.)

    Observed with workbook open at F:\:

    MXC launcher: failed to create the process security environment: CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020)
    1
    
    1. Close the workbook/Excel and repeat the identical CLI check: MXC_OK, exit code 0.
    2. Move the workbook into a subfolder, e.g. F:\Excel Workbooks\Test.xlsx, reopen it in Excel, and repeat: MXC continues to work (MXC_OK, exit 0).

    This also reproduces with a brand-new untouched workbook, so the original workbook's contents and ChatGPT Excel add-in were not required to trigger it. Other workbooks that were not at the drive root did not cause the failure. Restarting Codex alone did not resolve the problem. A Windows reboot temporarily helped before reopening the problematic root-level workbook.

    I also tested the alternative sandbox: -c 'windows.sandbox="elevated"' successfully printed LEGACY_OK, exit 0, while MXC was failing.

    Suspected mechanism / workaround

    This is consistent with the drive-root, share-locked file reports above. Excel normally creates an ownership/lock file (often named ~$...) when a workbook opens, but I have not traced which specific file handle MXC encounters, so I cannot confirm the exact file.

    Noninvasive workaround: save/open Excel workbooks inside a subdirectory rather than directly at the root of a drive. This let me keep using MXC without changing any Codex or Windows security settings.

    Hope this simple, repeatable Excel reproduction helps narrow down the MXC root-enumeration handling.

  16. QionghuaGit commented on Oct 25, 2026

    @QionghuaGit

    @JunLogger Thanks for sharing the Photoshop workaround above. Closing Photoshop also restored both local commands and Chrome browser access on my Windows PC on October 25, 2026.

    Environment

    • Windows 11 Pro, base OS build 26200.
    • Bundled Codex CLI: 0.164.0-alpha.11.1.
    • Adobe Photoshop 2026.

    Before closing Photoshop

    • Ordinary shell commands, including Get-Location and Get-Content, failed before execution with CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020).
    • The browser helper also exited during initialization, before it could enumerate Chrome tabs.
    • Restarting Windows did not resolve the observed failure.
    • Controlled tests using the same CLI, working directory, and read command showed that a narrow MXC profile worked, adding only :root = "read" caused the error, and returning to the narrow profile worked again.
    • The legacy elevated sandbox could run the same read command while MXC with broad read access was failing.
    • Photoshop temporary files had been observed directly at the root of a local scratch drive (E:\Photoshop Temp<id>).

    After closing Photoshop normally

    • Ordinary shell commands and Get-Content succeeded again.
    • Explicit MXC with the standard :workspace profile succeeded, printing the test marker with exit code 0.
    • After resetting the previously failed browser helper, it successfully enumerated Chrome tabs and read an existing Chrome page.
    • No persistent Codex configuration, sandbox policy, or system-file changes were needed for this recovery.

    This supports the Photoshop-related resource-conflict workaround reported above. However, we did not independently isolate the exact conflicting file or handle, and we have not reopened Photoshop to perform a reverse reproduction. This is an additional before/after observation, rather than proof of the precise internal failure mechanism.

    For others seeing this error while Photoshop is running, saving your work and closing Photoshop normally may be a useful first troubleshooting step. Thanks again for posting the finding—it helped restore my setup.

  17. ghufronbagaskara commented on Oct 26, 2026

    @ghufronbagaskara

    Confirmed on another Windows machine with a controlled A/B/A reproduction on October 26, 2026.

    Environment: Windows 11 Home 26H2 build 26300.9711; desktop About/updater version 26.1021.31345 (build 21828, prod, updater reports up_to_date); registered MSIX 26.1021.3705.0; bundled CLI 0.164.0-alpha.11.1. These are distinct version fields, not an asserted version mismatch.

    The built-in browser/Computer Use helper fails before it can inspect any website. Ordinary sandboxed echo fails with CreateProcessSecurityEnvironment HRESULT 0x80070020; the same process outside the sandbox works. Bundled Node v24.22.1 launches normally outside the sandbox, and the executable signatures are valid.

    Local evidence: D:\elevoc_dnn_kernel.log (2356 bytes) cannot be opened for read even with sharing ReadWrite|Delete; IOException HRESULT is 0x80070020. Windows Restart Manager RmGetList identifies audiodg.exe as the sole holder. Elevoc Audio Effects Component 3.0.3.154 is installed. No SMB mappings were found.

    Controlled test, using temporary CLI -c permissions only, no persistent config changes, same CLI/cwd/MXC and disabled network:

    1. A custom profile with :minimal=read plus the project directory=read: echo succeeds, exit 0.
    2. Identical profile plus only D:\elevoc_dnn_kernel.log=read: fails with 0x80070020, exit 1.
    3. Original narrow profile again: echo succeeds, exit 0.

    No services were restarted, no processes killed, no security controls disabled, and no credentials, browser profiles, conversation data, or raw logs are included here. The affected user reports repeated disruption despite keeping the app updated. Please address root-grant handling or provide a supported durable workaround that retains sandboxing, and include the conflicting resource in diagnostics. Reinstalling the browser/runtime is not supported by the evidence gathered on this machine.

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