Skip to content

[Windows] MXC startup fails on a permitted file opened with DELETE access; Adobe scratch files block Computer Use #58007

Open

Description

@GB525

Summary

MXC process-security-environment creation can fail with HRESULT 0x80070020 when a permitted file has an existing handle with DELETE access, even when that handle allows full read/write/delete sharing.

A small synthetic file reproduces this without Adobe running. Photoshop and Illustrator scratch files independently trigger the same failure, blocking both ordinary protected commands and fresh Computer Use kernels before user code executes.

Related symptom reports: #57652 and #55230. This report adds a concrete file-sharing reproduction; it does not establish that every report with this HRESULT has the same cause.

Environment

  • Windows 11 Pro 26H2, build 26300.9711, x64.
  • Codex Windows package: 26.1023.6123.0.
  • Desktop app version: 26.1023.50603, build 22391, prod.
  • Bundled codex-cli: 0.165.0-alpha.1.2.
  • Computer Use plugin: 26.1023.50603, node_repl with @oai/sky.
  • Photoshop 2026: 27.11 (20260929.r.26 8c16e56).
  • Illustrator 2026: 30.8.2.

The full application-exit/relaunch test did not apply an update; the package version stayed unchanged. No claim is made about whether a newer release fixes this.

Adobe-independent reproduction

  1. Create a temporary file containing only diagnostic data.
  2. Use a temporary named MXC permission profile with :minimal=read, explicit read access to that exact file, and network disabled. Its configuration shape is:
    permissions.shareprobe = { filesystem = { ":minimal" = "read", "<absolute-probe-file-path>" = "read" }, network = { enabled = false } }
    Replace the placeholder with the real temporary path. Supply this using a command-line -c override, not a saved configuration change.
  3. Before opening the handle below, run:
    codex -c windows.sandbox=mxc -c <temporary-profile-assignment> sandbox --include-managed-config --permission-profile shareprobe -- cmd.exe /d /c echo SHARING_PROBE_OK
    
    The diagnostic MXC command used a working directory already readable under :minimal (Windows System32), with no workspace-write grant to that directory. Result: success.
  4. Keep a CreateFileW handle open on the diagnostic file with:
    • Desired access: GENERIC_READ | GENERIC_WRITE | DELETE (0xC0010000).
    • Share mode: FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE (7).
    • Disposition: OPEN_EXISTING.
    • No FILE_FLAG_DELETE_ON_CLOSE is required.
  5. While holding the handle, repeat the identical MXC command and profile. It fails before the marker executes:
    MXC launcher: failed to create the process security environment: CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020)
    
  6. Release only that handle and repeat the same command: success.

Observed sequence: exit codes 0 / 1 / 0. The temporary file was removed after closing its handle. No Adobe processes or files are required for this reproduction.

A separate legacy elevated protected-launcher command succeeds while the same handle is held, using its supported standard :workspace profile with the project as its working directory. This is not a profile-identical comparison: the legacy provider rejects the narrow profile without effective :root read access. It should not be run with System32 as a writable workspace.

Actual Adobe trigger and startup-order comparison

Each application was tested separately at Home, without opening a document:

App Helper started before app opens Fresh helper while app remains open New default protected command
Photoshop Captures app; Alt+F/Escape opens/dismisses File menu Exits before JavaScript with the MXC HRESULT above Fails
Illustrator Captures app; Alt+F/Escape opens/dismisses File menu Exits before JavaScript with the same HRESULT Fails

Windows Restart Manager identifies:

  • Photoshop.exe as the scratch-file owner in the Photoshop case.
  • AIRobin.exe, a child of Illustrator.exe, as the scratch-file owner in the Illustrator case.

The paths have the form E:\Photoshop Temp<generated suffix>. For both live scratch files:

  • GENERIC_READ with Read, Write sharing fails with Win32 error 32.
  • The same open with Read, Write, Delete sharing succeeds.

These probes only opened and closed read handles; no scratch contents were read and no deletion was requested. An old, unowned zero-byte scratch-named file opens with either sharing combination.

An earlier Process Monitor capture shows the Windows Appinfo broker (svchost.exe) attempting CreateFile on an AIRobin-owned scratch file with Generic Read and ShareMode: Read, Write, receiving SHARING VIOLATION immediately before the launcher exits.

Additional controlled MXC probes with Photoshop open:

  • Standard :workspace: fails with the same HRESULT.
  • Minimal runtime plus project workspace: succeeds.
  • Same minimal profile plus read access to the exact live scratch file: fails.

After scratch release and normal user-coordinated application exit, protected commands and fresh Computer Use startup recover. AdobeIPCBroker, CCXProcess, Adobe Desktop Service and CoreSync can remain running.

Supported alternative works for commands, but desktop helper still selects MXC

With Photoshop still open, using the same standard :workspace profile:

  • Explicit windows.sandbox=mxc: fails.
  • Explicit windows.sandbox=elevated, with features.prefer_mxc=false: succeeds.

The user then authorized a reversible user-configuration test:

[features]
prefer_mxc = false

[windows]
sandbox = "elevated"

The windows.sandbox setting already existed; only the explicit preference was added.

A fresh Computer Use kernel still attempted MXC. A subsequent full system-tray Exit and relaunch was verified through new desktop/runtime process start times. Both settings survived that restart, and the package version did not change. Nevertheless, fresh protected commands and Computer Use still selected MXC and failed.

Thus a simple user-preference change plus a genuinely fresh desktop runtime did not select the alternative for this task. The source of the overriding selection remains unknown. The test preference was removed afterward, preserving unrelated configuration changes made by the app during startup.

The standalone legacy-provider success is therefore not a verified permanent Computer Use workaround.

Expected behavior / requested investigation

Please investigate the file-open sharing used during filesystem-specification processing / Windows MXC security-environment creation, especially compatibility with existing handles that have delete access. Preserve filesystem and network boundaries rather than recommending unrestricted execution.

Please also clarify how the desktop Computer Use kernel can select the documented protected legacy launcher when features.prefer_mxc=false and windows.sandbox=elevated are set. If this operation originates inside Windows Appinfo/MXC, please coordinate with Microsoft.

An actionable error identifying the conflicting resource would substantially improve diagnosis.

Microsoft documents the relevant sharing semantics in CreateFileW. The original Adobe delete-on-close flags were not captured and are not asserted. No evidence collected establishes intentional Adobe blocking.

Limits and privacy

Only basic capture/keyboard menu control was tested, not sustained artwork editing or mouse reliability. One Photoshop exit displayed Adobe's crash reporter; its relation to this issue is unknown. The user chose “Don't send.”

No documents, screenshots, credentials, machine/user identifiers, exact generated file names, full session transcripts or raw logs are attached. Narrow diagnostic results and reproduction scripts are retained locally for reviewed sharing. No Adobe processes were force-terminated and no Windows security protections were disabled. After Photoshop closed, default protected commands and the fresh Computer Use helper recovered again.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    on Oct 29, 2026
  2. JMA-Engenharia commented on Nov 24, 2026

    @JMA-Engenharia

    We observed the same CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020) on standalone Codex CLI 0.171.0 on Windows 26H2, build 26300.10075. The registry reports ProductName = Windows 10 Home. Build 26300.10075 exceeds the documented Process Isolation minimum of 26300.9550 for Windows 11 26H2. The registry label and the build comparison leave edition support to be confirmed. This was a local, synthetic invocation of the explicit MXC backend with a narrowly scoped named permission profile and child networking disabled. The child would only emit a marker. The CLI exited 1 before the marker, with EOF on both output channels and confirmed process-tree termination.

    The host retained four directory handles for safe cleanup. These included DELETE access, with read/write sharing (0x3), and stayed in the parent process. That differs from the permitted file with full sharing (0x7) in the original report. We do not yet have a Windows trace identifying the failing open or an A/B comparison with the handles released, so we cannot attribute the sharing violation to any one of those handles.

    Is there a supported procedure to correlate this HRESULT with the failing file or directory open and the conflicting handle owner, including the relevant trace provider or process filter? It would also help to know whether PSEC supports host-retained DELETE handles and whether its requirements differ for a directory, an ancestor or an individual permitted file.

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

    appbugcomputer-usesandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions