feat(app): add provider usage breakdown to session context#10520
Open
Ayesy wants to merge 5 commits intoanomalyco:devfrom
Open
feat(app): add provider usage breakdown to session context#10520Ayesy wants to merge 5 commits intoanomalyco:devfrom
Ayesy wants to merge 5 commits intoanomalyco:devfrom
Conversation
…mize content area
- Track token usage per provider (Antigravity, Anthropic, Google, OpenAI) - Show provider icons and percentage breakdown - Display total tokens per provider in sidebar
- Show per-provider token breakdown in tooltip - Display provider emoji indicators (🟣 Anthropic, 🔵 Google, etc.) - Add percentage breakdown and formatted token counts - Add SessionContextUsage to session header for visibility
Contributor
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Contributor
|
The following comment was made by an LLM, it may be inaccurate: I found a potentially related PR: Related PR Found:
This is worth reviewing to ensure there's no duplication of effort on token usage tracking and statistics display features. |
- Add Model Usage section showing individual model statistics - Display input/output tokens, cost, and request count per model - Add provider icons for groq, mistral, deepseek, xai - Shorten model names for better display (remove common prefixes/dates) - Support collapsible section when more than 3 models Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
00637c0 to
71e0ba2
Compare
f1ae801 to
08fa7f7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add per-provider token usage breakdown to the session context usage tooltip, making it easier for users to understand their token consumption across different AI providers.
Changes
Enhanced
SessionContextUsagecomponent with provider breakdown:Added
SessionContextUsageto session header for better visibilityScreenshot
When hovering the usage indicator:
Why
Multi-model users often want to know which providers they're consuming the most tokens from. This helps with: