Skip to content

fix(models): only the next Claude limit reset can be used; say so plainly - #888

Merged
leookun merged 1 commit into
mainfrom
fix/claude-resets-next-only
Nov 11, 2026
Merged

leookun merged 1 commit into
mainfrom
fix/claude-resets-next-only

Conversation

@leookun

@leookun leookun commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #887. The server takes limit resets only in its own order: claiming any grant but next_grant_id is refused as ineligible / not_next_grant (the reason is in Claude Code's own CLI, 2.1.293, which words it "A different reset is on offer now · nothing was used"; other clients such as Ghostex and openusage handle it the same way). So the per-reset buttons #887 added could only be refused.

  • Back to one Use This One… button, on the reset usable now: listed first, framed in the accent, tagged Usable now.
  • The others: "Waits its turn: usable once the one above is used".
  • The hover's description says resets go one at a time, in the order Anthropic sets.
  • A refusal is told in plain words (not the next one, not at a limit, already used, cooling down) instead of the server's codes. If the next one changed since the hover was drawn, nothing is sent and the same words are shown.

Tests: test/models/claude_resets_test.dart, test/settings/models_page_test.dart (usable one listed first; not_next_grant told in plain words).

🤖 Generated with BaoCode

…inly

The server takes resets only in its own order: claiming any but its
next_grant_id is refused as ineligible / not_next_grant, as Claude Code's
CLI has it. #887 gave every reset a button; back to one, on the reset that
can be used now, listed first and framed in the accent. The others say
they wait their turn, the hover says resets go one at a time in
Anthropic's order, and a refusal (not the next one, not at a limit,
already used, cooling down) is told in plain words, not as the server's
codes.

Co-Authored-By: BaoCode <noreply@baocode.dev>
@leookun
leookun merged commit ea24646 into main Nov 11, 2026
3 checks passed
@leookun
leookun deleted the fix/claude-resets-next-only branch November 11, 2026 06:36
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.

2 participants