Repository navigation
Conversation
Reopened from pingdotgg#31691 and squashed onto current main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
wSedlacek
force-pushed
the
t3/retry-usage-limit-fetch
branch
from
November 14, 2026 22:38
44f2ea9 to
1ca9484
Compare
This branch has not been deployed
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.
Problem
When a thread stops at a usage limit and the provider reports no reset time, the banner only says the reset time is unavailable and asks the user to retry manually. There is no way to see the provider's current limits from that banner. The user has to leave the thread and open
/usage-limitsor Usage → Limits to find out whether a window has reset.Change
/usage-limits. If the check fails or the provider reports no limits, a toast explains why.UsageLimitRecoveryCardshows the same Check limits button in the same case. Errors appear inline on the card.refreshUsageLimitspath fromclient-runtime, so a check already running for the environment is reused instead of started twice.serverEnvironment.refreshProviders. The server remains the authority for that check.docs/user/usage.md.This does not save the checked reset time on the thread, so Resume at reset and Snooze until reset still do not appear after a check. Supporting that would need a server change.
Scope and approval
No linked issue or discussion. This is a small addition to the existing usage-limits refresh: it reuses the
/usage-limitsdata path and only changes the banner shown when the reset time is missing. It adds one user-facing action, so a maintainer should confirm that the direction fits before merging.Verification
vp test runonUsageLimitRecoveryBanner.test.tsxandUsageLimitRecoveryCard.test.tsxpasses (12 tests). The new cases check that the button appears only when the reset time is unknown, and that a failed check shows its error on mobile.vp run check:changedpasses after runningvp fmton the changed files. The first run failed the format step, and the rerun was clean.Model and harness: Claude, through Claude Code (claudeAgent provider).
🤖 Generated with Claude Code