Claude Code v2.1.223 ·
Stats cache is sanitised before it is trusted
Corrupt usage-stats cache is repaired or rebuilt instead of showing you garbage numbers.
You'll noticeTier: how much it should matter to you
2Useful: 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
The cached usage-stats aggregate is normalised defensively on load, and falls back to a full rescan when it cannot be repaired.
Details
- Non-finite numbers are coerced to 0.
__proto__ model keys are dropped.- Dates must survive a strict
YYYY-MM-DD round-trip to be accepted. - If no usable date can be recovered, aggregates are reset for a full rescan and a debug line is emitted.
Evidence
resetting aggregates for a full rescan
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 →