Skip to content

Windows Desktop WSL unified_exec_startup fails with ENOENT even with valid Linux-native cwd and bash #49969

Open

Description

@ecnirp3121

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/bash and 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 in source: "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

  1. In ChatGPT Desktop, switch to Codex.
  2. Settings → General → Agent environment → Windows Subsystem for Linux.
  3. Fully restart ChatGPT Desktop.
  4. Create a new Codex local task on DESKTOP-1V4J495.
  5. Use Linux-native working directory:

/home/harumasa/code/codex-test

  1. 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/bash exists and is executable.
  • /usr/bin/bwrap exists.
  • bubblewrap version: 0.11.1.
  • /usr/bin/unshare exists.
  • unshare -Ur true succeeds (userns-ok).
  • /home/harumasa/code/codex-test exists 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 doctor inside 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

  1. added
    bug
    app
    windows-os
    tool-calls
    on Oct 1, 2026
  2. ecnirp3121 commented on Oct 2, 2026

    @ecnirp3121
    Author

    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:

    • Agent environment: Windows Subsystem for Linux
    • Target computer: DESKTOP-1V4J495
    • Requested working directory: /home/harumasa/code/codex-test
    • Requested shell: /bin/bash
    • Command:
      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.

  3. urikarte commented on Oct 2, 2026

    @urikarte

    Independent reproduction with additional transcript evidence.

    Environment:

    • ChatGPT Windows UI: 26.928.31416
    • Windows package observed in the session path: OpenAI.Codex_26.928.3736.0_x64
    • Codex session cli_version: 0.159.2
    • Windows 11 Home 25H2, build 26200.9550
    • WSL: 3.0.1.0
    • WSL kernel: 6.18.40.1-1-microsoft-standard-WSL2
    • Ubuntu 24.04 / WSL2
    • Agent environment: Windows Subsystem for Linux
    • Default permissions enabled, Full Access disabled
    • Feedback/session ID: 01a0e7e2-e6e4-7381-93f3-0edc22faab20

    Controls already verified:

    • wsl --update reports the latest WSL is installed.
    • wsl --shutdown was performed.
    • Manual Ubuntu launch works normally.
    • In the same Ubuntu distro, /usr/bin/uname exists and /usr/bin/uname -s returns Linux.
    • Node 24.21.0 and npm 11.19.0 work in Ubuntu.
    • Reproduction still occurs from a Linux-native workspace under /home/<user>/code/urikarte-wsl-diagnostic, so the problem is not limited to a /mnt/c project cwd.

    Minimal agent reproduction:

    • Requested command: /usr/bin/uname -s
    • Tool input in the transcript:
      • cmd="/usr/bin/uname -s"
      • login=false
      • sandbox_permissions="use-default"
    • Result before command execution:
      Failed to create unified exec process: No such file or directory (os error 2)
    • No command stdout or process exit code was produced.

    Transcript details from the Linux-native workspace session:

    • thread_settings_applied switches cwd to /home/<user>/code/urikarte-wsl-diagnostic.
    • In that same event, runtime_workspace_roots still points at a Windows-mounted root under /mnt/c/Users/<user>/Documents/Codex.
    • The following turn_context has cwd=/home/<user>/code/urikarte-wsl-diagnostic.
    • workspace_roots includes the Linux-native project plus an auxiliary /mnt/c/.../.codex/visualizations/... path.
    • runtime_workspace_roots is absent/empty in the turn_context.
    • Active permission profile is ::workspace.
    • Searching the initialization portion of this fresh session found no explicit bubblewrap, bwrap, or user namespace startup 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions