dotsfeed
โ† Updates

Codexv0.166.0

Ran `codex update` and saw ๐ŸŽ‰? Check your version actually changed

Verifiedยท Oct 30, 2026Published Oct 30, 2026

On npm installs, `codex update` can still print success when nothing was upgraded. Compare versions before and after, and pin 0.166.0 if it didn't move.

What changed

Codex CLI 0.166.0 (released Oct 29) fixes half of a long-running false-success bug. Before, the standalone Unix updater piped the install script straight into the shell, so a failed download left an empty script that "succeeded" and Codex printed "Update ran successfully!". In 0.166.0 the standalone updater now stops and reports the error when the download fails (GitHub PR #57208, "Propagate installer download failures in standalone Unix updates").

npm installs are not fixed. There Codex runs npm install -g @openai/codex and treats any clean npm exit as success without comparing versions. Two open GitHub issues describe it: #16488 (npm min-release-age quietly keeps you on an older build while Codex reports success) and #37241 (Codex says it updated and asks for a restart when you were already up to date). @CodexUpdate reproduced both on a clean Linux box.

Who is affected

Anyone who installed the Codex CLI through npm and updates with codex update, especially if npm has a release-age delay or similar policy set. Standalone (curl installer) users on 0.166.0 now get a real error instead.

What to do now

Check that the version actually moved:

b=$(codex --version); codex update; a=$(codex --version); echo "$b -> $a"

If it didn't, install the release explicitly with npm i -g @openai/codex@0.166.0. With an npm release-age gate on, that command fails loudly instead of quietly installing something older.

What is not confirmed

OpenAI hasn't said when the npm path will check versions after updating. The repro is @CodexUpdate's own test; the two npm issues were still open when we checked.

Sources:

Sources

Get updates like this every morning

  1. โ‘  Email
  2. โ‘ก Card on Stripe
  3. โ‘ข 7 days free

Then $2/month ยท cancel anytime in one click