feat(hub): an answered decision row shows greyed with its answer until its agent closes it
🧪 Test / 🧪 Lock + lint (push) Canceled after 0s

The stream kept an operator decision row the operator had already answered as waiting with live options and actions; a second pick ended in 409 answered. The stream event now carries ref.answered, and the row stays visible (also under For you) but greyed like a blocked row, with the pills decided and the answer, without options and without actions. The agent still closes the row; the hub offers no remove.

🎯 Fix: 95 %
💥 Break: 3 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 92
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kevin Veen-BirkenbachandClaude Opus 5.5 committed 2026-11-25 10:30:15 +00:00
1 parent 724042aa5b
commit e5fd70e183
5 files changed
+68 -6

No files matched your search

+7 -3
View File
@@ -98,6 +98,9 @@
if (entry.kind === "cron") {
return [pill(ref.active ? "active" : "inactive", ref.active ? "ok" : "neutral")];
}
if (entry.kind === "operator" && ref.answered) {
return [status("decided"), pill(ref.answered, "ok")];
}
if (entry.kind === "run" || entry.kind === "operator" || entry.kind === "register") {
return [ref.status ? status(ref.status) : null];
}
@@ -135,15 +138,16 @@
}
function eventRow(entry) {
const item = entry.waiting ? inboxOf(entry) : null;
const answered = entry.kind === "operator" && entry.ref.answered;
const item = entry.waiting && !answered ? inboxOf(entry) : null;
const choice = item ? choiceOf(item, () => {}) : null;
const alarm = entry.kind === "radio" && (entry.part === "mayday" || entry.part === "pan-pan");
const renamed = entry.now && entry.now !== entry.agent ? h("span", {title: `now: ${entry.now}`}, person(entry.agent)) : person(entry.agent);
const who = entry.agent ? [face(entry.agent, false), renamed] : entry.session ? h("strong", {title: entry.session}, entry.session.slice(0, 8)) : null;
const headline = entry.kind === "transcript" || entry.kind === "ask" || entry.kind === "operator" ? null : h("span", {class: "headline"}, Receipts.headline(entry));
const blocked = (item && item.blocked) || (entry.kind === "operator" && entry.ref.blocked) || "";
return h("li", {class: `entry k-${entry.kind}${entry.waiting ? " waiting" : ""}${alarm ? " alarm" : ""}`, "data-ref": item ? keyOf(item) : null, "data-item": `message:${entry.ts}/${entry.id}`, "data-to": item && item.to ? item.to : null,
"data-blocked": blocked ? "" : null, title: blocked || null},
return h("li", {class: `entry k-${entry.kind}${entry.waiting && !answered ? " waiting" : ""}${alarm ? " alarm" : ""}`, "data-ref": item ? keyOf(item) : null, "data-item": `message:${entry.ts}/${entry.id}`, "data-to": item && item.to ? item.to : null,
"data-blocked": blocked ? "" : null, "data-answered": answered ? "" : null, title: blocked || null},
h("div", {class: "msg-meta"}, when(entry.ts), kindPill(entry), extras(entry)),
h("div", {},
h("div", {class: "route", "data-star-slot": ""}, who, entry.sub ? h("button", {type: "button", class: "linkish muted", on: {click: () => focusSub(entry.session, entry.sub)}}, `› Subagent ${entry.sub.slice(0, 12)}`) : null, entry.kind === "ask" ? h("strong", {}, entry.title) : null, headline),