Watch
0
0
Fork
You've already forked hyperhive
0

swarm ui: select several agents on the agents page and broadcast to them

Select mode picks agents from the list: the select button in the filter
card, a press on an agent's icon, or a long press on a card starts it. In
it a card toggles a tick instead of opening its details, and the card's own
controls stop answering. A bar at the foot of the list has select all shown,
clear, broadcast and done; Escape leaves the mode.

Broadcast opens a dialog with the picked agents and a message box, sending
through the existing broadcast endpoint; the composer's send and result
parts are now shared with the swarm page's broadcast card. A full send shows
a toast and ends select mode; a partial one keeps the result with a retry
for the agents that failed.
This commit is contained in:
iris 2026-11-22 18:47:53 +01:00
commit 56ed2e07da

View file

@ -153,6 +153,21 @@ and config PR. While the agent list loads for the first time, the page shows gre
placeholder cards with the same layout as the real ones, so the cards don't jump
when the data arrives. The placeholders stand still where motion is off.
To act on several agents at once, press the **select** button in the filter
card, select an agent's icon, or press and hold a card (half a second; moving
the pointer cancels it). That turns on select mode: a round tick marks each
card, selecting a card ticks or unticks it instead of opening its details, and
the card's own buttons (terminal, wanted menu, log in) stop answering so a stray
tap can't start or stop an agent. A bar sticks to the foot of the list with the
count, **select all shown** (the agents the filter leaves), **clear**,
**broadcast…** and **done**. **done**, the button in the filter card, or Escape
leaves select mode and forgets the picks. **broadcast…** opens a dialog that
lists the picked agents and a message box, and sends through the same
`POST /api/agents/broadcast` as the broadcast card (see below). When every agent
got the message, a toast says so and select mode ends. Otherwise the dialog
stays with the per-agent result, and **select the N that failed** picks just
those for another send. One broadcast takes at most 64 agents.
Below the agent's state, message and wanted menu, the details have six sections,
and each reads nothing until you open it. **status** and **terminal** start
open, the other four folded: