Skip to content

feat: Render agent display name on the nine roomy UI surfaces (#964 follow-up 3/5) #1641

Closed

Description

@vybe

Summary

Render the display name with the slug beneath it on the nine UI surfaces that have room for a two-line treatment, and retire the template-derived fallback in favour of the #964 precedence chain. This is where users first see the feature.

Follow-up 3 of 5 from the design decision on #964.

Context

Of ~67 agent-name render sites, only nine are roomy enough for "display name primary, slug secondary". Three of them (OverviewPanel.vue, InfoPanel.vue, and the public chat header via src/backend/routers/public.py) already render a template-derived friendly name — this issue switches them onto the durable precedence chain so the old, inconsistent path retires rather than lingering alongside the new one.

The core constraint from #964: when a display name is set, the slug stays visible so it's always clear which agent you're looking at.

Acceptance Criteria

  • Two-line treatment (display name primary, slug secondary) on all nine roomy surfaces:
    • src/frontend/src/components/AgentHeader.vue (badge row directly below is the natural slug slot)
    • src/frontend/src/components/OverviewPanel.vue
    • src/frontend/src/components/AgentTile.vue (reuse the existing .t-repo secondary line)
    • src/frontend/src/components/portal/PortalBriefing.vue
    • src/frontend/src/components/portal/PortalSidebar.vue
    • src/frontend/src/components/portal/PortalConversation.vue
    • src/frontend/src/views/enterprise/PortalChat.vue
    • src/frontend/src/views/enterprise/ClientPortal.vue
    • src/frontend/src/views/MobileAdmin.vue
  • When no display name is set, the slug is promoted to primary and there is no dangling empty secondary line
  • OverviewPanel.vue / InfoPanel.vue / public chat header read the precedence chain (DB → template → slug) rather than template-only
  • src/backend/routers/public.py reads the column instead of falling back through container labels; the friendly name now renders when the agent is stopped
  • src/backend/routers/voice.py stops synthesising a name via agent_name.replace("-", " ").title()
  • AgentAvatar still receives the slug — verified that setting a display name does not change any agent's avatar colour or initials
  • Dark mode + truncation verified on every surface
  • Frontend e2e snapshots updated

Technical Notes

Idiom to copy — already in the codebase at src/frontend/src/components/SharingPanel.vue, which promotes the identity to primary when there's no friendly name so there's never an empty line:

<span class="font-medium">{{ x.display_name || x.identity }}</span>
<span v-if="x.display_name" class="block text-xs text-gray-500 dark:text-gray-400">{{ x.identity }}</span>

Avatar risk (load-bearing). src/frontend/src/components/AgentAvatar.vue derives initials from the name and hashes it into the background gradient. Passing a display name makes "TOM — Marketing operations" yield initials TM and silently recolours every agent's avatar the moment a name is set — across 16 call sites, plus a duplicate implementation in ClientPortal.vue. Per the #964 decision: keep passing the slug so identity colour stays stable. If a surface wants display-name initials, add a separate :initials-from prop rather than repointing :name.

Collaboration graph is deliberately out of scope here — AgentNode.vue uses data.label as both display text and API key (router.push, toggleAutonomy, toggleAgentRunning), so it needs the sibling-field change in src/frontend/src/stores/network.js. Handled in the long-tail issue.

Depends on: the #964 schema/API/MCP issue.

Activity

  1. added
    priority-p2
    type-feature
    theme-ui-ux
    complexity-medium
    status-ready
    on Jul 15, 2026
  2. added
    status-in-dev
    and removed
    status-ready
    on Jul 20, 2026
  3. removed
    status-in-dev
    on Aug 7, 2026
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

    complexity-mediumpriority-p2theme-ui-uxtype-feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions