Skip to content

fix tui daemon analytics#16

Merged
NMitchem merged 13 commits into
mainfrom
chore/daemon-analytics
Mar 20, 2026
Merged

fix tui daemon analytics#16
NMitchem merged 13 commits into
mainfrom
chore/daemon-analytics

Conversation

@NMitchem
Copy link
Copy Markdown
Collaborator

No description provided.

NMitchem added 11 commits March 19, 2026 17:40
Subscription users get $0 actual costs but still have token counts.
The parser now captures usage data when tokens exist even if
total_cost_usd is missing/zero. A new tokenUsage aggregation with
estimated API-equivalent cost is shown in the Cost tab when actual
cost data is absent.
The daemon runs Claude with --verbose which produces a JSON array of
events, not a single object. The parser now extracts the 'result' event
from the array, which fixes cost and token capture for all users.
The verbose JSON array parser fix (previous commit) means we now
capture actual cost and token data from the Claude CLI. The estimated
cost calculation from token counts is no longer needed.
@NMitchem NMitchem requested a review from a team as a code owner March 20, 2026 06:07
@NMitchem NMitchem merged commit c051ead into main Mar 20, 2026
1 check passed
@NMitchem NMitchem deleted the chore/daemon-analytics branch March 20, 2026 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant