fix(web): sort usage models by token count - #8108
UI Consistency: All clear
All clear
Details
Note
Your check run agent prompt is: .macroscope/check-run-agents/ui-consistency.md
More information about how Check Run Agents work can be found in our Help Center.
🔍 Agent activity — 3 tool calls
💭 This PR is really about sorting logic rather than styling, and using a non-mutating sort looks fine. Since there's no styling change here, this likely passes the UI consistency check, but I want to verify the table header still shows a sortable indicator before concluding.
1. browse_code — apps/web/src/components/usage/UsagePage.tsx
2. browse_code — apps/web/src/components/usage/UsagePage.tsx
💭 This isn't really a UI consistency finding since it's a data-order behavior change, not styling. I should check if there are other viewport variants that render the models list, since the sort order might need to be consistent there too.
3. git_tools — merged.models|breakdownModels
💭 With only one usage and no UI or CSS changes found, this looks clean, so the check should report "All clear." I need to reconcile that plain-text instruction with the requirement to return JSON matching the schema, so I'll express success with "All clear" as the title and summary while still defaulting the check state appropriately if nothing else needs flagging.
Agent Credits: 11 credits