Windows desktop: elevated sandbox command runner fails with CreateProcessWithLogonW error 32
Summary
Codex Desktop on Windows fails to start ordinary sandboxed commands before the shell runs:
Failed to create unified exec process: CreateProcessWithLogonW failed: 32
Windows error 32 is a sharing violation. The affected file and process holding a conflicting handle have not been identified; a common cause with earlier runtime ACL sharing-violation reports has not been established.
Environment
- Codex Desktop Windows package:
OpenAI.Codex_26.1027.3384.0_x64 - Windows sandbox:
elevated; workspace-write - Experimental network proxy disabled
- Native PowerShell 7 and cmd.exe both affected
- Local workspaces on F: and C: were tested
Reproduction and observations
- Open a local project in Codex Desktop using the elevated Windows sandbox.
- Ask Codex to run a minimal command such as
Write-Output 'runner probe'. - Process creation fails with the error above; no command output is produced.
- Removing an additional parent source folder and opening a new chat did not resolve error 32.
- A normal Codex app restart did not resolve error 32. A Windows restart has not yet been tested.
- Multiple Codex and command-runner processes were observed, but no evidence identifies one as the cause of the sharing violation.
Separately observed setup failure
Before the error 32 test, a new chat with an additional F: parent source folder reported helper_unknown_error: setup refresh had errors. A sanitized review of the sandbox log found access denied (Windows error 5) during an ACL grant on that extra folder. The folder has an unmapped owner SID, inherited ACLs, and the interactive user's observed identity/group ACL entries did not grant ChangePermissions. Removing that source folder allowed setup to proceed past that particular error, but command launch still failed with error 32. This is a separate observation, not a confirmed common cause.
Expected
A minimal command should launch and return its output while preserving the elevated sandbox. Please advise how to identify the resource involved in the sharing violation and whether this resembles a known issue in this version.
Related reports
- Runtime ACL sharing violations: https://github.com/openai/codex/issues/51601 and https://github.com/openai/codex/pull/51822. Those concern setup-time ACL validation, not this observed process-launch failure.
- Different CreateProcessWithLogonW failure code: https://github.com/openai/codex/issues/56723.
No credentials, unfiltered logs, user-specific paths, or sandbox data are included.
I checked the current Windows runner path in main against the two reported codes.
codex-rs/windows-sandbox-rs/src/elevated/runner_client.rscallsCreateProcessWithLogonW, capturesGetLastError()immediately, and returns it asRunnerLogonError: https://github.com/openai/codex/blob/main/codex-rs/windows-sandbox-rs/src/elevated/runner_client.rs#L405-L440- The one-shot credential refresh only retries
ERROR_ACCOUNT_DISABLED(1331),ERROR_LOGON_FAILURE(1326), andERROR_NO_SUCH_LOGON_SESSION(1312);ERROR_SHARING_VIOLATION(32) andERROR_NOT_ENOUGH_MEMORY(8/1450 is reported by the API as insufficient resources) are terminal in this path: https://github.com/openai/codex/blob/main/codex-rs/windows-sandbox-rs/src/elevated/runner_client.rs#L118-L176 - For an ordinary
cmd.exelaunch,LOGON_WITH_PROFILEis not set; it is only used for a registered WindowsApps alias: https://github.com/openai/codex/blob/main/codex-rs/windows-sandbox-rs/src/elevated/runner_client.rs#L411-L426
This does not identify the conflicting handle or resource, but it narrows the current behavior: the elevated runner is failing before the child starts, and the existing credential-refresh path will not change either error 32 or 1450. A useful next diagnostic would be to record the exact runner operation and GetLastError at this boundary while comparing cmd.exe with the WindowsApps/profile path, and to inspect whether the runner executable, private desktop, pipe handles, or token/profile setup is the object involved. The existing tests cover credential-refresh codes but not 32/1450: https://github.com/openai/codex/blob/main/codex-rs/windows-sandbox-rs/src/elevated/runner_client.rs#L588-L641
AI-assisted source analysis; this is a hypothesis about the current error-handling boundary, not a confirmed root cause.
I reproduced this on November 20 on Windows 11 25H2 with Codex Desktop 26.1117.31558 (Windows package 26.1117.3838.0), using the elevated Windows sandbox.
The smallest reproduction I found was asking Codex to run Get-Location in PowerShell with the default sandbox permissions. It failed before PowerShell printed a path:
CreateProcessWithLogonW failed: 32
The built-in browser and Chrome control also failed during startup. Chrome was running, its extension was enabled, and the native messaging registration check passed. Restarting Codex and retrying still produced error 32.
Browser control had worked on November 19. I first saw this failure after updating Codex the next morning. I don’t have a before-and-after test that establishes whether the update triggered it.
Reproduced on 26 November 2026 in ChatGPT Work Mode on Windows.
- Built-in
exec_commandfailed before executing the requested PowerShell command:CreateProcessWithLogonW failed: 32. - Browser control via
cua.getState()failed twice during initialization. The second attempt reported:windows sandbox failed: CreateProcessWithLogonW failed: 32, with kernel exit code 1. - Separately,
node_replreturned:Managed execution requires a usable CODEX_CLI_PATH. Whether this shares a root cause is unknown. - As a comparison, PowerShell through Desktop Commander successfully ran Node.js v24.19.0 and Git 2.49.0.windows.1. GitHub and Sites connector reads also succeeded.
Impact: Built-in command execution and browser-based webapp testing are blocked in this session.
Exact client build and root cause have not been verified. Observations collected directly by the assistant; no private paths, credentials or raw logs are included.