Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/frontend/packages/agent/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris 9c72a4ae3e agent web UI: keep the turn-state badge live instead of freezing until reload
The status badge's elapsed-time text ('thinking Xm Ys') was computed
from Date.now() inside the render function, so it only ever advanced
when the component actually re-rendered. Two gaps let it go stale:

- useAgentState's poll loop is a chained setTimeout, which browsers
  throttle (or suspend outright) once the tab is backgrounded, so
  polling could stall for a long time with no way back to a live
  reading short of a full page reload.
- even under healthy polling, the age text only advanced once every
  ~4s (the poll interval) instead of counting up smoothly.

Fix: resync immediately on visibilitychange (so returning to a
backgrounded tab doesn't leave a stale reading), and drive the age
text off its own 1s interval independent of the poll cadence.
2026-08-31 19:02:57 +02:00
..
components Drop classifyEvent.ts, render TermMsg directly 2026-08-30 21:23:28 +02:00
hooks agent web UI: keep the turn-state badge live instead of freezing until reload 2026-08-31 19:02:57 +02:00
lib Drop classifyEvent.ts, render TermMsg directly 2026-08-30 21:23:28 +02:00
agent.css agent page: consolidate alive/thinking/paused into one status badge 2026-08-30 15:12:03 +02:00
colors.css refactor(frontend): base16 theme contract in a swappable colors.css 2026-06-08 21:24:07 +02:00
css.d.ts agent: scaffold Preact rewrite, Header + StatusChips first slice 2026-08-28 22:05:13 +02:00
index.html agent: remove rebuild button, move dashboard link into the links menu 2026-08-28 23:40:56 +02:00
main.tsx agent: cutover — index.html now serves the Preact rewrite, app.js deleted 2026-08-28 23:14:52 +02:00
Root.tsx agent web UI: keep the turn-state badge live instead of freezing until reload 2026-08-31 19:02:57 +02:00
screen.html docs(web-ui/agent): add back-link nav + fix stale doc pointer in screen.html 2026-06-29 00:31:06 +02:00
stats.html feat(#2659): serve hive-bash-mcp over persistent streamable-http, drop stdio bridge 2026-07-23 18:01:20 +02:00
stats.js feat(#2659): serve hive-bash-mcp over persistent streamable-http, drop stdio bridge 2026-07-23 18:01:20 +02:00
theme.css refactor(frontend): base16 theme contract in a swappable colors.css 2026-06-08 21:24:07 +02:00
types.ts agent page: show resolved model as the model badge's tooltip 2026-08-30 14:43:07 +02:00