claude_cli usage only reflects the last request #229

Open
opened 2026-11-21 12:37:01 +00:00 by johannes · 0 comments
Owner

Location: crates/hx-ai/src/claude_cli.rs (Done event)
What is hacky: billing/stats see only the last API request's usage.
Proper fix: split Done or add summed usage fields.
Original comment: "ponytail: billing/stats see the last request only; split Done if exact sums matter"

Found by the comment audit: the comment excusing this was deleted (see scripts/lint-comments.sh).

Location: crates/hx-ai/src/claude_cli.rs (Done event) What is hacky: billing/stats see only the last API request's usage. Proper fix: split Done or add summed usage fields. Original comment: "ponytail: billing/stats see the last request only; split Done if exact sums matter" Found by the comment audit: the comment excusing this was deleted (see scripts/lint-comments.sh).
johannes added the ai label 2026-11-21 12:37:01 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#229