From 12ba0519989ad95fa5592497452753d931e465a0 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Mon, 23 Nov 2026 11:19:59 +0000 Subject: [PATCH] fix(hub): show who speaks for the whole message, not per sound MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since acf3925 a row sounds in steps (class word, then the text), and each step cleared speech.current at its end, so the caption, the speaking faces and the graph node blinked off between steps. One speaker() helper reads the current step or the item being transmitted; the caption, the faces and the graph node use it. The speech queue and the bubbles stay as they are. ๐ŸŽฏ Fix: 85 % ๐Ÿ’ฅ Break: 5 % ๐Ÿ’ธ Tokens: โ€“ โฑ๏ธ Velocity: โ€“ ๐Ÿ›ก๏ธ Security: 100 % ๐Ÿ† Score: 81 ๐Ÿšฆ Gate: โ›” fix 85 % < 90 Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 --- orchestrator/templates/page-dom.js | 6 +++++- orchestrator/templates/page-graph-layout.js | 2 +- orchestrator/templates/page-radioview.js | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/orchestrator/templates/page-dom.js b/orchestrator/templates/page-dom.js index 77e2998..c96b6a6 100644 --- a/orchestrator/templates/page-dom.js +++ b/orchestrator/templates/page-dom.js @@ -73,7 +73,11 @@ } const faceParts = (key) => Faces.of(key).parts.map(([tag, attrs]) => s(tag, attrs)); - const talking = (key) => Boolean(speech.current && speech.current.who === key); + const speaker = () => { + const now = speech.current || speech.item; + return now && now.who ? now : null; + }; + const talking = (key) => Boolean(speaker() && speaker().who === key); const face = (who, big) => { const key = agentKey(who); return h("span", {class: `avatar${big ? " big" : ""}${talking(key) ? " speaking" : ""}`, "data-face": key, "aria-hidden": "true"}, diff --git a/orchestrator/templates/page-graph-layout.js b/orchestrator/templates/page-graph-layout.js index ce1a3c7..793f06e 100644 --- a/orchestrator/templates/page-graph-layout.js +++ b/orchestrator/templates/page-graph-layout.js @@ -121,7 +121,7 @@ function nodeMark(node, at, gap) { const r = RADIUS[node.kind]; - const classes = ["node", `k-${node.kind}`, node.claims.length ? "claimed" : "", speech.current && speech.current.who === node.id ? "speaking" : ""].filter(Boolean).join(" "); + const classes = ["node", `k-${node.kind}`, node.claims.length ? "claimed" : "", talking(node.id) ? "speaking" : ""].filter(Boolean).join(" "); const tasks = node.tasks.length ? ` ยท ${node.tasks.length} tasks` : ""; return s("g", { class: classes, transform: `translate(${fixed(at.x)} ${fixed(at.y)})`, tabindex: 0, role: "button", "aria-label": `${node.label}, ${NODE_KINDS[node.kind]}`, "data-pick": node.id, diff --git a/orchestrator/templates/page-radioview.js b/orchestrator/templates/page-radioview.js index 48d8d15..a8c86af 100644 --- a/orchestrator/templates/page-radioview.js +++ b/orchestrator/templates/page-radioview.js @@ -102,7 +102,7 @@ } function drawSpeaker() { - const now = speech.current && speech.current.who ? speech.current : null; + const now = speaker(); for (const art of document.querySelectorAll(".avatar[data-face]")) { art.classList.toggle("speaking", Boolean(now && art.dataset.face === now.who)); }