From e24cfba124c91da0425a9ea15254b0fa67f62332 Mon Sep 17 00:00:00 2001 From: iris Date: Fri, 5 Jun 2026 11:32:25 +0200 Subject: [PATCH] feat(dashboard): preserve call-count prefix on hive-identity title update On refreshState, the hive-identity title update (fired once when hive_name/swarm_name are configured) now reads any existing (N) prefix and preserves it, so the title doesn't briefly drop back to the bare identity string before refreshTabCounts re-applies the prefix. --- frontend/packages/dashboard/src/tabs.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/packages/dashboard/src/tabs.js b/frontend/packages/dashboard/src/tabs.js index 2441836c..22ab322b 100644 --- a/frontend/packages/dashboard/src/tabs.js +++ b/frontend/packages/dashboard/src/tabs.js @@ -3684,7 +3684,10 @@ window.marked = marked; : hive || swarm; hiveId.textContent = label; hiveId.hidden = false; - document.title = label + ' // h1ve-c0re'; + // Preserve any (N) call-count prefix already applied by + // refreshTabCounts so the title doesn't flicker on reload. + const existingPrefix = document.title.match(/^(\(\d+\) )/)?.[1] || ''; + document.title = existingPrefix + label + ' // h1ve-c0re'; } } const openDetails = snapshotOpenDetails();