Skip to content

WSL2 sandbox commands fail with “No such file or directory” #50025

Closed as duplicate

Description

@LibrariusDei

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

26.928.3736.0

What subscription do you have?

ChatGPT Plus

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Subject: WSL sandbox commands fail after desktop update

Environment:

  • Windows 11 Home, 25H2, build 26200.9457, 64-bit.
  • Desktop app: 26.928.3736.0.
  • Bundled Codex: 0.159.2.
  • Agent running in WSL2.
  • Earlier app logs show version 26.928.2636.0.

Steps to reproduce:

  1. Open a local project stored in the WSL filesystem.
  2. Use workspace-write permissions.
  3. Ask Codex to run a basic command such as pwd.

Expected:
The command runs within the workspace sandbox without needing
approval to execute outside it.

Actual:
The command fails before execution:
“Failed to create unified exec process: No such file or directory
(os error 2).”

Retrying the same command outside the sandbox after explicit
approval succeeds. Repository reads also succeed through approved
execution.

Diagnostic evidence:
App startup logs show bundled_executable_relocation_failed
(ENOENT) for app/resources/codex-resources/bwrap. The source
resource and intended WSL runtime-cache destination are absent.
WSL’s /usr/bin/bwrap is installed and passes a direct sandbox test.

The workflow worked before the recent desktop update on
October 1, 2026. An update regression is suspected, but the exact
cause has not been confirmed.

What steps can reproduce the bug?

  1. Open a local project stored in the WSL filesystem.
  2. Use workspace-write permissions.
  3. Ask Codex to run a basic command such as pwd.

What is the expected behavior?

The command runs within the workspace sandbox without needing
approval to execute outside it.

Additional information

The workflow worked before the recent desktop update on
October 1, 2026.

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