Repository navigation
Remove unreliable model detection from usage stats - #5
Merged
Merged
Conversation
The app attempted to detect which Claude model was actively used via API per-model 7-day breakdowns and velocity heuristics. This detection was unreliable — it incorrectly showed "H" (Haiku) in the menu bar even when the user primarily used Sonnet/Opus across other sessions. Since the 5-hour session limit is aggregate across all models, the model detection added complexity without accuracy. Changes: - Menu bar: CC·21%·H → CC·21% (removed misleading model letter) - Usage Pace section: removed "Active model", per-model time estimates, budget advisor - Kept: aggregate session/weekly/all-time velocity and time remaining (inherently accurate) - Removed ~300 lines: ModelTimeEstimate struct, model detection logic, per-model estimates, budget advisor, ModelPricing enum Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
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
The app attempted to detect which Claude model was actively used via API per-model 7-day breakdowns and velocity heuristics. This detection was unreliable — it incorrectly showed "H" (Haiku) in the menu bar even when the user primarily used Sonnet/Opus across other sessions. Since the 5-hour session limit is aggregate across all models, the model detection added complexity without accuracy.
Changes
CC·21%·H→CC·21%(removed misleading model letter)Testing
✅
make lintpasses with no violations✅
make bundlebuilds successfully✅ Backward compatibility preserved: existing
usage_samples.jsonwith old model data still loads correctly