Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.223 ·

Usage-stats cache is sanitised on load

A corrupted stats file no longer shows NaN in your usage and cost display.

You'll notice Bug Fixes
JSON All of v2.1.223
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
Usage & LimitsArea: what it touches
Bug FixesKind: in v2.1.223,
Bug FixesSection of the release
What

A corrupt or partially written stats cache no longer produces NaN in the usage display.

Details
  • After structural validation, the cache passes through a normaliser.
  • Every per-model counter is coerced to a number defaulting to 0: input and output tokens, cache reads, cache creation, web search requests, cost, context window and max output tokens.
  • Unrecognised model keys are dropped, as are hour buckets whose value is not numeric.
  • A cache that fails structural validation still returns empty.
Evidence

Stats cache has invalid structure, returning empty cache

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.223 →

Feedback