Files
buzz/desktop/tests
Matt TooheyandClaude Fable 5 c6c455ba92 feat(desktop): show an active-agents dot on the community rail
Give each community button in the experimental far-left rail
(workspaceRail) a green status dot when that community has active
managed agents, so concurrently running workspaces stay visible at a
glance (extends the Phase 3 per-community agents UI scoping):

- Add countActiveAgentsByCommunity to agentRelayScope: active (running
  or deployed, mirroring isManagedAgentActive) agents per community id,
  matched on the normalized relay pin. A blank pin counts toward the
  active community only — the per-surface "blank follows the community
  being viewed" fallback would light every rail dot for one stray
  unstamped record. Communities sharing a relay URL both light up.
- Render the dot at the button's top-right (unread badge/dot keeps
  bottom-right), emerald to mirror the agents list's "online"
  PresenceDot, with the count woven into the tooltip/aria label via a
  new pure communityRailTooltipLabel ("Bravo — 1 agent active").
- Add a slow 60s tier to the useManagedAgentsQuery poll gate while
  agents run only in other communities, so a background process dying
  clears their rail dots (and the "running in other communities" line)
  instead of staying green forever — previously that state could go
  permanently stale once the active community had nothing running.
- Seed support: mock managed agents accept a relayUrl pin in the E2E
  bridge, and the rail spec covers dot-on-running / no-dot-on-stopped
  across two communities.
- Re-register the rail Playwright spec: playwright.config.ts still
  matched the old workspace-rail.spec.ts name after the community-rail
  rename, so the spec had silently stopped running.

Tested: desktop pnpm test (2954 passed, incl. 13 new unit tests), tsc
--noEmit, biome check, Playwright community-rail spec (8 passed, incl.
the new dot test), plus a visual check of the rendered dot.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Matt Toohey <contact@matttoohey.com>
2026-07-16 23:58:10 +10:00
..