You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(status-bar): one pill for agents to resume and pending updates - #52791
Review record. C1 and C2 code reviews requested changes, and both were fixed. The owner waived the scoped C3 and asked to land this head, so C3 was closed without a technical PASS. UX-I scoped PASS is recorded on fb0d79f. Unresolved accessibility follow-ups (polite live regions for the pill headline and for update results) move to the follow-up PR.
ELI5
The right side of the status bar used to fill up with separate text items: agents to resume on each computer, "2 CLI updates", server updates, skill updates and the Orca update. Now there is one small pill. It shows how many agents wait to be resumed. A small amber dot means something else needs a look. Click the pill and everything is in one popover with the same buttons as before.
What Changed
One pill at the bar's right edge (status-bar/attention/). The pill shows "↻ N" for agents waiting to resume across this computer and every paired computer. If nothing waits to resume, it falls back in order to resume progress, then failed or to-check agents, then just-resumed agents, then the update icon with a count. With nothing pending there is no pill. An amber dot marks anything else waiting: a failed resume, a failed update, or one that needs the person.
One popover. The Agents section has a row per computer ("This computer" or its name, with a middle ellipsis for long names), Resume, Resume all, resuming progress, and failed or to-check rows with Retry. The computer name opens that computer's resume list, as the old item did. The Updates section has Orca, Servers and Skills, each with Open, which runs the action its status item had. The CLIs section is the existing Agent CLI update list with Update, Update all, Copy for manual CLIs and Try again.
Removed as separate bar items: the agent CLI update item ("N CLI updates", "Updating CLIs", "CLI update failed"), server updates, skill updates, the app update item and the per-computer resume items. They now live only in the pill.
Plugins moved from its status bar icon into the bar's right-click menu, keeping its shortcut. The owner accepted this by picking option C. Keep computer awake is icon-only; its tooltip and menu still name the mode.
Busy computers: Resume, Retry and Resume all ask the computer's resume occurrence what it did with the action (startRestartContinue): accepted, busy (another action holds its turn, such as a dismissal, or a resume is in flight) or gone (nothing to send). The popover closes only when the action was accepted. Otherwise it stays open, and a busy computer's row reads "Busy" until that computer publishes its next answer. Screen readers hear "Busy: ". A refused action is never queued or sent again. The existing single-turn and in-flight guards are unchanged.
Focus stays useful: if a row's control disappears under focus (a partial Resume all, or a CLI that starts updating), focus moves to the first remaining row action, or to the popover itself. A CLI failure dialog opened from a row covers the popover, which stays open but hidden underneath, so closing the dialog returns focus to that row.
Right-to-left: popover statuses take their own reading direction (dir="auto"), and CLI versions always read left to right, so an RTL layout never shows "failed 1" or an upgrade backwards.
Resume never re-sends a possibly running agent: an offered agent that has a failure record waits as that failure, as in the resume toast, so an unconfirmed agent is never sent again by Resume, and none is counted twice.
CLI actions name their target: Update, Try again, Copy and Failed read as, for example, "Update, Claude Code on build-box". The accessible name starts with the visible label. Long computer names truncate.
Accessible names say the real state: "1 update needs attention" and "4 updates, 2 need attention". "More waiting" is used only when other items wait behind an agent count. The existing translated "agents to check" string and its plural forms are reused.
The middle-ellipsis label now measures with the app's letter-spacing, so long computer names don't overflow by a few pixels.
Why
The owner picked design option C, "One pill", from the status bar declutter mockups. The always-on right side should stay calm. Resume and update states are short-lived and belong behind one glanceable signal, and every existing action stays reachable. Checked against how comparable products handle this.
Linked Issue
N/A: maintainer change from an owner-approved design (internal item 2227).
Visual Proof
All screenshots use fixtures or an isolated headless e2e profile with invented data.
Before: each state was its own text item in the bar (for example "build-box: 5 agents to resume", "1 CLI update", "Update ready").
After:
Worst case at a 600px window, closed:
Worst case, open (light / dark):
A computer that is busy refuses Resume, and the popover stays open:
Multi-computer CLIs at 320px (failed, manual Copy, running):
Only updates pending (one failed):
Real app (headless e2e): calm bar, then an update ready with the popover open:
Testing
I manually tested these changes locally (macOS, headless fixture renderer and headless Electron e2e profile)
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns
attention-summary.test.ts: pill count aggregation across computers and states, the dot logic, and update attention counts (one failure, mixed, completed or running).
native-chat-restart-occurrence.test.ts: against the real occurrence, a held local dismissal with no running row refuses, and nothing is sent after it settles. Idle is accepted exactly once. Refused while in flight, accepted again after it settles. An empty selection has nothing to send.
These tests fail on main because the method doesn't exist there.
Real occurrences (fixture renderer, headless, VITE_ENABLE_REACT_GRAB=false): real restart stores, occurrences, summaries and pill handlers, with only the RPC transport stubbed. A held dismissal on one computer plus partial Resume all: the idle computer's continue is sent once, and the busy one sends nothing and reads "Busy". Focus moves from the removed Resume all to that computer's Resume. Pressing it again while held sends nothing. When the dismissal settles, Busy clears and Resume is accepted once. Retry sends once. In total, 3 continue requests for 3 accepted actions, no duplicates.
Fixture renderer: light and dark, 600px and 320px, RTL and 125% zoom with no clipping. Tab, Enter, Tab through every control, Escape closes and focus returns. Pointer dismissal leaves no tooltip, and the tooltip state resets on open. CLI buttons on two computers carry the visible label plus the CLI and computer, in English and German.
Real app (headless Electron e2e, isolated profile, invented CLI state; the update actions were replaced so no real CLI ran): the bar at 600px and 125% zoom keeps the pill inside it. Opening checks each CLI host once. The other computer's failure dialog names the remote server, Escape returns focus to its Failed button, Try again runs that computer's update and the row reads Updating. Earlier on this branch, the Orca update Open was idempotent, Plugins was in the right-click menu and keyboard-reachable, and the Git Blame toggle worked.
Local gate: check:changed passed 33/33 on the final head (typecheck, unit tests, oxlint, format, localization catalogs, extraction and coverage, ratchets).
Performance
None measurable, because the pill does no more work than the items it replaces. It reads the same stores. Paired computers are read through one useSyncExternalStore over their resume stores. Its snapshot is cached per store list, so a render allocates only when an offer or run actually changed. The host list and update notices are memoized on their inputs, and summarizing is linear in computers plus update notices. The popover body mounts only while open. Opening it asks each listed CLI host once, as the old CLI popover did. The per-host in-flight coalescing in the CLI update slice is kept. A failed host can be re-asked on each open because its failure clears the cooldown, so the bound is one in-flight check per listed host, triggered only by a person opening the popover. The old per-computer resume segments, each with its own subscriptions, are gone.
Risk
The riskiest part is the resume actions. If acceptance were misread, a Resume could look refused while it actually started, or the reverse. Acceptance comes from the occurrence's own turn counter, which moves synchronously when a person's continue takes the turn, and the existing guards still decide. Plugins is no longer a status bar icon; with the app rail on it stays on the rail, otherwise it is in the right-click menu and on its shortcut. A plain revert restores the old items. No saved data or settings change.
Pre-existing and out of scope: the sidebar's "Workspace board moved to the bottom bar" tip can sit over a modal dialog, including the CLI failure dialog. This branch does not touch it.
Combines agent resume states and updates into one status-bar pill.
The status bar puts waiting agents and updates in one pill.
Resume actions report when a computer is busy.
Plugins opens from the status bar's right-click menu.
The keep-awake indicator shows only its icon.
Long computer names fit the available label width more closely.
The previous-review ancestry checks did not pass, so this review covered the full PR.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[Computer resume stores] --> S[Attention summary]
U[App, server, skill and CLI updates] --> S
S --> P[One status-bar pill]
P --> O[Agents and updates popover]
O --> R[Existing resume and update actions]
No actionable comments were generated in the recent review.
Walkthrough
The status bar now presents summarized restart activity and update information through an attention pill and popover. It removes several individual resume and update segments, moves the Plugins entry to the visibility menu, and makes the caffeinate trigger icon-only. The change also adds restart-continuation admission results, updates Agent CLI list actions, adjusts translations, and improves middle-ellipsis text measurement.
Merge Risk: Low · up to fb0d7
This replaces several status bar items with one attention pill and popover. Remaining concerns are minor: a Busy-marker edge case and missing screen-reader announcements, which the author deferred and which match the old behavior. The PR description says C3 review and a UX re-check are still pending, so those should be recorded before merging.
Pre-merge checks: 3 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Description check
The description follows the repository template closely. It has a clear ELI5, a detailed What Changed section, a Why section that cites the owner-approved design, Visual Proof with before and after im…
1. Set the Risk Level field to Low, Medium, or High. 2. Resolve the conflict on review status. The description says C3 was closed without a technical PASS and the objectives say C3 review and a UX re-check are pending. State the final revie…
Passed checks: 3 passed
Check name
Status
Explanation
Title check
The title "feat(status-bar): one pill for agents to resume and pending updates" matches the main change. The PR replaces separate right-side status bar items (agent resume, CLI, server, skill, and app…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "feat(status-bar): one pill for agents to resume and pending updates" matches the main change. The PR replaces separate right-side status bar items (agent resume, CLI, server, skill, and app update items) with one pill and popover that covers agents waiting to resume and pending updates. The title is specific and concise, and it names the scope (status-bar) and the primary change.
Full details: Description check
Explanation
The description follows the repository template closely. It has a clear ELI5, a detailed What Changed section, a Why section that cites the owner-approved design, Visual Proof with before and after images, Testing with checked items and specific test coverage, a Performance section with a concrete answer, and a Risk section with a level and a revert plan. Gaps: the Risk section does not state a level (Low, Medium, or High) in the required Level field. The Linked Issue section says N/A, and the template says there should always be an issue for outside contributors. The author is a maintainer, so this is acceptable, but the justification is an internal item number. The AI Disclosure section is empty. The Review section and the Agent skill upstream boundary checkbox are not filled in. The Notes and Checklist sections are not addressed. The Review record in the opening block says C3 was closed without a technical PASS, and the objectives say C3 review and a UX re-check are still pending. The description therefore conflicts with the objectives on review status and does not say how that gap was resolved. The Testing section lists a manual test on macOS but not Linux or Windows, and the cross-platform checklist item is not addressed.
Resolution
Set the Risk Level field to Low, Medium, or High. 2. Resolve the conflict on review status. The description says C3 was closed without a technical PASS and the objectives say C3 review and a UX re-check are pending. State the final review status on the final head, or confirm the owner's waiver in the description. 3. Fill in or mark N/A the AI Disclosure section. 4. Complete the Review and Agent skill upstream boundary sections. 5. Address the Notes and Checklist items, including cross-platform (Linux, Windows) and remote SSH impact. The description covers macOS only. 6. Confirm the checklist items for pnpm lint, typecheck, test, and build, since the description cites only check:changed. 7. Replace the internal item number in Linked Issue with a reference the reviewers can check, or state the waiver reason in a form they can verify.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
- Resume admission is accepted, busy or gone; Busy holds only until that computer publishes again.
- Focus stays inside the popover when a row's control goes away, and returns to the row after a
CLI failure dialog it opened; the popover hides, not closes, under that dialog.
- Tooltip state resets when the popover opens.
- CLI row actions name the CLI and computer after the visible label; logical spacing; long
computer names truncate.
- Remove the mock-wired UI test and test-only export; real-occurrence fixture; fixture CLI rows
carry their host key.
Files skipped from review as they are similar to previous changes: 5
src/renderer/src/i18n/locales/de.json
src/renderer/src/i18n/locales/en.json
src/renderer/src/i18n/locales/pt.json
src/renderer/src/i18n/locales/ru.json
src/renderer/src/i18n/locales/tr.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
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
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.
ELI5
The right side of the status bar used to fill up with separate text items: agents to resume on each computer, "2 CLI updates", server updates, skill updates and the Orca update. Now there is one small pill. It shows how many agents wait to be resumed. A small amber dot means something else needs a look. Click the pill and everything is in one popover with the same buttons as before.
What Changed
status-bar/attention/). The pill shows "↻ N" for agents waiting to resume across this computer and every paired computer. If nothing waits to resume, it falls back in order to resume progress, then failed or to-check agents, then just-resumed agents, then the update icon with a count. With nothing pending there is no pill. An amber dot marks anything else waiting: a failed resume, a failed update, or one that needs the person.startRestartContinue): accepted, busy (another action holds its turn, such as a dismissal, or a resume is in flight) or gone (nothing to send). The popover closes only when the action was accepted. Otherwise it stays open, and a busy computer's row reads "Busy" until that computer publishes its next answer. Screen readers hear "Busy: ". A refused action is never queued or sent again. The existing single-turn and in-flight guards are unchanged.dir="auto"), and CLI versions always read left to right, so an RTL layout never shows "failed 1" or an upgrade backwards.Why
The owner picked design option C, "One pill", from the status bar declutter mockups. The always-on right side should stay calm. Resume and update states are short-lived and belong behind one glanceable signal, and every existing action stays reachable. Checked against how comparable products handle this.
Linked Issue
N/A: maintainer change from an owner-approved design (internal item 2227).
Visual Proof
All screenshots use fixtures or an isolated headless e2e profile with invented data.
Before: each state was its own text item in the bar (for example "build-box: 5 agents to resume", "1 CLI update", "Update ready").
After:
Worst case at a 600px window, closed:

Worst case, open (light / dark):


A computer that is busy refuses Resume, and the popover stays open:

Multi-computer CLIs at 320px (failed, manual Copy, running):

Only updates pending (one failed):

Real app (headless e2e): calm bar, then an update ready with the popover open:


Testing
I manually tested these changes locally (macOS, headless fixture renderer and headless Electron e2e profile)
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns
attention-summary.test.ts: pill count aggregation across computers and states, the dot logic, and update attention counts (one failure, mixed, completed or running).native-chat-restart-occurrence.test.ts: against the real occurrence, a held local dismissal with no running row refuses, and nothing is sent after it settles. Idle is accepted exactly once. Refused while in flight, accepted again after it settles. An empty selection has nothing to send.These tests fail on main because the method doesn't exist there.
Real occurrences (fixture renderer, headless,
VITE_ENABLE_REACT_GRAB=false): real restart stores, occurrences, summaries and pill handlers, with only the RPC transport stubbed. A held dismissal on one computer plus partial Resume all: the idle computer's continue is sent once, and the busy one sends nothing and reads "Busy". Focus moves from the removed Resume all to that computer's Resume. Pressing it again while held sends nothing. When the dismissal settles, Busy clears and Resume is accepted once. Retry sends once. In total, 3 continue requests for 3 accepted actions, no duplicates.Fixture renderer: light and dark, 600px and 320px, RTL and 125% zoom with no clipping. Tab, Enter, Tab through every control, Escape closes and focus returns. Pointer dismissal leaves no tooltip, and the tooltip state resets on open. CLI buttons on two computers carry the visible label plus the CLI and computer, in English and German.
Real app (headless Electron e2e, isolated profile, invented CLI state; the update actions were replaced so no real CLI ran): the bar at 600px and 125% zoom keeps the pill inside it. Opening checks each CLI host once. The other computer's failure dialog names the remote server, Escape returns focus to its Failed button, Try again runs that computer's update and the row reads Updating. Earlier on this branch, the Orca update Open was idempotent, Plugins was in the right-click menu and keyboard-reachable, and the Git Blame toggle worked.
Local gate:
check:changedpassed 33/33 on the final head (typecheck, unit tests, oxlint, format, localization catalogs, extraction and coverage, ratchets).Performance
None measurable, because the pill does no more work than the items it replaces. It reads the same stores. Paired computers are read through one
useSyncExternalStoreover their resume stores. Its snapshot is cached per store list, so a render allocates only when an offer or run actually changed. The host list and update notices are memoized on their inputs, and summarizing is linear in computers plus update notices. The popover body mounts only while open. Opening it asks each listed CLI host once, as the old CLI popover did. The per-host in-flight coalescing in the CLI update slice is kept. A failed host can be re-asked on each open because its failure clears the cooldown, so the bound is one in-flight check per listed host, triggered only by a person opening the popover. The old per-computer resume segments, each with its own subscriptions, are gone.Risk
The riskiest part is the resume actions. If acceptance were misread, a Resume could look refused while it actually started, or the reverse. Acceptance comes from the occurrence's own turn counter, which moves synchronously when a person's continue takes the turn, and the existing guards still decide. Plugins is no longer a status bar icon; with the app rail on it stays on the rail, otherwise it is in the right-click menu and on its shortcut. A plain revert restores the old items. No saved data or settings change.
Pre-existing and out of scope: the sidebar's "Workspace board moved to the bottom bar" tip can sit over a modal dialog, including the CLI failure dialog. This branch does not touch it.