Skip to content

Linux codex not updated correctly #41021

Open

Description

@Howchie

What version of Codex CLI is running?

0.150.1

What subscription do you have?

Plus

Which model were you using?

No response

What platform is your computer?

Ubuntu

What terminal emulator and version are you using (if applicable)?

No response

Codex doctor report

What issue are you seeing?

OpenAI released version 0.150.1 of @openai/codex to the npm registry with the latest tag, but the Linux binaries were not published for that version (only macOS 0.150.1-darwin-arm64 was published, while Linux remained on 0.150.0-linux-x64).

Because @openai/[email protected] specifies the optional dependency @openai/codex-linux-x64 as @openai/[email protected] (which 404s on npm), npm quietly skipped installing the native binary. When running codex, the launcher script failed to locate the binary.

The codex cli suggests the update, so most users will automatically update to a currently broken package.

What steps can reproduce the bug?

npm install -g @openai/codex@latest

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    bug
    on Aug 27, 2026
  2. added
    CLI
    on Aug 27, 2026
  3. coygeek commented on Oct 1, 2026

    @coygeek

    This still happens on current stable releases. The root @openai/codex package (which latest points to) is published before the platform packages in its optionalDependencies, even though #19389 changed the release workflow to publish the six platform tarballs before the root wrapper. Publish times from npm view @openai/codex time --json:

    Version Root package Platform packages published after the root package
    0.158.0 2026-09-28 05:12:20Z all six: linux-arm64 05:12:58Z, darwin-x64 05:13:17Z, win32-arm64 05:14:31Z, darwin-arm64 05:14:45Z, linux-x64 05:15:47Z, win32-x64 05:16:10Z
    0.160.0 2026-10-01 20:26:19Z win32-x64 20:26:42Z, win32-arm64 20:34:11Z (about 8 minutes later)

    During the 0.160.0 window, latest was already 0.160.0 while npm view @openai/[email protected] returned E404, and the win32-arm64 dist-tag still pointed at 0.159.3-win32-arm64.

    Observed impact on darwin-arm64 during the 0.158.0 release: npm install -g @openai/codex@latest exited 0, then codex --version failed with Missing optional dependency @openai/codex-darwin-arm64. Reinstalling 0.157.1 restored the CLI, and 0.158.0 installed correctly once its platform package was published.

    Expected: latest moves to a version only after every <version>-<os>-<arch> package in its optionalDependencies is published, so for each release every platform publish time precedes the root publish time. Related symptom reports: #47990, #24672.

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

    CLIbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions