Add Claude local usage heatmap - #147
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
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
Why
Claude's OAuth usage response exposes current subscription windows but not historical daily token totals. As a result, the Claude provider card could show rate limits but could not offer the token activity view available for Codex. The provider now derives that view from Claude Code's local history while keeping the aggregate Usage page as the cross-machine source.
The existing Codex normalization also limited history to the last 30 active buckets, which made sparse activity disappear as new days arrived. Retention is now based on a 366-day calendar window.
Impact
Users can inspect Claude activity for the paired machine directly under Settings → Providers → Claude → Usage. The existing Usage page remains the place to inspect activity across every connected machine.
Validation
vp fmtvp lintvp run typecheckvp run '@threadlines/server#test' ProviderRegistry— 77 passedvp run '@threadlines/web#test' providerUsage— 26 passedvp run '@threadlines/contracts#test' server— 7 passedvp run '@threadlines/web#test:browser' SettingsPanels— 38 passedvp run '@threadlines/web#test:browser'— 403 passed