You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(cli): align pi/gemini/claude-code token edge cases with ccusage
- pi: an explicit totalTokens can now only ADD tokens the parts don't account for,
never shrink the parts sum (ccusage apply_total_token_fallback) — fixes both
total-only records counting 0 output and a small explicit total undercounting.
- gemini: treat empty/whitespace id and sessionId as absent (new nonEmptyStringField,
mirroring ccusage non_empty_string) so distinct events are not collapsed and
sessions are attributed correctly; a present messages[] array no longer falls
through to the stats branch.
- claude-code: drop the synthetic "<synthetic>" model so it does not create a bogus
per-model bucket.
0 commit comments