hyperhive/frontend/packages
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris 3b66f0c8d6 swarm-ui/agents: fix detail panel going stale after refresh or an action
argus, PR review: detailTarget stored the whole AgentRow object at
selection time, so it never picked up a later refresh() or a
declareState patch - the card list updated live, the panel next to it
kept showing whatever was true the moment it was opened. Concrete
repro: open an agent's detail panel, wait for the next refresh or
destroy it from inside the panel itself, watch the panel not update.

Fix: store only the selected agent's name (detailTargetName) and
re-derive the actual row from rows on every render
(rows?.find(r => r.name === detailTargetName)). The panel can't drift
from what the list is showing since it's reading the same array.

Verified with a real refresh cycle against a mock server that returns
different data on the second call: before, both card and panel show
"idle"; after a live refresh, both show the new value in sync.
2026-09-11 22:30:41 +02:00
..
agent agent: add ?hide= URL param to suppress header/composer chrome 2026-09-11 17:10:47 +02:00
dashboard docs: retire the stray top-level web-ui.md, fold it into web-ui/README.md 2026-09-07 15:49:52 +02:00
shared shared/dropdown: optional portal mode escapes a scroll-container clip 2026-09-11 21:20:26 +02:00
swarm-ui swarm-ui/agents: fix detail panel going stale after refresh or an action 2026-09-11 22:30:41 +02:00