Skip to content

Commit c682718

Browse files
docs(claude-code): explain the prerelease version pin (#276)
Expands the version comment in `packages/claude-code/default.nix` to record why we pin the npm `next` prerelease build directly: the built-in updater, `claude doctor`, and sadjow/claude-code-nix all track `latest` (stable), so at the Opus 4.8 launch none surfaced 2.1.154 even though it was the first build to default `/fast` to Opus 4.8. Comment-only; no derivation change.
1 parent 9a60377 commit c682718

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

packages/claude-code/default.nix

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,17 @@
1212
}:
1313

1414
let
15-
# 2.1.154 is the `next` prerelease channel (npm dist-tag `next`); the
16-
# `latest` stable channel is still 2.1.153. It is the first build that
17-
# defaults `/fast` to Opus 4.8, which is why it is pinned here ahead of
18-
# the stable promotion. Bump by re-prefetching each platform binary:
15+
# Pinned to a prerelease build on purpose. Anthropic publishes new Claude
16+
# Code versions to the npm `next` (prerelease) tag days before promoting
17+
# them to `latest` (stable), and every channel that normally surfaces an
18+
# upgrade only watches `latest`: the built-in `claude` auto-updater and
19+
# `claude doctor` both reported "up to date", and sadjow/claude-code-nix
20+
# (the usual Nix source) tracks stable too. At the Opus 4.8 launch 2.1.154
21+
# sat on `next` while everything else still showed 2.1.153, yet 2.1.154 is
22+
# the first build that defaults `/fast` to Opus 4.8. Fetching the platform
23+
# binary directly by version is the only way to pin ahead of the stable
24+
# promotion. When `latest` catches up, this can fall back to a channel that
25+
# tracks stable. Bump by re-prefetching each platform binary:
1926
# nix store prefetch-file --json \
2027
# https://downloads.claude.ai/claude-code-releases/<version>/<slug>/claude
2128
version = "2.1.154";

0 commit comments

Comments
 (0)