Watch
0
0
Fork
You've already forked hyperhive
0

swarm-ui: show how recent each subagent is in the details panel

The subagent list endpoint now returns {name, last_row_unix} per
subagent, the publish time of its newest terminal row, read from the
queue controller-side so agents publish nothing new. The panel sorts
newest first, shows a ticking age beside each name, and dims one quiet
for 15 minutes.

Closes #4928
This commit is contained in:
iris 2026-10-04 16:21:12 +02:00 • committed by mara
commit 84c89de71c
4 changed files with 124 additions and 30 deletions

View file

@ -66,7 +66,8 @@ The agent's subagent daemon publishes each subagent's terminal rows on
into a stream named `term-sub-<agent>` that swarm-controller creates for every
declared agent. The stream keeps rows for 24 hours. swarm-controller serves the list as
`GET /api/agents/<name>/subagents`, the subagents named by the subjects in that
stream, and relays one subagent's rows as SSE on
stream, each with `last_row_unix`, the stream's publish time of its newest row,
and relays one subagent's rows as SSE on
`GET /api/agents/<name>/subagents/<subagent>/term/stream`. An agent with no
store identity, or no queue address, publishes no subagent terminals.