Repository navigation
fix(chat): show one usage-limit recovery notice - #29292
Merged
Merged
Conversation
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.
Closes #28938
Problem: when an agent hit its usage limit and the thread snoozed with auto-resume, web, desktop and mobile showed up to five notices for one pause: the timeline error, Claude's own limit message and pause notice, a "Snoozed · Wake now" status row, and the recovery card with a second Wake now. The same reset time appeared in several formats.
Fix: one recovery notice per pause, on every client.
client-runtimehides the timeline notice for the current root failure only when it is positively a usage limit that the recovery notice already covers. Useful assistant output stays, and stored notices return after a later run executes.limitRecoveryOwnsSnooze), so Wake now appears once.Rebased onto main after #31277. #31277 folded the ChatGPT sharing-limit notice into this same mobile card. This branch keeps all of it: the guideline title, copy, "Manage usage" / "Copy request for admin" action, older-server sharing codes, the in-flight guard and the alert role. The ChatGPT action and Resume / Snooze now share one row of inline links. The row sits 8pt under the text, so ChatGPT notices keep #31277's spacing exactly.
Evidence
The captures are from
1de2badon337c5858c3. Since then the branch was squashed onto main and slimmed tof86e197: the tests this PR had added and an unrelatedQueuedRunsControlrefactor were removed. It was then rebased onto current main79ee39fdcbas6a8d99fwith no conflicts,d83412akeeps the web limit notice beside an open question, and09a32d1hides its recovery actions while a request is pending, because the server refuses them then. Every file that renders these notices has the same diff as at1de2badexceptd83412aand09a32d1, which only change the web banner when other composer notices, an open question or a pending approval are showing. None of those are in the captures, so they still show the head. "Before" runs main's client code against the same server and threads. Server code is unchanged by this PR.Setup: an isolated dev server on corex. Codex CLI ran through T3's Codex adapter against a local HTTP fixture that returns a real Codex
usage_limit_reached429 with rate-limit headers. T3 classified it as a usage limit with a reset 2 hours out. I then turned on Resume at reset and Snooze until reset, which is the issue's auto-snoozed state. No UI or database state was injected. Mobile: POCO M3 Pro, Android 13, T3 Code Dev from this checkout. Web: Chrome.Mobile, usage limit with auto-resume. Before: the timeline error, the snooze row with Wake now, and the card with large buttons and a second Wake now. After: one notice.
Web, same thread. Before: the timeline error and the snooze row with Wake now, above the banner with a second Wake now. After: the banner alone, saying "Resumes".
Mobile, ChatGPT sharing limits. The card keeps #31277's layout, and the extra "Usage limit reached." timeline row is gone.
Mobile actions. Wake now and Snooze until reset toggle back and forth, as do Cancel auto-resume and Resume at reset. Copy request for admin shows "Request copied".
mobile-actions.mp4
Checks:
vp run check:changedpasses on09a32d1: format, lint, knip, seven-package typecheck, the existing tests beside the changed files (109), and the React compiler checks. The PR adds no tests; two existing test fixtures gained the newsettled/limitRecoveryHoldsSnoozeprops.Review: two rounds by fresh Codex sessions. Round 1 confirmed the rebase keeps all of #31277's behaviour, and that wrapped actions keep 44pt targets without overlapping. It found that Claude limit messages with a
(UTC)or(Etc/GMT+5)zone stayed visible; that fix is in this head. Round 2 reviewed that fix and found nothing further. A third fresh Codex session reviewed the slimmedf86e197(the same diff as6a8d99f, before the rebase) and found nothing: no dangling references or regressions from the cuts, and no further code that could go without losing the fix.Not shown: iOS, a real Claude limit (the fixture drives Codex; the notice logic is provider-agnostic), and the desktop app (it wraps web).
Work by GPT-6.1 Codex in T3 Code and Opus 5.5 in Claude Code.
🤖 Generated with Claude Code