Watch
0
0
Fork
You've already forked hyperhive
0

drop hive and agent response fields the frontend never reads

This commit is contained in:
atlas 2026-11-13 03:25:41 +01:00 • committed by mara
commit a437f9ccd5

View file

@ -92,7 +92,7 @@ export function syncTransientsFromSnapshot(s) {
// Snapshot ships `secs` (server-computed); reconstruct an
// approximate since_unix so the live ticker keeps progressing
// without surprising jumps when the next snapshot lands.
byKind.set(t.kind, t.since_unix ?? nowUnix - (t.secs || 0));
byKind.set(t.kind, nowUnix - (t.secs || 0));
}
}
export function applyTransientSet(ev) {
@ -193,9 +193,8 @@ function buildAgentMenu(c) {
// ─── port conflicts ──────────────────────────────────────────────────────────
// Re-derive port conflicts from the live containers map. Mirrors the
// server-side `build_port_conflicts` so the banner reacts to event
// updates instead of waiting for a /api/state refetch.
// Derive port conflicts from the live containers map, so the banner
// reacts to event updates without a /api/state refetch.
function derivePortConflicts(containers) {
const byPort = new Map();
for (const c of containers) {