Repository navigation
Description
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_replwith@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
- Create a temporary file containing only diagnostic data.
- Use a temporary named MXC permission profile with
:minimal=read, explicit read access to that exact file, and network disabled. Its configuration shape is:Replace the placeholder with the real temporary path. Supply this using a command-linepermissions.shareprobe = { filesystem = { ":minimal" = "read", "<absolute-probe-file-path>" = "read" }, network = { enabled = false } }
-coverride, not a saved configuration change. - Before opening the handle below, run:
The diagnostic MXC command used a working directory already readable under
codex -c windows.sandbox=mxc -c <temporary-profile-assignment> sandbox --include-managed-config --permission-profile shareprobe -- cmd.exe /d /c echo SHARING_PROBE_OK:minimal(Windows System32), with no workspace-write grant to that directory. Result: success. - Keep a
CreateFileWhandle 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_CLOSEis required.
- Desired access:
- 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) - 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.exeas the scratch-file owner in the Photoshop case.AIRobin.exe, a child ofIllustrator.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_READwithRead, Writesharing fails with Win32 error 32.- The same open with
Read, Write, Deletesharing 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, withfeatures.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
github-actions commentedon Oct 29, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
JMA-Engenharia commentedon Nov 24, 2026
We observed the same
CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020)on standalone Codex CLI0.171.0on Windows 26H2, build26300.10075. The registry reportsProductName = Windows 10 Home. Build26300.10075exceeds the documented Process Isolation minimum of26300.9550for 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
DELETEaccess, 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
DELETEhandles and whether its requirements differ for a directory, an ancestor or an individual permitted file.