feat(happy-app): show rate limit / quota feedback prominently#696
Open
davidrimshnick wants to merge 1 commit intoslopus:mainfrom
Open
feat(happy-app): show rate limit / quota feedback prominently#696davidrimshnick wants to merge 1 commit intoslopus:mainfrom
davidrimshnick wants to merge 1 commit intoslopus:mainfrom
Conversation
…nently Parse rate limit and quota exhaustion messages from any backend (Claude, Gemini, Codex) and display them as visually distinct limit-reached events with a warning-styled banner instead of plain text. - Extend messageToEvent parser to detect generic rate limit patterns (quota exceeded, resource exhausted, rate_limit_error, etc.) - Make limit-reached schema flexible: endsAt is now optional, message field added for backends that provide descriptive text without a specific reset timestamp - Render limit-reached events with warning background color for visual emphasis - Add usageLimitReached i18n key to all 11 language files - Add 14 tests for parser and isRateLimitMessage detection Closes slopus#662 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
limit-reachedeventsendsAtoptional in thelimit-reachedschema so backends without a reset timestamp (e.g. Gemini) can still surface limit infousageLimitReachedi18n key to all 11 language filesPreviously, Gemini quota messages were sent as regular text and didn't stand out. Claude limit messages were parsed but only with the exact
"Claude AI usage limit reached|{timestamp}"format. Now both are handled uniformly.Closes #662
Test plan
isRateLimitMessagedetects 7 different rate limit patterns (7 tests)🤖 Generated with Claude Code