Repository navigation
feat(bots): make a usage-limit stop stand out with a pinned amber gauge - #50145
Merged
Merged
Conversation
The usage-limit glyph becomes a gauge pinned past max in the warning color. A stopped bot's sidebar avatar dims and carries a solid amber gauge badge, and its second line reads "Usage limit · <reset>" in amber.
orca-remote-automation
Bot
requested a review
from brennanb2025
as a code owner
November 26, 2026 22:49
Contributor
Author
Review recordCode review (Opus 5.5, high): APPROVE, final head reviewed:
UX review (agy, gemini-4-neon-medium): APPROVE on
|
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.
What
When an agent stops on its usage limit, the state was easy to miss: a small lucide gauge (needle mid-dial) on the chat row, and a 12px muted badge on the bot's sidebar avatar. Following the approved design (avatar option E, gauge B):
GaugeMaxIcon(lucide grid/stroke, needle pinned past max + tick) replacesGaugein every usage-limit spot: chat usage-limit row, bot chat/worker marks, chat origin icon, avatar badge. The chat row now usestext-status-warninginstead of the softertext-chat-warning.bg-status-warningdisc with a black gauge glyph (samebg-status-warning+text-blackpairing as existing solid warning pills), cutout widened to match, avatar dimmed to 40%.Usage limit · <reset>intext-status-warning-text. Reset is short: time today,Sun 1:46 PMwithin the week, elseDec 3, 1:46 PM(locale-aware). The full tooltip and hover card still say which chat stopped and whether it auto-continues.bots.usageLimit.rowLinekey in all 11 locales.No new colors; theme tokens only.
Performance
None, because this only swaps an SVG, changes classes and adds one
Intl.DateTimeFormatcall per stopped bot row, which re-renders on the existing 60s clock.Verification
pnpm check:changedgreen. Screenshots are real components rendered bypnpm fixtures:shot(bots/BotRowUsageLimit:usageLimitRows,native-chat/usage/NativeChatUsageLimitRow:codexSession|weekly), light and dark. The bot-row fixture now also has a longest-name row at 200px: the name truncates, the badge and amber line keep their layout. I couldn't seed a real usage-limit stop in a running app, so there are no Electron before/after shots.Bot row: before / after (dark), after (light)
Chat usage-limit row: before / after (dark), after (light)