From f39015e41d76c6b9b714b789e2e5d87200e6cdbe Mon Sep 17 00:00:00 2001 From: iris Date: Mon, 1 Jun 2026 17:47:33 +0200 Subject: [PATCH] fix(961): remove stale manager/hm1nd references from dashboard tabs.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three post-rename artifacts: 1. journalUnit: was 'hive-m1nd.service' for the manager branch. Both roles use 'hive-ag3nt.service' since the harness unification — always use 'hive-ag3nt.service'. 2. buildTargetChips: hardcoded ['operator', 'manager'] candidates + filter by n !== 'manager'. After the rename the manager's c.name is 'root', so it was excluded from the filter but not from the hardcoded initial list — the manager could appear twice or be listed as 'manager' when its real broker name is 'root'. Fix: derive the manager's name from c.is_manager on containersState; filter sub-agents by !c.is_manager rather than by hardcoded string. 3. schedulesTableAgentSet: same hardcoded 'manager' + filter pattern as buildTargetChips. Same fix applied. --- frontend/packages/dashboard/src/tabs.js | 27 ++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/frontend/packages/dashboard/src/tabs.js b/frontend/packages/dashboard/src/tabs.js index c822e739..38a20e39 100644 --- a/frontend/packages/dashboard/src/tabs.js +++ b/frontend/packages/dashboard/src/tabs.js @@ -708,7 +708,7 @@ window.marked = marked; // Per-container journald viewer. Opens the side panel and // fetches the last N lines; refresh re-fetches; unit selector // narrows to the harness service (or empty = full machine). - const journalUnit = c.is_manager ? 'hive-m1nd.service' : 'hive-ag3nt.service'; + const journalUnit = 'hive-ag3nt.service'; drill.append(buildJournalTrigger(c.container, journalUnit)); // Build-log viewer: lists recent nix build / nixos-container // invocations for this agent, with click-to-expand full @@ -2486,17 +2486,24 @@ window.marked = marked; // Targets multi-select chip box — shared between the new-schedule // form and the edit-schedule form. Same DOM shape, same candidate - // list (containers + operator + manager); only the chip element id + // list (containers + operator + root); only the chip element id // prefix and checkbox field name vary. Used to be inlined twice in // near-identical 18-line blocks; consolidated here so a future // change (new chip kind, candidate-list source swap, etc.) lives in // one place. Returns the wrapping `