Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.277 ·

Update-check version responses are now validated as semver before use

Update checks now validate that version strings from GCS, npm, Homebrew and the binary repo actually look like versions

TierYou'll noticehow much it should matter to you
Useful2my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaUpdaterwhat it touches
KindBug Fixesin v2.1.277,
You'll notice

Update checks now validate that version strings from GCS, npm, Homebrew and the binary repo actually look like versions

What

When Claude Code checks for updates, it fetches a version string from sources like Google Cloud Storage (GCS), npm, and Homebrew. Previously it would trust whatever string came back; now it validates that the string is a properly formed version number (using semver, the standard versioning scheme) before using it. If the response is invalid, it's logged (truncated to 300 characters) and treated as no result rather than acted on. The same validation was added to the logic that compares a target version against the current one to decide whether to skip an update check.

  • GCS, npm-view, and Homebrew version fetches are now validated before use
  • The binary-repo version check now throws an error if the fetched value doesn't look like a version, instead of silently accepting it
Why

This prevents a malformed or unexpected response from a version-check endpoint from being mistaken for a real version and causing incorrect update behavior.

See this entry in the whole of v2.1.277 →