Skip to content

fix(chat): show one usage-limit recovery notice - #29292

Merged
shivamhwp merged 3 commits into
mainfrom
issue-watch/28938
Nov 6, 2026
Merged

shivamhwp merged 3 commits into
mainfrom
issue-watch/28938

Conversation

@shivamhwp

@shivamhwp shivamhwp commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

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-runtime hides 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.
  • The snooze status row steps aside while the recovery notice owns that snooze (limitRecoveryOwnsSnooze), so Wake now appears once.
  • The notice says "Resumes " once auto-resume is scheduled. A later manual snooze moves that time. Settled threads offer no recovery actions.
  • Web and mobile actions are compact inline text links with 44pt touch targets that don't overlap when they wrap.

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 1de2bad on 337c5858c3. Since then the branch was squashed onto main and slimmed to f86e197: the tests this PR had added and an unrelated QueuedRunsControl refactor were removed. It was then rebased onto current main 79ee39fdcb as 6a8d99f with no conflicts, d83412a keeps the web limit notice beside an open question, and 09a32d1 hides 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 at 1de2bad except d83412a and 09a32d1, 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_reached 429 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.

Mobile usage limit, before and after

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".

Web usage limit, before and after

Mobile, ChatGPT sharing limits. The card keeps #31277's layout, and the extra "Usage limit reached." timeline row is gone.

Mobile ChatGPT personal limit, before and after

Mobile ChatGPT workspace limit, before and after

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:changed passes on 09a32d1: 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 new settled / limitRecoveryHoldsSnooze props.

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 slimmed f86e197 (the same diff as 6a8d99f, 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

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Repeated usage-limit and auto-resume notices(5 times) on desktop and iOS

2 participants