* feat: add usage insights section
* feat: add date range filtering to usage page
* feat: display active date range in usage
* refactor: enhance usage insights UI with visualization bars
* refactor: remove date range label from usage section
---------
Co-authored-by: nicoalbanese <49612682+nicoalbanese@users.noreply.github.com>
* feat: add usage tracking and contribution chart in settings
Track per-turn token consumption and tool usage from both web and CLI
clients. Usage events are stored in a new `usage_events` table with
a `source` column (web/cli) for client differentiation. The settings
page displays a GitHub-style contribution heatmap (40 weeks) with
summary stats broken down by source.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add per-model usage table and track provider/model in usage events
Record provider and modelId when logging usage from both web and CLI,
group usage history by model, and display a breakdown table on the
settings usage page sorted by total tokens.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add cached input usage tracking
* fix: improve usage page skeleton and contribution chart layout
Add model breakdown table to skeleton, match stat block and chart
heights to reduce vertical layout shift, reduce chart to 39 weeks
to fit container, and add overflow-x-auto for mobile.
* fix: avoid NaN agent split when token totals are zero
* feat: record subagent usage events
* feat: store agent type on usage events
* feat: add usage pie charts
* fix: stabilize usage reporting and subagent accounting
* feat: add app split usage chart
* Fix usage tracking regressions and remove chat route test
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>