Repository navigation
Description
Related existing issue
This appears related to #27553, but this report adds several diagnostics that narrow the failure beyond the WSL UNC/workspace-mapping hypothesis described there.
In this reproduction:
- The failure also occurs with an explicitly specified Linux-native working directory:
/home/harumasa/code/codex-test - The raw Codex Desktop session shows that
/bin/bashand the Linux-native cwd are correctly passed to the execution layer. - The failure occurs specifically at:
source: "unified_exec_startup" /bin/bash,bwrap,unshare, unprivileged user namespaces, non-interactive WSL execution, and the WSL PATH have all been independently verified as working.- Setting
[features] unified_exec = false, fully restarting Desktop, and creating a new session still results insource: "unified_exec_startup"and the same ENOENT. - No local project, requirements, or managed-config override re-enabling unified exec was found.
Therefore this may share the same underlying bug as #27553, but the additional evidence suggests the failure is not limited to a WSL UNC working-directory mapping problem.
Summary
Codex Desktop on Windows fails to start any command when Agent environment is set to Windows Subsystem for Linux.
The Desktop app correctly configures the session as WSL, passes /bin/bash and a valid Linux-native working directory to exec_command, but process creation fails immediately at unified_exec_startup with:
Failed to create unified exec process: No such file or directory (os error 2)
Normal WSL execution works, including non-interactive WSL invocation from Windows. /bin/bash, bwrap, unshare, user namespaces, and the Linux-native working directory have all been independently verified.
Environment
Windows:
10.0.26200.9550
ChatGPT Windows Desktop:
26.928.3736.0
Microsoft Store product:
9PLM9XGG6VKS
Codex Desktop session metadata:
cli_version 0.159.2
WSL:
2.7.3.0
Distribution:
Ubuntu / WSL2
WSL kernel after update:
6.18.40.1-microsoft-standard-WSL2
Agent environment:
Windows Subsystem for Linux
Minimal reproduction
- In ChatGPT Desktop, switch to Codex.
- Settings → General → Agent environment → Windows Subsystem for Linux.
- Fully restart ChatGPT Desktop.
- Create a new Codex local task on DESKTOP-1V4J495.
- Use Linux-native working directory:
/home/harumasa/code/codex-test
- Run:
pwd; uname -a; echo $WSL_DISTRO_NAME
Expected
The command starts under /bin/bash in Ubuntu/WSL2 and prints the Linux working directory, kernel information, and Ubuntu.
Actual
The command never starts.
The raw session transcript records:
command:
["/bin/bash","-c","pwd; uname -a; echo $WSL_DISTRO_NAME"]
cwd:
file:///home/harumasa/code/codex-test
source:
unified_exec_startup
status:
failed
stderr:
Failed to create unified exec process: No such file or directory (os error 2)
exit_code:
-1
Verified working outside Codex Desktop unified exec
The following have been independently verified:
- Ubuntu WSL2 starts normally.
- WSL is fully updated.
/bin/bashexists and is executable./usr/bin/bwrapexists.- bubblewrap version: 0.11.1.
/usr/bin/unshareexists.unshare -Ur truesucceeds (userns-ok)./home/harumasa/code/codex-testexists and is accessible./mnt/c/...working directories are also accessible.- Non-interactive WSL execution from Windows works.
- Non-interactive PATH is intact, including Windows PATH entries containing spaces.
- Non-interactive WSL resolves bash, bwrap and unshare successfully.
- Codex CLI run directly inside Ubuntu works.
codex doctorinside WSL previously reported:
21 ok · 1 notes · 0 warn · 0 fail.
unified_exec=false test
I added the documented user setting:
[features]
unified_exec = false
to:
C:\Users\harum.codex\config.toml
I fully restarted ChatGPT Desktop and created a new Codex WSL session.
However, the new raw session transcript still records:
source: "unified_exec_startup"
and fails with the same ENOENT.
I checked for local higher-precedence overrides:
- Project-level config under
%USERPROFILE%\Documents\Codex: no matching override. %USERPROFILE%\.codex\requirements.toml: no matching override.%USERPROFILE%\.codex\managed_config.toml: does not exist.%ProgramData%\OpenAI\Codex: no local managed config found.
A cloud-managed configuration layer cannot be inspected from the Windows client, so I cannot determine whether one is overriding the user feature flag.
Relevant IDs
Initial failed WSL Codex session:
01a0f6a7-515a-71e2-953c-06bfca5b47d9
Session after unified_exec=false:
01a0f739-2639-7571-af23-04256e4a09b1
Earlier diagnostic feedback ID:
01a0f11a-e48b-705e-b3e3-e5350bb5c01f
Environment ID:
ccarenv_b64_Y2NhcmVudl82YWJjZjdmNDNlZTg4MTkxOGQwYjlkNzZhMTg2ZWU2Nw
Additional context
This investigation originally started with Dot → local computer → WSL execution.
The Dot/local-task API issue later progressed far enough to invoke Windows commands, but Windows-native WSL invocation from that execution context returned:
Wsl/Service/E_ACCESSDENIED
I then switched the Codex Agent environment to WSL as recommended.
Direct Codex WSL tasks now fail earlier at unified_exec_startup with ENOENT as described above.
The direct Codex WSL failure is reproducible independently of the Dot.
No WSL permission changes, sandbox permission changes, Docker changes, or project changes were made while isolating this issue.
Activity
github-actions commentedon Oct 1, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
ecnirp3121 commentedon Oct 2, 2026
Update after ChatGPT Windows Desktop 26.930.21537
I retested this issue after the Windows desktop app automatically updated to:
ChatGPT 26.930.21537
Release date: 2026-10-02
The original Codex → WSL failure is still reproducible.
Test conditions:
pwd; uname -a; echo $WSL_DISTRO_NAME
The process again failed before command execution with:
Script failed
Wall time 0.2 seconds
Output:
Script error:
exec_command failed: CreateProcess { message: "Rejected("Failed to create unified exec process: No such file or directory (os error 2)")" }
No stdout, stderr from the requested command, or process exit code was available because process creation failed.
Therefore the issue originally reported in #49969 is still reproducible on 26.930.21537.
I also tested Dot local-computer access after the update.
The Purple Chronicle Dot profile recognizes:
DESKTOP-1V4J495 — "Your computer"
and the access-control icon currently says "Revoke access", confirming that the Dot already has access permission to this computer.
However, in one subsequent Dot test the task reported that the Windows local-computer execution API was not available to that chat, so cmd.exe was not invoked.
This is a separate observation from the reproducible Codex → WSL unified_exec_startup ENOENT above.
For the Codex WSL issue, 26.930.21537 has therefore not resolved the reported failure.
urikarte commentedon Oct 2, 2026
Independent reproduction with additional transcript evidence.
Environment:
Controls already verified:
wsl --updatereports the latest WSL is installed.wsl --shutdownwas performed./usr/bin/unameexists and/usr/bin/uname -sreturnsLinux./home/<user>/code/urikarte-wsl-diagnostic, so the problem is not limited to a/mnt/cproject cwd.Minimal agent reproduction:
/usr/bin/uname -scmd="/usr/bin/uname -s"login=falsesandbox_permissions="use-default"Failed to create unified exec process: No such file or directory (os error 2)Transcript details from the Linux-native workspace session:
thread_settings_appliedswitchescwdto/home/<user>/code/urikarte-wsl-diagnostic.runtime_workspace_rootsstill points at a Windows-mounted root under/mnt/c/Users/<user>/Documents/Codex.turn_contexthascwd=/home/<user>/code/urikarte-wsl-diagnostic.workspace_rootsincludes the Linux-native project plus an auxiliary/mnt/c/.../.codex/visualizations/...path.runtime_workspace_rootsis absent/empty in theturn_context.::workspace.bubblewrap,bwrap, oruser namespacestartup warning. (I have not installed bubblewrap in this reproduction.)So, on this machine the Linux command exists and works manually, the agent receives a valid Linux-native cwd, but process creation still fails at the unified-exec boundary.
This looks very close to the class of failures already described here. I have not applied helper-repair scripts, AppArmor changes, Full Access, or other bypasses. If useful, I can provide narrowly scoped/redacted session fields rather than the full transcript.