Skip to content

feat(app): replace the composer when a model hits a usage limit - #66846

Closed
arvsrn wants to merge 2 commits into
usage-badgefrom
usage-block
Closed

arvsrn wants to merge 2 commits into
usage-badgefrom
usage-block

Conversation

@arvsrn

@arvsrn arvsrn commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Stacked on #66845.

When the selected model is blocked, a panel replaces the session composer. Each case has fixed copy and a single Change model action:

  • Go usage limit, after Console refuses a request. A Go meter at 100% doesn't block, because Extra Usage users keep being served.
  • Model budget reached.
  • Workspace budget reached.
  • Workspace out of credits (402).

The panel clears when the model changes, when the reset passes, or when reloaded limits no longer block. It waits while a turn is running. The free-limit panel now uses the same shared layout, with no visible change. The old Go limit tray is removed.

No feature flag: additive UI in the desktop app. English copy only; no existing keys removed.

Known limitations

  • The new-session composer doesn't show the panel.
  • A refusal without a reset time holds for one hour, like the free-limit panel.
  • On mobile, Change model opens the picker dialog rather than the drawer.

How did you verify your code works?

bun typecheck and unit tests in packages/app; /review and /rmslop passes; visual check of every state in the desktop app (opencode-drive against a fake Console) compared with the design stories. The Go tray e2e test is rewritten for the panel, including the draft surviving a model switch. The free-limit e2e test passes.

Screenshots / recordings

Before/after screenshots against the design (light and dark) to follow in a comment.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Aarav Sareen added 2 commits November 27, 2026 21:15
When the selected model can't run (a Go 5-hour, weekly or monthly limit, a model or workspace budget, or a workspace out of credits), a panel with fixed copy and one action, Change model, stands in for the composer. It appears from the usage limits or the session's last refusal, whichever comes first, survives a reload, and clears when the model changes or the limit resets. The Go limit tray is removed; the free-limit panel shares the new panel layout unchanged.

No flag: replaces the Go tray.
With Extra Usage on, Go keeps serving on credits after a window hits its limit, and the usage limits don't say whether it is on. So a Go model shows the limit panel only after Console refuses a request. Usage limits load only for Console-served models again.

No flag.
@arvsrn

arvsrn commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

Closing — deciding not to replace the composer on usage limit.

@arvsrn arvsrn closed this Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant