Skip to content

Agents panel: the second line repeats the agent kind next to its mark #754

Closed

Description

@sergiorademacher

Version: herdr-web-ui 0.4.6 (7e12a89), Herdr 0.9.3, Linux, desktop browser.

What happens

In the Agents panel, every row starts with the agent's provider mark, and the second line repeats the same agent in words:

[Claude mark] Alice
              claude · Agents · Alice
[Claude mark] Infra
              peter · claude · Agents · Infra

In my setup all panes run Claude Code, so claude takes the first slot of the second line on every row. On a narrow sidebar the workspace and tab names that actually tell rows apart get truncated.

Where it comes from

src/components/AgentSidebar.tsx passes the agent kind to agentContext as kindLabel:

const kindLabel = name !== null && agentLabel === name ? entry.canonicalAgent ?? agent?.title?.trim() ?? null : agentLabel;
const context = agentContext({ agentLabel: kindLabel, title, ... }).join(" · ");

and agentContext (src/lib/sidebarAgents.ts) puts it first unless it equals the title. AgentRowBody already draws <AgentMark> for the same agent, so a known agent is named twice.

Expected

When paneMark(entry) resolves to a known mark, leave the kind out of the visible second line. Keep it in the row's tooltip and in a visually hidden span, because the mark is aria-hidden and the kind is otherwise the only text that names the agent for a screen reader. Unknown agents, with the generic mark, keep the word.

Result for the rows above:

[Claude mark] Alice
              Agents · Alice
[Claude mark] Infra
              peter · Agents · Infra

The same redundancy was reported and fixed in roamgate's sidebar: powerfooI/roamgate#265

Activity

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