Repository navigation
feat(site/src/pages/AgentsPage/components): list non-idle subagents in the overview card - #31410
Merged
Merged
Conversation
…d view Add ChatOverviewCardView, the card that a later change shows in the chat's top-right corner while the right panel is closed. It lists the chat cost, the uncommitted changes per repository, the pull requests, and the attachments. A row opens the matching right panel tab through onOpenTab. A clean repository shows +0 -0, so the card has a Changes row when AI Gateway turns cost off. Nothing mounts the view yet.
…n the overview card Add a Subagents section to the overview card. It lists the subagents that are not idle, at most five, with the ones that need the user (error, requires action) first, so the cap never hides them. The heading counts all subagents, so a chat whose subagents are all idle shows "0 of N not idle" instead of the empty state. A row links to the subagent's chat.
…d view Rename the view file to ChatOverviewCardView.tsx, so the container in a later change can take ChatOverviewCard.tsx, as AgentChatPage does. Rows now call onOpenTarget with a target object, so the deep links later only add a view to it. A titled OverviewListSection replaces the repeated "if not empty, section around a list" blocks, and RepoDiffStat holds the +0 -0 placeholder. A repository without changes is no longer a button: the Git panel lists only repositories with changes, so the row had nothing to open.
Move the Subagents section into a SubagentsSection that owns the filter, the five-row cap, and the heading, with isIdle and needsUser naming the two status groups.
…t into its section and name the clean repository check
…ard labels in a tooltip
# Conflicts: # site/src/pages/AgentsPage/components/ChatOverviewCardView.test.tsx # site/src/pages/AgentsPage/components/ChatOverviewCardView.tsx
…ooltip through its accessible description
# Conflicts: # site/src/pages/AgentsPage/components/ChatOverviewCardView.test.tsx
…iew card comments Keep the JSDoc on exported symbols and the comments that explain non-obvious behavior (cost states, subagent cost scope, attachment order, the clean repository badge, toggle focus, and why rows have tooltips). Drop comments that restate names or the code below them, and the per-story doc comments.
…accessibility review
# Conflicts: # site/src/pages/AgentsPage/components/ChatOverviewCardView.test.tsx # site/src/pages/AgentsPage/components/ChatOverviewCardView.tsx
…y for the overview card rows
# Conflicts: # site/src/pages/AgentsPage/components/ChatOverviewCardView.tsx
… role in the clean repository test
…ins in the overview card with padding The card now pads by px-1.5 and its headings, empty and loading states, and rows pad themselves, so rows no longer pull outward with -mx-1.5. Text, icons, and hover areas stay in place; section dividers run 6px closer to the card edge.
… in the overview card The Changes section listed one row per repository but labeled each row with its branch, so two repositories on the same branch looked the same, and the toggle counted repositories as changes. Rename the section to Repositories, label each row with the repository name, and show the branch as the subtitle.
…ies in the overview card Show "No branch" when HEAD is detached instead of an empty subtitle, use a repository icon now that rows name repositories, and drop a test assertion on rendered output that the tab order test already covers.
…gents # Conflicts: # site/src/pages/AgentsPage/components/ChatOverviewCardView.stories.tsx # site/src/pages/AgentsPage/components/ChatOverviewCardView.test.tsx # site/src/pages/AgentsPage/components/ChatOverviewCardView.tsx
jaaydenh
approved these changes
Nov 13, 2026
jaaydenh
temporarily deployed
to
docs-preview
November 13, 2026 08:58 — with
GitHub Actions
Inactive
This branch was previously deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Adds a Subagents section to the overview card view from #31409. It lists at most five subagents that are not idle, with no toggle. A row links to the subagent's chat. When its title is cut off, a tooltip shows it in full on hover and on keyboard focus. Chats can have 100 or more subagents, and the sidebar's chat tree already lists all of them.
Subagents that need the user (
error,requires_action) sort first, so the five-row cap hides them last. The order within each group stays as the API returns it, newest first. The heading reads "Subagents · N of M not idle" and counts every subagent. A chat whose subagents are all idle shows that heading instead of "Nothing to show yet".The prototype in #31260 said "active" and counted errored subagents. The shared
isActiveChatStatusleaves errors out, so I kept errors in the list and changed the word to "not idle". That matches the "Idle" label of thewaitingstatus. The wording is an open question for Jaayden in #31412.How to test
pages/AgentsPage/ChatOverviewCardView, storiesManySubagentsandIdleSubagents.pnpm exec vitest run --project=unit src/pages/AgentsPage/components/ChatOverviewCardView.test.tsxinsite/.What to look at first
SubagentsSection: the filter, the sort, the cap, and the count in one component.OverviewRow: the new link form. Its props type allowsonClickorto, never both.Review history
Follow-up fix: the link row uses the tooltip from #31409, which now opens only for truncated text. A new test focuses a truncated subagent row and checks its accessible description. It fails when the link row skips the tooltip. No existing assertion changed.
origin/mainreached this branch by merge from #31409.Polish pass changes: extracted
SubagentsSectionand named the two status checksisIdleandneedsUser. Behavior and test assertions are unchanged.Declined:
isIdle. The polish plan named this check on purpose, and it reads next toneedsUser.Generated with
xum• Model:anthropic:claude-opus-5-5• Thinking:high