feat(desktop): hide sidebar agent chips unless multiple agents are running

Merged
KI
4mo ago
+8-3

Summary

  • The v2 sidebar activity strip now renders inline agent chips only when a workspace has more than one running agent; a lone agent is the norm and showing it added no signal.
  • The rule is expressed as named conditions (hasMultipleAgents, showAgentChips) in DashboardSidebarWorkspaceDetails and documented in the component JSDoc.
  • Port pills are unaffected: with chips hidden the existing logic already drops the agent-adjacent margin, and the strip still renders null when there are no ports and no visible agents.
  • Also syncs bun.lock with the 1.13.0 / host-service 0.8.23 version bumps from main.

Test Plan

  • Workspace with one running agent: no agent chip in the activity strip; port pills render as before
  • Workspace with two or more agents: chips appear and morph into labeled pills on hover
  • Workspace with one agent and no ports: no strip rendered
  • bunx biome check passes on the touched file

Open in Stage

Summary by cubic

Show agent chips in the sidebar only when a workspace has multiple running agents. This reduces noise; ports behave the same, and the strip hides when there are no ports and no visible agents.

  • New Features

    • Gate agent chips on multiple agents via hasMultipleAgents and showAgentChips in DashboardSidebarWorkspaceDetails.
    • Hide chip for a single agent; show chips for 2+ and morph to labeled pills on hover.
    • Keep existing port pill layout; strip returns null when empty.
  • Dependencies

    • Sync bun.lock with @superset/desktop@1.13.0 and @superset/host-service@0.8.23.

Summary by CodeRabbit

  • Bug Fixes
    • Workspace agent chips now appear only when the workspace agents row feature is enabled and there are multiple running agents.
    • A single running agent is now treated as the default and no longer shows chips, creating a cleaner workspace view.