You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: @openai/codex 0.115.0 fails on macOS Apple Silicon with missing optional dependency @openai/codex-darwin-arm64 #14844
@openai/[email protected] installs the wrapper package, but @openai/codex-darwin-arm64 is not present in a usable form afterwards.
@openai/[email protected] installs correctly on the same machine and codex --version works.
The published variant version appears to exist on npm (0.115.0-darwin-arm64), so this looks like a packaging / optional dependency regression in 0.115.0 on macOS ARM64.
Confirmed regression on 0.115 not just on MacOS but also (at least some) Linux.
I encounted the same issue on Linux Mint 21.3 (based on Ubuntu 22.04 LTS). 0.115 fails, downgrade to 0.114 works fine. Previous versions also worked fine.
Using Node 24.14.0
Error: Missing optional dependency @openai/codex-linux-x64. Reinstall Codex: npm install -g @openai/codex@latest at file:///home/brozkeff/.local/lib/node_modules/@openai/codex/bin/codex.js:100:11 at ModuleJob.run (node:internal/modules/esm/module_job:430:25) at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:661:26) at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5)
Node.js v24.14.0
I checked the published 0.115.0 package path pretty closely, and I could not reproduce this as a universal release break on macOS arm64.
npm view @openai/[email protected] optionalDependencies --json still shows the expected platform aliases, including @openai/codex-darwin-arm64 and @openai/codex-linux-x64
npm pack on the published 0.115.0-darwin-arm64 and 0.115.0-linux-x64 artifacts shows the expected vendored native binary + rg
on my macOS arm64 machine with Node v24.10.0 / npm 11.6.0, both of these worked:
and, from the installed Codex location, whether the platform package is actually present under the expected nested path:
ls -R $(npm root -g)/@openai/codex/node_modules/@openai
That would tell us whether the regression is "npm never installed the aliased optional package" vs "the launcher can't resolve a package that is present".
Previous behaviour could be somehow incorrectly downloaded update via npm install leving the package in inconsistent state. Perhaps @TholeG could now test again the Mac version, the issue may have been something temporary in the npm backend.
Activity
brozkeff commentedon Mar 17, 2026
Confirmed regression on 0.115 not just on MacOS but also (at least some) Linux.
I encounted the same issue on Linux Mint 21.3 (based on Ubuntu 22.04 LTS). 0.115 fails, downgrade to 0.114 works fine. Previous versions also worked fine.
Using Node 24.14.0
SproutSeeds commentedon Mar 18, 2026
I checked the published
0.115.0package path pretty closely, and I could not reproduce this as a universal release break on macOS arm64.npm view @openai/[email protected] optionalDependencies --jsonstill shows the expected platform aliases, including@openai/codex-darwin-arm64and@openai/codex-linux-x64npm packon the published0.115.0-darwin-arm64and0.115.0-linux-x64artifacts shows the expected vendored native binary +rgv24.10.0/ npm11.6.0, both of these worked:@openai/[email protected]0.114.0to0.115.0@openai/codex-darwin-arm64, andnode .../bin/codex.js --versionlaunched successfully ascodex-cli 0.115.0So the narrow claim I can support is:
0.115.0platform tarballnode_modulestreeThe most useful next evidence from affected machines would be:
and, from the installed Codex location, whether the platform package is actually present under the expected nested path:
ls -R $(npm root -g)/@openai/codex/node_modules/@openaiThat would tell us whether the regression is "npm never installed the aliased optional package" vs "the launcher can't resolve a package that is present".
brozkeff commentedon Mar 19, 2026
I cannot replicate it anymore, currently the update to 0.115.0 on Linux passed and codex works:
initial state on linux
upgrade to v0.115.0
result
Codex 0.115.0 now runs fine on Linux.
Previous behaviour could be somehow incorrectly downloaded update via npm install leving the package in inconsistent state. Perhaps @TholeG could now test again the Mac version, the issue may have been something temporary in the npm backend.