Skip to content

Sidebar agent rows repeat the agent name next to its icon #265

Closed

Description

@sergiorademacher

Version: Roamgate 0.7.10, Herdr 0.9.1, Linux, desktop browser.

What happens

In the Workspaces sidebar, each nested agent row starts with the agent name, even though the agent icon on its left already identifies the agent. The rows render as agent · tab · pane id · cwd basename:

[claude icon] claude · Alice · p2 · Alice
[claude icon] claude · Infra · p6 · user
[claude icon] claude · Event planning · pJ · Long project folder na…

In my setup all 17 panes, across three workspaces, run Claude Code. The word claude repeats on every row and takes the first, most visible part of a narrow sidebar. Long tab names get truncated. When the cwd basename equals the tab name, the same word also appears twice (Alice · p2 · Alice).

Where it comes from

web/src/components/WorkspaceAgentRows.tsx, AgentRow, nested variant:

{nested
  ? (pane.agent ?? "Agent")
  : (workspaceLabel ?? pane.workspace_id)}
{tabLabel ? <span className="muted"> · {tabLabel}</span> : null}
{showPaneId ? <span className="muted"> · {shortId(pane.pane_id)}</span> : null}
{nested && locationName ? <span className="muted"> · {locationName}</span> : null}

The agent name is already available through AgentStatusIcon and the row's aria-label.

Expected

One of these:

  1. Drop pane.agent from the visible nested title when AgentStatusIcon renders a known agent icon (keep it in title/aria-label), or
  2. Add a setting to hide the agent name, and ideally the pane id and location segments, from sidebar rows.

Herdr's own sidebar lets the user choose the row tokens ([ui.sidebar.agents] rows = [["state_icon", "workspace", "tab"]]). Honoring that config, or offering an equivalent, would also work.

Activity

  1. sergiorademacher commented on Sep 24, 2026

    @sergiorademacher
    Author

    A related detail on the pane id segment (· p2).

    WorkspaceTree.tsx shows it with showPaneId={agents.length > 1}, which counts agents in the whole workspace. The id is only needed to tell apart two agents in the same tab (split panes), where both rows would otherwise read claude · Alice. When each agent lives in its own tab, the tab name already identifies the row, and the id is noise on every row.

    Suggested condition:

    showPaneId={agents.filter((a) => a.tab_id === pane.tab_id).length > 1}

    Result with one agent per tab: claude · Alice · p2 · Alice → claude · Alice · Alice. Two agents in one tab keep their ids.

    Probably small enough to fold into this issue rather than a separate one.

  2. powerfooI commented on Sep 27, 2026

    @powerfooI
    Owner

    Thanks for the clear report and the follow-up about pane IDs. We have confirmed the redundant labels in the Nested layout. The proposed approach is to improve the defaults rather than add a new configuration system:

    1. Avoid repeating a known agent name beside its icon. Keep a readable text name for unknown agents, and retain a text fallback when no useful tab or directory name is available.
    2. Prioritize the tab name and deduplicate the directory name. Use a meaningful tab name when present; otherwise use the directory basename. If both names are the same, show it only once. Keep a different directory name as secondary context.
    3. Show pane IDs only when needed to distinguish rows. Keep them for multiple agents in the same tab, rather than enabling them for every agent in a multi-agent workspace. Also keep them when rows in different tabs would otherwise be indistinguishable within the workspace.
    4. Preserve full details and status. Keep the agent name, tab name, pane ID, and full path available in the tooltip and accessible label. Status indicators remain visible.

    For example, when there is one agent in the tab and no naming ambiguity:

    Before: [Claude icon] claude · Alice · p2 · Alice
    After:  [Claude icon] Alice
    

    Scope: only nested agent rows under Workspaces. The separate Agents panel stays unchanged. No new settings or Herdr row-token configuration integration in this first change.

    Implementation should include regressions for missing/default tab names, unknown agents, duplicate tab/directory names, same-tab split panes, and otherwise ambiguous row titles. This is the proposed solution; it has not been implemented yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions