Under the hoodTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
TelemetryArea: what it touches
Bug FixesKind: in v2.1.273,
Bug FixesSection of the release
What
When Claude Code tallies up token usage during an agent's turn, it now checks the shape of the usage data first: it requires input_tokens to be a number, and treats a missing or null output_tokens as 0. Only after this check does it sum input, cache-creation, cache-read, and output tokens, instead of summing the raw values directly.
Why
This guards against malformed or incomplete usage data silently corrupting token counts or causing errors, keeping usage totals reliable.