Repository navigation
Description
Environment
- Codex desktop on Windows.
- Windows reports Windows 10 Pro, version 26H2, build 26300.9711.
- Browser Use component version reported in local configuration: 26.1013.40934.
- Bundled CLI used for the sandbox comparison: codex-cli 0.163.0-alpha.10.2.
Problem
The in-app browser tab opens normally, but Codex cannot connect its Browser/Computer Use controller to it. Calls such as cua.getState() or cua.getTab(..., { browser: "iab" }) terminate before reading the tab.
The tool reports:
trusted Node process exited unexpectedly
MXC launcher: failed to create the process security environment:
CreateProcessSecurityEnvironment failed (HRESULT = 0x80070057)
Reproduction
- Open Codex Desktop on Windows and leave a page open in the in-app browser.
- Call
await cua.getState()or connect to the open IAB tab withcua.getTab(...). - The Node kernel exits before the browser state or page can be read.
Expected: the Browser/Computer Use controller starts and can inspect the authorized in-app browser tab.
Actual: the controller fails to start with CreateProcessSecurityEnvironment before any browser interaction.
Diagnostics
- The Codex user config has
[windows] sandbox = "elevated"and[features] prefer_mxc = false. - After restarting Codex with that configuration, local sandbox logs still show the Browser/Computer Use launcher selecting
mxc. - A minimal explicit MXC sandbox command fails with HRESULT
0x80070057. - The same harmless command using the
elevatedsandbox succeeds (LEGACY_OK). - Resetting the CUA JavaScript kernel and retrying did not change the result.
- Logs were inspected locally; this report contains only the relevant error/configuration, with personal paths, session identifiers, credentials, and raw logs omitted.
Related reports: #53650 (Browser/Computer Use MXC startup failure with another HRESULT), #50981 (Desktop selects MXC despite prefer_mxc = false), and #52547 (Windows sandbox and browser tools fail to start).
Could you clarify why the CUA launcher continues selecting MXC when prefer_mxc = false and elevated is configured, and provide a supported recovery path that allows the browser controller to use the working legacy sandbox?
Activity
github-actions commentedon Oct 17, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
winnerblack99 commentedon Oct 18, 2026
Same underlying bug, different exact error — adding this as a data point since it's clearly the same MXC launcher failure family.
Environment:
Error:
MXC launcher: failed to create the process security environment:
CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020)
(0x80070020 = ERROR_SHARING_VIOLATION, vs. the 0x80070057 in this issue — same component, same failure point, different underlying Win32 error surfaced.)
Diagnostics:
runtime read/execute validation failed: validate runtime read/execute access on
...\runtimes\cua_node<hash>\bin\node_repl.exe: open ACL target for root-only update:
The process cannot access the file because it is being used by another process. (os error 32)
Confirming this persists after the 2026-10-15 fix:
Updated to codex-cli 0.163.0-alpha.10.2, which includes PR #51822 "Avoid sharing violations when repairing Windows runtime ACLs" plus related MXC changes (#51547, #51896, #52193). After a clean update and relaunch, the identical CreateProcessSecurityEnvironment / 0x80070020 error still occurs. Suggests the fix doesn't cover this specific code path.