Skip to content

Windows/WSL2: sandboxed execution fails because temporary codex-linux-sandbox launcher is missing #50078

Closed as duplicate

Description

@Torque475

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

Desktop build not captured. Last verified bundled WSL agent: codex-cli 0.159.2 (before reinstall); post-reinstall version unconfirmed.

What subscription do you have?

Not included in diagnostic summary

What platform is your computer?

Windows desktop app using the WSL agent. WSL kernel: 6.18.40.1-microsoft-standard-WSL2. Windows build and WSL distribution version not captured.

What issue are you seeing?

Normal local task execution is blocked in Codex desktop's WSL agent, including a simple pwd command. The failure was observed after an update and persists after reinstall; the update's role is not yet established.

Standard execution fails:

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

With tty=true, the error identifies a missing executable (username and generated suffix anonymized):

Unable to spawn
/mnt/c/Users/<USER>/.codex/tmp/arg0/codex-arg0<generated-id>/codex-linux-sandbox
because it doesn't exist on the filesystem (ENOENT: No such file or directory)

Local diagnostic findings:

  • Windows-native agent execution works.
  • Bash launched externally through WSL works.
  • Approved execution outside the sandbox worked.
  • Direct bundled-binary invocation, codex sandbox -- /bin/pwd, worked.
  • Desktop sandboxed execution fails with explicit /tmp and with the correct project directory.
  • Filesystem inspection confirmed a reported launcher directory was missing.
  • The temporary path changes across restarts, but the failure recurs.

What steps can reproduce the bug?

In a Codex desktop task using the WSL agent, run exec_command with:

{
  "cmd": "pwd",
  "shell": "/bin/bash",
  "login": false,
  "workdir": "/tmp",
  "sandbox_permissions": "use_default"
}

Repeat with "tty": true to expose the missing launcher path.

What is the expected behavior?

The command runs within the sandbox and prints /tmp.

Additional information

Recovery attempts: fresh chats, full reboot, native/WSL mode switching, restart/update attempts, and a fresh app install did not resolve it. Post-reinstall tests still fail.

Mode switching also produced a malformed working directory combining the app installation path with a Windows-prefixed WSL project path. This does not explain failure with explicit /tmp.

In-app reporting returned "Feedback upload not confirmed"; receipt is unknown.

Please investigate creation, cleanup, retention, and resolution of the temporary codex-linux-sandbox launcher. Its absence was observed; why it is missing remains unconfirmed.

Related: #50025 reports the same high-level WSL2 execution error with bundled Codex 0.159.2, but its diagnostics identify a missing bwrap resource. This report adds the specifically missing temporary codex-linux-sandbox launcher and successful direct bundled sandbox invocation. A common root cause is unverified.

Activity

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

    @Torque475
    Author

    Closing as a duplicate of #49731 to consolidate investigation. Additional diagnostic evidence has been cross-linked there: #49731 (comment)

    This closure does not indicate a fix. The missing launcher remains unresolved on my installation, and the temporary recovery has not yet been verified here.

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