Skip to content

Show account usage errors as an alert icon that opens the usage menu - #51182

Merged
orca-remote-automation[bot] merged 3 commits into
mainfrom
orca-remote-automation/fix-account-usage-error
Nov 27, 2026
Merged

orca-remote-automation[bot] merged 3 commits into
mainfrom
orca-remote-automation/fix-account-usage-error

Conversation

@orca-remote-automation

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

Copy link
Copy Markdown
Contributor

ELI5

When an account's usage can't be read, the bottom-left status bar used to print the problem as text ("Signed out", "Refresh failed", "Run Grok to refresh"). Now it shows a small gray alert next to the provider icon. Clicking it opens the usage menu, which already lists the message for each account.

Files Added Deleted Net
Test 0 0 0 0
Prod 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​65 $\color{#cf222e}{\Huge{\mathbf{−}}}$​6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​59

What Changed

  • Before: an account in an error state showed its provider icon, a small muted alert and the message as inline text, which pushed other items along the bar.
  • After: every account error state shows a 14px alert in the same muted gray as the neighbouring status-bar icons next to the provider icon, with no text. A click on the alert opens the existing usage menu, where each provider's row shows its message.
  • The usage menu button now has a screen-reader description listing every account in an error state (for example "Codex: Signed out. Grok: Run Grok to refresh"), so keyboard and screen reader users get the messages without seeing them.
  • The status line in each usage menu row now wraps instead of truncating, since the menu is now where the message is read.
  • Claude's calm "Updates when Claude runs" state keeps its text; it is not an error.

Why

The inline text was noisy and its width changed with the message, so the bar shifted whenever an account failed. One icon pattern works for every provider and error, and the full message stays one click away in the menu that already holds account details. Checked against how comparable products handle this.

Linked Issue

N/A (maintainer change)

Visual Proof

Before (light)
light-before-bar

After: Claude "Refresh failed", Codex "Signed out", Grok "Run Grok to refresh"

Light Dark
light-states-bar dark-states-bar

Usage menu opened by clicking the Grok alert

Light Dark
light-states-menu dark-states-menu

Longest English message ("Waiting for Claude session"), menu opened by clicking the Claude alert

Light Dark
light-long-menu dark-long-menu

A healthy chip beside error chips (alignment)

Light Dark
light-mixed-bar dark-mixed-bar

Narrow window (340px): a long message wraps in the menu row (stress text placed in the Grok row's DOM, since no English label is this long)

Light Dark
light-narrow-wrap-menu dark-narrow-wrap-menu

Testing

  • Dev build with an isolated profile and seeded usage state, inspected over CDP on macOS: clicking each alert opens the usage menu; the usage button's description lists every error; menu rows wrap at a 340px window with no overflow.

  • pnpm check:changed passes; existing StatusBarProviderSegment.test.tsx passes.

  • No new tests: this is presentational, and the repo rules keep UI behaviour out of unit tests.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

  • Every added test fails without this change and avoids the test anti-patterns

Performance

None, because the chip renders the same or fewer elements than before, and the screen-reader description is one string built from the provider list already in hand on each status bar render (at most nine providers). No new polling, timers, subscriptions, IPC or disk work.

Risk

Level: Low

Renderer-only styling in the status bar usage chips and menu rows. If it went wrong, users would see an alert without being able to find the message; the menu row and the button description both carry it. Saved data, settings, SSH and mobile are untouched. Back out with a plain revert.

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

Cross-platform: Tailwind classes and a lucide icon only. Remote hosts: the same chip renders remote usage, so it follows the same pattern. Mobile has its own usage UI and is unchanged.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

Status bar chips no longer print error text; an amber alert sits next to the provider icon, a click opens the usage menu whose rows carry the message, and the menu button describes every alert for screen readers.
@orca-remote-automation
orca-remote-automation Bot marked this pull request as ready for review November 27, 2026 22:19
@orca-remote-automation
orca-remote-automation Bot merged commit b9cac6b into main Nov 27, 2026
56 checks passed
DoozyX added a commit to DoozyX/orca that referenced this pull request Nov 28, 2026
Merges stablyai/orca ab26af3 (571 commits) into fork main db01815.

Conflict resolutions:
- Mobile web bundle: upstream moved the page styles to
  mobile-web-app-page-styles.mjs and added the React Compiler plugin; the fork
  moved the aliased package paths to mobile-web-app-aliased-packages.mjs (one
  React). Both moves kept; the eager budget takes upstream's 12 MiB + 112 KiB,
  which covers React Compiler's memo caches (fork's 11.25 MiB was below the
  measured 12,657,291 bytes).
- Lazy Zod (stablyai#50444, stablyai#50493): project-group IPC schemas now live in upstream's
  project-group-ipc-arg-schemas.ts; the fork's ProjectGroupUpdate
  claudeAccountId moves there. AccountHome uses upstream's lazy definition in
  structured-agent-session-core-params.ts; the fork's duplicate
  structured-agent-session-account-home.ts is removed. Baseline pruned.
- Lazy main-process imports: commit-message resolvers keep upstream's dynamic
  imports with the fork's Claude launch scope; window services take upstream's
  lazy imports and the fork's PrepareClaudeAuth type.
- Project groups: upstream lazy-loads the name/delete/suppress dialogs and the
  header menu content; the fork's local-only "Group settings…" item moves into
  ProjectGroupHeaderMenuContent and its settings dialog is lazy-loaded the
  same way.
- Status bar: upstream's error alert description (stablyai#51182) is computed over the
  fork's per-account usage entries, its wrapped status label is carried into
  the fork's UsageRosterRow, and the refresh uses runWithFinally (stablyai#50419) with
  the fork's refreshUsage.
- Git graph filter: fork's extracted ref source kept (its drain already sits
  outside the hook, so upstream's runWithFinally change is not needed there).
- Agent status counts: upstream's owner-id restructure with the fork's
  isDerivedChildRow filter.
- UI primitives: Button keeps the fork's sm-compact and upstream's toolbar
  sizes; Input keeps the fork's size prop and upstream's focusFeedback.
- i18n: fork gitGraph keys kept; upstream's removed revertConflicts and
  revertInProgress stay removed (unused). zh 8b9e202e0a uses upstream's 你
  wording with the fork's 1 hour default.
- Generated: bundled skill guides, manifest and sources regenerated;
  released-digests is the union of both sides.

Claude-Session: https://claude.ai/code/session_01BPjp5yPQp93G7xea8VmfjG
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