Skip to content

feat(bots): make a usage-limit stop stand out with a pinned amber gauge - #50145

Merged
orca-remote-automation[bot] merged 3 commits into
mainfrom
fix/usage-limit-gauge
Nov 26, 2026
Merged

orca-remote-automation[bot] merged 3 commits into
mainfrom
fix/usage-limit-gauge

Conversation

@orca-remote-automation

@orca-remote-automation orca-remote-automation Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

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):

  • Glyph: new GaugeMaxIcon (lucide grid/stroke, needle pinned past max + tick) replaces Gauge in every usage-limit spot: chat usage-limit row, bot chat/worker marks, chat origin icon, avatar badge. The chat row now uses text-status-warning instead of the softer text-chat-warning.
  • Bot avatar (sidebar + search): 16px solid bg-status-warning disc with a black gauge glyph (same bg-status-warning + text-black pairing as existing solid warning pills), cutout widened to match, avatar dimmed to 40%.
  • Second line: Usage limit · <reset> in text-status-warning-text. Reset is short: time today, Sun 1:46 PM within the week, else Dec 3, 1:46 PM (locale-aware). The full tooltip and hover card still say which chat stopped and whether it auto-continues.
  • New bots.usageLimit.rowLine key in all 11 locales.

No new colors; theme tokens only.

Performance

None, because this only swaps an SVG, changes classes and adds one Intl.DateTimeFormat call per stopped bot row, which re-renders on the existing 60s clock.

Verification

pnpm check:changed green. Screenshots are real components rendered by pnpm 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)

Before After

Chat usage-limit row: before / after (dark), after (light)

Before After

Files Added Deleted Net
Test 0 0 0 0
Prod 19 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​119 $\color{#cf222e}{\Huge{\mathbf{−}}}$​31 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​88

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

Copy link
Copy Markdown
Contributor Author

Review record

Code review (Opus 5.5, high): APPROVE, final head reviewed: ac7631c8b157. It reviewed 29d18a3d638, then the follow-ups 3770de41f678 and ac7631c8b157.

P2 finding Outcome
Chat gauge on raw status-warning is low-contrast in the light theme Fixed: now text-status-warning-text
Doc comment on the wrong function Fixed
Stale row-line comment Fixed
text-black on the amber badge Kept: same pairing the existing solid bg-status-warning pills use
Tooltip time ignores the app locale Kept: it predates this PR

UX review (agy, gemini-4-neon-medium): APPROVE on 29d18a3d638. It found that the build matches approved design E and gauge B, that the stopped state is noticeable in both themes, that the black-on-amber glyph contrast is 10.9:1 in dark and 7.2:1 in light, and that the narrow longest-name row truncates cleanly.

P2 finding Outcome
Light-theme chat gauge contrast Fixed in 3770de41f678
Amber text on the selected light row is 4.08:1 Kept: the existing status-warning-text token
Badge sits 4px from the text Kept: matches the mockup

@orca-remote-automation
orca-remote-automation Bot merged commit 368338c into main Nov 26, 2026
57 of 58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants