`bunx @openai/codex@0.54.0-alpha.3` (and above) on `WSL2` is crashing

Resolved 💬 6 comments Opened Nov 4, 2025 by CetinSert Closed Nov 4, 2025

What version of Codex is running?

  • ✔️ 0.54.0-alpha.2
  • 0.54.0-alpha.3
  • 0.54.0

with bun 1.3.1 on WSL2 2.6.1.0.

What subscription do you have?

PRO

Which model were you using?

_No response_

What platform is your computer?

Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 x86_64

What issue are you seeing?

118 |   detectPackageManager() === "bun"
119 |     ? "CODEX_MANAGED_BY_BUN"
120 |     : "CODEX_MANAGED_BY_NPM";
121 | env[packageManagerEnvVar] = "1";
122 |
123 | const child = spawn(binaryPath, process.argv.slice(2), {
                    ^
ENOENT: no such file or directory, posix_spawn '/tmp/bunx-1000-@openai/codex@0.54.0-alpha.3/node_modules/@openai/codex/vendor/x86_64-unknown-linux-musl/codex/codex'
      path: "/tmp/bunx-1000-@openai/codex@0.54.0-alpha.3/node_modules/@openai/codex/vendor/x86_64-unknown-linux-musl/codex/codex",
   syscall: "spawn /tmp/bunx-1000-@openai/codex@0.54.0-alpha.3/node_modules/@openai/codex/vendor/x86_64-unknown-linux-musl/codex/codex",
     errno: -2,
 spawnargs: [],
      code: "ENOENT"

      at spawn (node:child_process:669:35)
      at spawn (node:child_process:14:39)
      at /tmp/bunx-1000-@openai/codex@0.54.0-alpha.3/node_modules/@openai/codex/bin/codex.js:123:15

What steps can reproduce the bug?

bunx @openai/codex@0.54.0-alpha.3

What is the expected behavior?

It should just run as it was doing with earlier versions up to and including 0.54.0-alpha.2!

Additional information

bun -v (version) → 1.3.1

wsl -v
WSL version: 2.6.1.0
Kernel version: 6.6.87.2-1
WSLg version: 1.0.66
MSRDC version: 1.2.6353
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26200.6901

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗