Skip to content

feat(web): the model picker shows when a provider or a model is near its plan's limit - #957

Merged
badcuban merged 3 commits into
mainfrom
feat/model-picker-plan-limits
Nov 16, 2026
Merged

badcuban merged 3 commits into
mainfrom
feat/model-picker-plan-limits

Conversation

@badcuban

Copy link
Copy Markdown
Collaborator

The model picker gave no hint that an account or a model was close to its plan's limit. You found out from the usage popup in the composer, or when a turn failed.

Now:

  • A provider's icon tab gets a small amber dot when the account as a whole is at 75% or more, or out of its plan. One model's own cap never sets it. Tabs that already show a usage percent (several accounts, expanded) don't get one.
  • A model with its own limit (Claude reports these by name, e.g. "Fable") shows it in the row's grey meta slot: "64% of week" in grey, amber from 75%, and "Limit · resets in 3d 16h" in red with a grey name once reached. The row stays pickable.
  • Nothing on the composer's model button, no new lines in the picker. Account totals stay in the usage popup.

isProviderUsageNearLimit takes { modelLimits: false } for the account-only check; the composer's ring calls it as before. A scope label matches a model by whole words in order, so "Opus 5" doesn't match "Opus 5.5".

@badcuban
badcuban enabled auto-merge November 16, 2026 11:00
@vercel

vercel Bot commented Nov 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
threadlines Skipped Skipped Nov 16, 2026 11:00am UTC

Request Review

@badcuban
badcuban added this pull request to the merge queue Nov 16, 2026
Merged via the queue into main with commit 52e3103 Nov 16, 2026
24 checks passed
@badcuban
badcuban deleted the feat/model-picker-plan-limits branch November 16, 2026 11:12

This branch was previously deployed

1 inactive deployment
Preview — 400dcda9 Deployed Nov 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant