feat(desktop): hide sidebar agent chips unless multiple agents are running
Merged
KI
4mo ago+8+8+0123456789-3-3-0123456789
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) inDashboardSidebarWorkspaceDetailsand 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.lockwith 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 checkpasses on the touched file
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
hasMultipleAgentsandshowAgentChipsinDashboardSidebarWorkspaceDetails. - 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.
- Gate agent chips on multiple agents via
-
Dependencies
- Sync
bun.lockwith@superset/desktop@1.13.0and@superset/host-service@0.8.23.
- Sync
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.