Repository navigation
Description
Summary
On October 18, 2026, Codex Desktop on Windows x64 failed before running any requested command with:
Failed to resolve full path of the current executable [%USERPROFILE%\.cache\codex-runtimes\codex-primary-runtime\dependencies\native\powershell\pwsh.exe]
Tool exit code: -2147450747 / 0x80008085.
The logical runtime path %USERPROFILE%\.cache\codex-runtimes is redirected to another volume, D:\<redacted>\Codex-Runtimes. Both the bundled pwsh.exe file and its containing directory exist. Read-only stat and realpath from the Codex-provided Node REPL resolve the alias to the D: target. Outside Codex, the same bundled PowerShell is Authenticode-signed by Microsoft and successfully runs $PSVersionTable.PSVersion.ToString() (7.6.5, exit code 0).
Reproduction and evidence
- In a local Codex Desktop workspace on D:, with its ordinary on-request approval and workspace-scoped sandbox, request
Get-Locationusing the standard PowerShell shell. It fails before emitting command output. - Request one diagnostic tool invocation with the
shellparameter explicitly set to the canonical D: path ofcodex-primary-runtime\dependencies\native\powershell\pwsh.exe, the existing workspace ascwd,login=false, and command$PSVersionTable.PSVersion.ToString(). - The recorded tool request includes the canonical D: executable, but its response again gives exit
-2147450747and the error naming the logical C: executable. The command's execution and actual process image are unverified.
A session JSONL record confirms the canonical-path request on October 18 at approximately 21:16:26 UTC+03, with failure in the next second. The tool exposes combined output, not separate stdout/stderr.
Sandbox and permissions context
- A sandbox log from October 18 records
MXC availability: trueandWindows sandbox selection: mxc. Correlation of that selection to the exact canonical-path call has not independently been established. - Application configuration contains the enabled
prefer_mxcfeature. - The submitted permission description for the test included
:root = read, workspace-scoped writes, on-request/auto-reviewed approvals and disabled network access. No conflicting explicit deny rule was found in the inspected description. This is not proof of effective native MXC access. - The selected UI approval mode remained stable; no transition to Custom was observed.
- No changes to ACLs, sandbox backend, junctions, cache, or system settings were made.
Expected
The requested, existing, executable pwsh.exe should be resolved and launched within the effective sandbox policy, or the launcher should report the actual failing Windows operation and path, with a specific actionable diagnostic.
Questions for maintainers
Could you trace:
- Requested
shellargument vs internally selected bundled executable; - Normalization/resolution of a redirected
%USERPROFILE%runtime path to a D: target; - Effective MXC policy materialization for both paths;
- The Windows API call that fails before process startup and its native status?
The underlying failing operation and root cause remain unverified. This report should not be interpreted as evidence that junctions or MXC permissions necessarily cause the failure.
Related
- Windows Desktop: named managed permission profile changes to Custom on message submission; subsequent command startup fails #53363: same error text and
0x80008085, but a different reported permission-profile/UI scenario. - MXC fails before command launch when an unrelated BitLocker volume is locked #50915: MXC startup failures associated with BitLocker volume enumeration, different error signature.
No confidential files or raw logs are attached; personal paths are redacted.
Activity
Suonlim commentedon Nov 10, 2026
Additional Windows reproduction (2026-11-08, Singapore time). This appears to share the failure signature, but I have not verified the same underlying cause or any redirected runtime path.
Environment / evidence
MXC availability: trueandWindows sandbox selection: mxc. This establishes backend selection in that period, not the failing native operation.%USERPROFILE%\.cache\codex-runtimes\codex-primary-runtime\dependencies\native\powershell\pwsh.exe.Failed to resolve full path of the current executable [...\pwsh.exe]; tool exit code -2147450747 (0x80008085).pwsh.exe. The requested command never executes.access deniedorFailed to resolve full pathtext in the inspected entries.Interpretation: Independent host execution succeeds, so the binary is not universally unlaunchable. The failure may relate to Codex's process-launch context, effective MXC file visibility/access, path normalization, or .NET host startup. No first failing native API or OS access-denied status has been captured. In contrast to the original report here, no path redirection/junction has been established on this machine. This is not evidence of a PowerShell 7.6.9-specific regression.
Request: Could maintainers investigate (1) the requested shell versus actual bundled executable choice, (2) the effective MXC access/path mapping for the executable and ancestors, and (3) the first failing native API and .NET host dependency lookup? Is there a supported diagnostic that captures these details without disabling the sandbox, changing ACLs, or deleting the runtime cache?
No cache changes, sandbox weakening, or elevated Codex execution were attempted. Desktop package, bundled CLI version and full Windows build are not yet established; they can be added separately if required.
Linda415 commentedon Nov 19, 2026
I reproduced the same error in a Codex task launched through ChatGPT Dot on a connected Windows PC on November 19, 2026. The task fails before running any command, including the read-only check
$PSVersionTable.PSVersion.ToString().Exit code:
-2147450747(0x80008085).pwsh.exemanually from Windows PowerShell with-NoProfilesucceeds and reports 7.6.9.login=falseand the default sandbox permissions give the same failure from both the Windows user directory and a project directory onD:.I haven’t verified the active Windows sandbox implementation or whether this shares the original report’s underlying cause. What diagnostics would help determine why the same executable starts manually but not in the remote task?