Repository navigation
feat(web): filter the Usage page to just the providers you want - #16970
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… filter Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (7)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe usage page adds provider visibility preferences and a filter menu. Hidden providers are excluded from usage summaries and source messages. Provider-specific limits and shared usage displays also respect visibility settings. ChangesUsage Provider Filtering
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant UsagePage
participant useUsage
participant MergedUsage
UsagePage->>useUsage: Pass selected environments and hidden providers
useUsage->>MergedUsage: Filter buckets and sources, then merge
MergedUsage-->>UsagePage: Return filtered usage totals and sessions
Suggested reviewers: Merge Risk: ⚪ Minimal · up to No confirmed issue blocks merging the Usage provider filter. 🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description clearly explains the problem, implementation, affected behavior, verification, screenshots, and out-of-scope mobile work. It does not provide the required triaged issue or explicit maintainer approval, or explain why the change qualifies for an exemption. Resolution Add a link to the triaged issue or approval discussion with the maintainer approval comment. If no prior issue or discussion exists, explain why this focused change qualifies for the documented exemption and confirm the scope remains limited.
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This PR adds a persistent provider-selection feature that changes usage aggregation, notices, charts, and limits when enabled. Although the default view remains unchanged and compatibility tests are included, the cross-component production behavior is broader than a small self-contained option. You can add or adjust custom eligibility rules. Learn more. |
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
…only what is still updating Imported from #16376 (5 commits squashed onto current main): - perf(usage): the usage page loads in a fraction of a second and dims only what is still updating - refactor(usage): simpler loading states and Cursor cache - fix(usage): cache writes finish before the usage service shuts down - fix(usage): address review findings - fix(web): a window that fails everywhere keeps the last usage on screen Conflicts with main resolved: Antigravity scan cache (#17139) and the Usage provider filter (#16970). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
## What's Changed * feat(providers): run Muse Code as a native provider by @t3dotgg in pingdotgg/t3code#17082 * feat(web): compact-before-send is a chip that shows the token count by @t3dotgg in pingdotgg/t3code#17127 * fix(clients): copy button is back in its old spot, before fork by @t3dotgg in pingdotgg/t3code#17137 * fix(usage): repeat usage scans no longer decode unchanged Antigravity databases by @t3dotgg in pingdotgg/t3code#17139 * fix(server): shell snapshots no longer block other database reads while decoding by @t3dotgg in pingdotgg/t3code#17141 * perf(server): ACP tool updates no longer persist a snapshot per streamed chunk by @darjss in pingdotgg/t3code#16682 * feat(web): filter the Usage page to just the providers you want by @t3dotgg in pingdotgg/t3code#16970 * fix(usage): Cursor account history loads about 4x faster by @t3dotgg in pingdotgg/t3code#17140 * fix(server): threads settle as soon as branch status sees their PR merge by @t3dotgg in pingdotgg/t3code#17148 * perf(usage): the Usage page shows numbers in under a second and dims only what is still loading by @t3dotgg in pingdotgg/t3code#17147 * fix(server): an agent can settle its own thread when its turn ends by @t3dotgg in pingdotgg/t3code#17145 * feat(web): Add provider button sits with the provider list by @t3dotgg in pingdotgg/t3code#17152 ## New Contributors * @darjss made their first contribution in pingdotgg/t3code#16682 **Full Changelog**: pingdotgg/t3code@v0.0.46-nightly.20261008.2813...v0.0.46-nightly.20261008.2819 Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.0.46-nightly.20261008.2819
## What's Changed * feat(providers): run Muse Code as a native provider by @t3dotgg in pingdotgg/t3code#17082 * feat(web): compact-before-send is a chip that shows the token count by @t3dotgg in pingdotgg/t3code#17127 * fix(clients): copy button is back in its old spot, before fork by @t3dotgg in pingdotgg/t3code#17137 * fix(usage): repeat usage scans no longer decode unchanged Antigravity databases by @t3dotgg in pingdotgg/t3code#17139 * fix(server): shell snapshots no longer block other database reads while decoding by @t3dotgg in pingdotgg/t3code#17141 * perf(server): ACP tool updates no longer persist a snapshot per streamed chunk by @darjss in pingdotgg/t3code#16682 * feat(web): filter the Usage page to just the providers you want by @t3dotgg in pingdotgg/t3code#16970 * fix(usage): Cursor account history loads about 4x faster by @t3dotgg in pingdotgg/t3code#17140 * fix(server): threads settle as soon as branch status sees their PR merge by @t3dotgg in pingdotgg/t3code#17148 * perf(usage): the Usage page shows numbers in under a second and dims only what is still loading by @t3dotgg in pingdotgg/t3code#17147 * fix(server): an agent can settle its own thread when its turn ends by @t3dotgg in pingdotgg/t3code#17145 * feat(web): Add provider button sits with the provider list by @t3dotgg in pingdotgg/t3code#17152 ## New Contributors * @darjss made their first contribution in pingdotgg/t3code#16682 **Full Changelog**: pingdotgg/t3code@v0.0.46-nightly.20261008.2813...v0.0.46-nightly.20261008.2819 Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.0.46-nightly.20261008.2819
Brings in Theo's Usage work: progressive loading with a Cursor cache and the awaitRefresh follow-up (pingdotgg#17147), the provider filter (pingdotgg#16970), faster Cursor paging (pingdotgg#17140) and the Antigravity scan cache (pingdotgg#17139). Resolution: - Contract keeps both groupByThread and awaitRefresh. - Server: upstream's parallel source scans; transcript scans still carry the account, each session's folder and sub-agent labels; attribution runs alongside the scans. - Web: statuses carry upstream's isConnected next to the offline fields; the provider filter applies before saved usage is trimmed; the page keeps the previous period on screen while a new one loads, and the explorer mutes its totals, chart, by-type section and list while figures are still coming in, and each provider row while that provider refreshes. Also fixes a Macroscope finding: a resumed Claude scan no longer replaces a session's original folder with one from later records, which could move it to another project.
The Usage page always mixes every provider together. There was no way to say "only show Claude Code" and see just that spend, chart, and limits.
Now there is a provider filter in the Usage header, next to the environment filter. Untick "All providers", tick the ones you want, and every tab follows: totals, sessions, shares, the chart, the model and day tables, and the Limits bars. The choice is saved with the other Usage page settings, so it sticks after a reload.
How it works: hidden providers are removed from each environment's summary (both usage buckets and transcript sources) before the client merge, so session counts and shares stay correct instead of only hiding rows. On Limits, hidden drivers are removed from native accounts and hub accounts before pooling. The ChatGPT shared usage row and the Cursor "Enable" prompts hide with their provider. The setting is stored as the hidden set, so new providers show by default, and older saved settings still load.
Dollar figures are blurred in the screenshots. Captured against a dev server reading real transcripts.
Verified:
Not in this PR: the mobile Usage screen has its own filter menu and can get the same toggle in a follow-up. #16376 also edits
UsagePage.tsxandstate/usage.ts, so whichever lands second needs a small rebase.Reviewed with sol-loop: 2 rounds with GPT-6.1-Sol on high.
Created with Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code