Skip to content

Show branch and worktree under inspector agent rows, like the sidebar - #903

Merged
pondorasti merged 1 commit into
mainfrom
codevisor/inspector-agent-rows-sidebar-attributes
Oct 29, 2026
Merged

pondorasti merged 1 commit into
mainfrom
codevisor/inspector-agent-rows-sidebar-attributes

Conversation

@pondorasti

Copy link
Copy Markdown
Member

The inspector's Agents section showed each child agent as one middle-truncated line. Each row now uses the sidebar's SidebarWorkspaceRowLabel: the title on the first line and the sidebar subtitle under it, e.g. codevisor/butter · butter, or just codevisor/bonito when the worktree matches the title. The status indicator is unchanged.

There is no new formatting code. WorkspaceInspectorPresentation already built a SidebarRowContent for the agent icons, but it passed rowDetails: []. It now passes the user's sidebar properties and grouping, and gets the subtitle from SidebarRowContent.subtitle, which calls SidebarRowSubtitle.make. The two surfaces share every rule, so they can't drift.

On the data side, branch comes from gitLookups.branch(for:): workspace.git first, then the sidebar's branch lookups. The sidebar refreshes those lookups for every listed item, child agents included, so the inspector needs no extra fetch.

Tophat in the macOS dev app with a parent workspace and three child agents in worktrees, two of them renamed:

  • The inspector rows match the sidebar rows: title, then branch · worktree. The row whose title matches its worktree collapses to the branch.
  • Turning Properties › Worktree off in the sidebar menu updates the sidebar and the inspector together.
  • Clicking an inspector agent row still opens that agent.

Before/after screenshots are in the review thread.

🤖 Generated with Claude Code

The inspector's Agents section now renders each child agent with the
sidebar's row label: the title on the first line and the sidebar's
subtitle (branch · worktree, following the user's sidebar properties and
grouping) on the second, keeping the status indicator.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@pondorasti
pondorasti merged commit 130c56c into main Oct 29, 2026
@pondorasti
pondorasti deleted the codevisor/inspector-agent-rows-sidebar-attributes branch October 29, 2026 06:12
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.

1 participant