Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/frontend/packages/swarm-ui/test
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas afeb0f9794 swarm UI: an agent that needs a Claude login shows it on its card
The agent's turn-state header ($SWARM.agent-state.<agent>) gains
`needs_login`, set by hive-agent from its own LoginState, so the flag
reaches the swarm without hive-c0re (mara on #5268: "id prefer the agent
container sending the info it needs login without hive").

- swarm-queue-client: `agent_login::Login`, the shared wire type, beside
  `agent_inference::Effective`. `needs_login: Option<bool>` with
  `#[serde(default)]`: a header from an older agent decodes as `None`
  (unknown), never as "needs login" or "logged in".
- hive-agent: the header publisher reads the shared LoginState cell.
  Every writer of that cell emits a status on the bus afterwards, so a
  login change goes out on the next rebuild, not the 60 s refresh.
- swarm-controller: `agent_login::Reported` follows every agent's header
  and keeps the latest flag; `GET /api/agents/status` merges it into each
  row as `needs_login` (null when unknown).
- swarm-ui: AgentCard shows a warning-tone "login needed" badge when the
  row's `needs_login` is true.

Refs #5268
2026-10-14 20:07:46 +02:00
..
agent-types.test.mjs swarm UI: an agent that needs a Claude login shows it on its card 2026-10-14 20:07:46 +02:00
rain.test.mjs swarm-ui: the start page's rain follows the app's motion setting 2026-10-14 18:36:52 +02:00
routes.test.mjs swarm-ui: move the shell's route layout predicates out and test them 2026-10-14 18:36:52 +02:00
settings-types.test.mjs swarm-ui: drop an unused export and test the classifier settings logic 2026-10-14 16:20:37 +02:00
swarm-name.test.mjs swarm-ui: test the rain arithmetic and the swarm name loader 2026-10-14 18:36:52 +02:00
tryout-types.test.mjs review try-out: show why the open-PR button is disabled 2026-10-14 18:36:36 +02:00