Skip to content

fix(workspace): sidebar agent roster — no loading state, unbounded list, slug-as-title naming #2159

Closed

Description

@vybe

Summary

The Workspace sidebar's agent roster has three defects that compound on any real fleet: (1) the initial roster load is slow on a large fleet and renders no loading state, so the page looks hung rather than loading; (2) the agents block renders the entire roster as one long list; (3) each row shows the slug as the title and the description as the subtitle, instead of the human-facing display label.

Context

Part of the Workspace polish pass following the ent#357–ent#361 wave (sidebar IA landed in ent#359 / PR #2149). The roster payload (PortalAgentCard in src/backend/client_portal/models.py) currently carries name (slug) + description but no display_label, so the frontend cannot render the business name the dashboard tiles show (ent#181/#1640) without a backend addition.

Acceptance Criteria

  • While the roster is loading, the sidebar shows an explicit loading state (per the design-system data-loading motion standard, docs/memory/design-system-contract.md) — a large fleet never looks like a hung page
  • The agents block shows the top 5 agents by default, with a "Show all (N)" affordance that expands the full roster in place (no scroll/state reset)
  • Row title = the agent's display label (fallback to slug when unset); row subtitle = the slug — the description no longer appears in the row
  • PortalAgentCard carries display_label, populated in the roster builder (src/backend/client_portal/service.py); older payloads without the field degrade to slug-only rendering
  • Roster fetch latency on a large fleet is measured and any per-agent N+1 in the roster/briefing assembly is identified (fix may land here or split out if large)

Technical Notes

  • Frontend: src/frontend/src/components/portal/PortalSidebar.vue (agents block), src/frontend/src/views/Portal.vue::bootstrap() (roster fetch)
  • Backend: src/backend/client_portal/models.py::PortalAgentCard, service.py roster + _agent_briefing (the briefing ladder is resolved best-effort at sign-in — a likely contributor to slow roster loads on large fleets; consider deferring briefing hydration off the roster's critical path)
  • Display label source: agent_ownership display label (ent#181/feat: set an agent's display label at creation time (#964 follow-up 2/5 — residual) #1640), same value the dashboard tiles render via agentDisplayName()

Activity

  1. added
    priority-p1
    type-bug
    theme-ui-ux
    status-ready
    on Aug 13, 2026
  2. added
    status-in-progress
    and removed
    status-ready
    on Aug 13, 2026
  3. self-assigned this
    on Aug 13, 2026
  4. added
    status-in-dev
    and removed
    status-in-progress
    on Aug 13, 2026
  5. removed
    status-in-dev
    on Aug 17, 2026
  6. added a commit that references this issue on Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority-p1theme-ui-uxtype-bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions