diff --git a/frontend/packages/dashboard/src/tabs.js b/frontend/packages/dashboard/src/tabs.js index 5ef70fc0..2441836c 100644 --- a/frontend/packages/dashboard/src/tabs.js +++ b/frontend/packages/dashboard/src/tabs.js @@ -4036,6 +4036,12 @@ window.marked = marked; (approvalsState?.pending?.length ?? 0) + (questionsState?.pending?.length ?? 0); setTabCount('call', callCount); + // Browser tab title prefix — lets the operator see the pending + // call count without switching to the window. Strips any existing + // `(N) ` prefix before re-applying so identity-title updates + // (which run once on state load, not every tick) compose cleanly. + const rawTitle = document.title.replace(/^\(\d+\) /, ''); + document.title = callCount > 0 ? `(${callCount}) ${rawTitle}` : rawTitle; // SYST3M — queued + running rebuild_queue entries (terminal // entries are kept for history but aren't 'attention'). let sysCount = 0;