Skip to content

Windows app 26.928.21956: WSL sandbox fails with No such file or directory (os error 2) #49789

Open

Description

@CFLeung123

What version of the Codex App are you using (From “About Codex” dialog)?

26.928.21956 (Powered by Codex & OWL, released 2026-09-30)

What subscription do you have?

ChatGPT plus

What platform is your computer?

No response

What issue are you seeing?

Description

After updating the ChatGPT Windows app to version 26.928.21956 (released 2026-09-30), Codex can no longer reliably start the WSL sandbox.

Commands such as:

uname -a

or:

/bin/bash -lc 'uname -a'

often fail before execution with:

No such file or directory (os error 2)

The issue is intermittent: one /bin/bash command succeeded in /tmp, but later commands failed again.

Environment

  • Windows 11
  • WSL2
  • Ubuntu 24.04.5
  • WSL kernel: 6.18.33.2-microsoft-standard-WSL2
  • bubblewrap 0.9.0
  • ChatGPT Windows app: 26.928.21956

Direct bubblewrap test succeeds:

bwrap --ro-bind / / /bin/true
echo $?

returns:

0

The bundled WSL Codex backend also exists under:

%USERPROFILE%\.codex\bin\wsl\<hash>\

Suspicious behavior

After deleting %USERPROFILE%\.codex\tmp\arg0, shutting down WSL, and restarting the app, Codex recreates the arg0 directory with only:

.lock
applypatch.bat
apply_patch.bat

There is no visible:

codex-linux-sandbox
codex-execve-wrapper

even though WSL mode is enabled.

My config is:

approval_policy = "on-request"
sandbox_mode = "workspace-write"

[desktop]
integratedTerminalShell = "wsl"
runCodexInWindowsSubsystemForLinux = true

[features]
unified_exec = false
shell_snapshot = true

The same WSL environment worked before the app update.

This looks like a regression in the Windows app's WSL sandbox/helper startup rather than a WSL or bubblewrap problem.

What steps can reproduce the bug?

After updating the ChatGPT Windows app to version 26.928.21956, Codex can no longer reliably start the WSL sandbox.

Steps to reproduce:

Enable WSL mode in Codex.

Open a project located inside the WSL Ubuntu filesystem.

Start a new Codex session.

Ask Codex to run:

uname -a

or:

/bin/bash -lc 'uname -a'

The command frequently fails before execution with:

No such file or directory (os error 2)

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    app
    on Oct 1, 2026
  2. added
    bug
    windows-os
    sandbox
    on Oct 1, 2026
  3. bluezlam commented on Oct 1, 2026

    @bluezlam

    I can reproduce this on the Windows desktop app 26.928.21956 (build 12404), with WSL2 Ubuntu 24.04.4 and kernel 6.18.33.2-microsoft-standard-WSL2.

    Additional diagnostic evidence (personal and project paths redacted):

    • Windows-native agent execution works. The WSL agent fails before running even pwd or ls.
    • Approved, unsandboxed read-only commands inside the same WSL environment succeed; /bin/bash, /bin/sh, and the project directory exist.
    • With a PTY enabled, the tool exposes the missing executable explicitly:
      Unable to spawn /mnt/c/Users/<user>/.codex/tmp/arg0/codex-arg0<id>/codex-linux-sandbox because it doesn't exist on the filesystem (ENOENT: No such file or directory).
    • After another startup, the random arg0 directory name changed, but the same failure recurred.
    • The running Linux Codex app-server retains a file descriptor pointing to the missing directory's .lock; /proc/<pid>/fdinfo/<fd> reports a POSIX advisory WRITE lock.
    • The referenced directory is absent from its parent's listing, and both stat and lstat return ENOENT. Attempting to recreate that exact directory returned EEXIST. The attempted repair therefore failed before any sandbox link was written.
    • The visible $CODEX_HOME/tmp/arg0 contents contain a different directory with only .lock, applypatch.bat, and apply_patch.bat.
    • CODEX_HOME for the running WSL app-server is the Windows-mounted /mnt/c/Users/<user>/.codex. The mount is DrvFS/9p.
    • A short-lived diagnostic startup using an isolated temporary Codex home successfully created the Linux sandbox helper symlink.
    • Startup logs also report a missing bundled codex-resources/bwrap, while /usr/bin/bwrap exists in WSL. It is not established that this warning causes the missing arg0 helper.

    These observations suggest a helper-directory lifecycle or cross-platform cleanup/locking issue, but we have not identified the deleting process or proven the root cause. No configuration reset or permanent sandbox-policy change was used.

  4. mdpwbe-sys commented on Oct 1, 2026

    @mdpwbe-sys

    persists on Windows app 26.928.2636.0 with WSL2 / Ubuntu 24.04.4
    I can reproduce the same failure on a newer Windows Codex app build than the one in the original report.
    Timeline

    • On 2026-09-30 around 18:00 local time, Codex Desktop + WSL was working normally for me.
    • Around 22:00 the same day, WSL command execution stopped working.
    • I did not change the project, WSL configuration, shell, or relevant Codex settings between those two points.
      Environment
    • Windows 11
    • WSL2
    • Ubuntu 24.04.4
    • Codex Windows Desktop app: 26.928.2636.0
    • Windows Codex CLI: 0.159.3
    • WSL Codex CLI: updated from 0.155.1 to 0.159.3
      WSL itself is healthy
      Direct WSL execution from Windows works:
      wsl -l -v

    NAME STATE VERSION
    Ubuntu Running 2
    Direct tests inside WSL also succeed:
    USER: *
    HOME: /home/*
    Codex: /home/*/.local/bin/codex
    Version: codex-cli 0.159.3
    Project directory exists
    Project directory is writable
    The standalone Codex CLI launched inside Ubuntu/WSL also starts normally and can respond to prompts.
    So /bin/bash, WSL, the Linux filesystem, the project directory, and the standalone Linux Codex CLI are all functional outside the Desktop app.
    Desktop app failure
    Inside Codex Desktop, the affected chat cannot execute even the most basic Linux shell command.
    I asked it to retest after verifying WSL manually. The agent reported:
    The retest still fails in this chat: three attempts, including /bin/bash
    inside the project and /bin/sh from /tmp, return "No such file or directory"
    before the command is even executed.

    No application terminal is attached to this chat.
    This is important because the failure occurs before the requested shell command runs.
    Changing the working directory does not help:

    • /bin/bash from the WSL project -> No such file or directory
    • /bin/sh from /tmp -> No such file or directory
      The same shells work normally when invoked directly in WSL.
      What this seems to isolate
      At least on my machine, the failure appears isolated to the Windows Desktop app -> WSL terminal/runtime attachment path, rather than to:
    • WSL itself
    • Ubuntu
    • /bin/bash or /bin/sh
    • project permissions
    • the project filesystem
    • the standalone Codex CLI inside WSL
      The Desktop chat specifically appears to have no usable application terminal attached to it.
      Other diagnostics already performed
    • Updated both Windows and WSL Codex CLI to 0.159.3.
    • Verified the WSL project directory exists and is writable.
    • Verified direct WSL shell execution works.
    • Verified standalone Codex in WSL can run interactively.
    • Windows-side Codex connectivity checks were otherwise reachable.
    • A separate node_repl MCP path problem was disabled/fixed, with no effect on this WSL Desktop failure.
    • Failed Desktop attempts did not modify project files.
      Possibly useful version/update detail
      The installed Desktop app reports 26.928.2636.0.
      On my machine, the Windows update manifest advertised 26.928.3736.0, but the stable x64 MSIX endpoint still served package version 26.928.2636.0, so I could not test whether 26.928.3736.0 fixes this.
      Why this may be useful
      The original report is on 26.928.21956; this reproduces the same class of failure on 26.928.2636.0.
      The strongest signal from my case is that the exact same WSL environment works from a normal terminal and from the standalone WSL Codex CLI, while Codex Desktop fails before spawning /bin/bash or /bin/sh and reports that no application terminal is attached to the chat.
      If useful, I can provide a focused Desktop log capture immediately after reproducing the failure.
  5. notmgsk commented on Oct 1, 2026

    @notmgsk

    Same!

  6. ttcat98 commented on Oct 1, 2026

    @ttcat98

    I’m seeing the same failure and reproduced a possible cause involving Windows and WSL sharing CODEX_HOME.

    Environment

    • Windows desktop app: 26.928.31416, build 12553; updater reports up to date.
    • Bundled WSL Codex backend: 0.159.2.
    • WSL2, Ubuntu 22.04, x86_64.
    • bubblewrap: 0.6.1.
    • Agent environment: WSL.
    • CODEX_HOME: /mnt/c/Users/<user>/.codex, shared with Windows.

    Even pwd fails before execution:

    Failed to create unified exec process:
    No such file or directory (os error 2)
    

    The same command succeeds with approved execution outside the sandbox.

    Observed launcher state

    The running Linux Codex process still holds an open .lock file under:

    $CODEX_HOME/tmp/arg0/codex-arg0<id>/.lock
    

    However, that directory and its codex-linux-sandbox and codex-execve-wrapper launchers no longer exist. The remaining directory contains Windows helpers such as apply_patch.bat and applypatch.bat.

  7. 1stnighthawk commented on Oct 1, 2026

    @1stnighthawk

    I can reproduce what appears to be the same issue after updating to an even newer ChatGPT Desktop build.

    Environment

    • Windows 11
    • WSL2
    • ChatGPT Desktop: 26.928.31416 (Powered by Codex & OWL, released Sep 30, 2026)
    • WSL shell: /usr/bin/bash
    • Workspace: /home/.../myproject
    • WSL Codex backend: %USERPROFILE%\.codex\bin\wsl\65bf23c0b8844a0d\codex
      WSL2 OS:
      PRETTY_NAME="Ubuntu 26.04.1 LTS"
      NAME="Ubuntu"
      VERSION_ID="26.04"
      VERSION="26.04.1 LTS (Resolute Raccoon)"
      VERSION_CODENAME=resolute

    The bundled WSL Codex binary exists and is executable:

    /mnt/c/Users/nighhawks/.codex/bin/wsl/65bf23c0b8844a0d/codex
    

    However, even a simple request such as:

    Run `pwd` in my WSL environment.
    

    fails before command execution. Codex reports:

    I couldn’t run `pwd`: the WSL command runner failed to start with “No such file or directory.”
    

    WSL itself is healthy. From a normal WSL terminal, /usr/bin/bash, the repository, Git, and normal shell commands work correctly.

    I also checked:

    find /mnt/c/Users/nighhawks/.codex/tmp/arg0/ -maxdepth 2 -type f -o -type l

    The generated arg0 directory contains only:

    .lock
    applypatch.bat
    apply_patch.bat
    

    There is no:

    codex-linux-sandbox
    codex-execve-wrapper
    apply_patch
    applypatch
    

    Restarting WSL, restarting the Desktop app, starting a new Codex conversation, and updating ChatGPT Desktop to 26.928.31416 did not resolve the issue.

    This same WSL development environment was working normally with Codex before this regression.

    Since #49789 originally reports 26.928.21956, I wanted to confirm that the issue still reproduces for me on 26.928.31416.

  8. 1stnighthawk commented on Oct 2, 2026

    @1stnighthawk

    Update: I installed the newer ChatGPT Desktop version 26.928.40906 (released Oct 1, 2026), restarted WSL2, and restarted ChatGPT Desktop.

    Unfortunately, the issue still reproduces exactly as before. Codex still cannot start the WSL command runner, while WSL itself continues to work normally.

    So this issue is still present for me in 26.928.40906.

  9. DdavidC commented on Oct 2, 2026

    @DdavidC

    The same as @1stnighthawk . Asking Codex Desktop to run a single pwd will get this:

    $ pwd
    Failed to create unified exec process: No such file or directory (os error 2)
    
  10. 1stnighthawk commented on Oct 2, 2026

    @1stnighthawk

    Update: I just installed the newer ChatGPT Desktop Version 26.930.21537 (released Oct 1, 2026), restarted WSL2, and restarted ChatGPT Desktop.

    Unfortunately, the issue still reproduces exactly as before. Codex still cannot start the WSL command runner, while WSL itself continues to work normally.
    For reference, I have now reproduced the same issue on the following versions:

    26.928.31416
    26.928.40906
    26.930.21537

    So the WSL command-runner issue is still present for me in 26.930.21537.

  11. andreasneupert-alloqis commented on Oct 5, 2026

    @andreasneupert-alloqis

    For me it is still present in 26.930.41038 from 03.10.

  12. fsid commented on Oct 10, 2026

    @fsid

    Issue persists still on 26.1007.21434

  13. sbviltd commented on Oct 13, 2026

    @sbviltd

    Issue still persists on 14/10/2026 with no workaround, have tested a few listed in other bug reports too, no success

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

    appbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions