Token usage now includes a thinking-token count, accumulated correctly in both streaming and non-streaming modes.
What's wrong with this entry?
Token usage now carries an output_tokens_details object with a thinking_tokens field, parsed from responses and combined correctly across both streaming and non-streaming accumulation.
- The zero-usage baseline starts at
{ thinking_tokens: 0 }. thinking_tokensmay be null, and placeholder or synthetic usage records setoutput_tokens_detailsto null.
output_tokens_details
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.221
Session state moves onto a pluggable storage backend
Both mention usage
-
v2.1.235
Usage breakdown now attributes usage to subagents
Both mention usage