Repository navigation
Agent: correct usage model highlights - #1567
Closed
matthewrball wants to merge 8 commits into
Closed
matthewrball wants to merge 8 commits into
matthewrball wants to merge 8 commits into
Conversation
Give DeepSeek V4.1 Flash Uncensored the purple series instead of GPT-OSS. Keep used models named until the seven color slots are full, fold only overflow, and align chart and table colors on web and Agent.
Rank highlighted models by catalog capability and usage, rather than keeping a flat list that let lower-tier models outrank DeepSeek uncensored. Collapse usage into More models only when the legend's available colors are exhausted. Preserve catalog group metadata through the native cache path so chart, table, and tooltip colors stay aligned without depending on the age of a cache entry.
Rank used models by the server catalog on web and native, with a fixed fallback outside the product path. Load native catalog metadata independently of billing status. Show up to seven individually named model series, aggregate only true overflow, and keep shared table/chart colors stable when the aggregate appears.
Refresh native model metadata without requiring billing status, coalescing only in-flight requests and preserving the last good catalog on failure. Propagate shared web model colors before paint and count duplicate catalog entries consistently with native ranking.
Use the served catalog ranking for native usage colors so DeepSeek Uncensored keeps its purple highlight rather than promoting GPT-OSS. Give other used models genuinely spare palette slots and aggregate only real overflow. Preserve older-catalog compatibility and metric-stable frontend ordering.
matthewrball
marked this pull request as ready for review
November 12, 2026 19:47
Contributor
|
I don't see a reason why we need to hardcode model recommendations in the model usage pages. |
Collaborator
Author
|
@AnthonyRonning Agreed — model recommendations don’t belong in usage reporting, and my previous approach still included hardcoded preferences. The issue I’m trying to fix is that models outside the fixed list are grouped into “More models,” even when they account for most of someone’s usage. I’ve replaced that approach in #1625. The five named series now come from actual usage for the selected date range and metric, with no recommendation list or catalog dependency. Remaining models are listed individually in the daily breakdown and “By model” table, with totals preserved. The new draft includes native and web screenshots. |
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.
What this PR does
Notes
just ciis partial on this host because of SQLCipher store failures outside this diff; this is not a claim of full host-native CI parity.Legacy description
Previous draft
Summary
dataorder for Usage highlights. Name DeepSeek V4.1 Flash Uncensored with its purple highlight instead of letting flat range-usage ranking push it intoMore models; do not promote unavailable or ungrouped models into featured slots.More modelsseries. Preserve the compatibility fallback only while catalog-group metadata is unavailable or empty, and load native catalog metadata independently of billing completion.Validation
useLayoutEffectso named-model colors propagate before paint. Its coverage is source analysis and the 52 focused render/data tests, not a fresh browser proof of the single frame.Verification limits
The repository's pinned Nix environment and Rust 1.94.1 are unavailable locally. Full host-native warning-denied checks stop on existing
objc-macrounexpected_cfgsdiagnostics in unchanged native-quit code. The follow-up native binary built, but its test executable did not run because the loader could not findlibswift_Concurrency.dylib; therefore, no native tests ran in that attempt. These host attempts are not CI parity. Pinned remote PR CI is green on final heade647d9e4: all selected checks passed, including native lint/tests, macOS, Windows, and research-web. No authentication, billing-data, or production-profile changes are part of this work.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.