feat(hub): an answered decision row shows greyed with its answer until its agent closes it
🧪 Test / 🧪 Lock + lint (push) Waiting to run

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),
+1 -1
View File
@@ -97,7 +97,7 @@ svg .forecast-label { fill: var(--ok); font-size: var(--fs-2xs); font-weight: 65
.burn-forecast { display: inline-flex; align-items: center; gap: 6px; }
svg .node.a-worktree.open circle { stroke: var(--warn); stroke-width: 2.6; stroke-dasharray: 3 2; }
svg .edge.flow { stroke-dasharray: 2 5; }
.inbox-list > li[data-blocked], .feed > li[data-blocked], .operator-list > li { filter: grayscale(1); opacity: 0.72; }
.inbox-list > li[data-blocked], .feed > li[data-blocked], .feed > li[data-answered], .operator-list > li { filter: grayscale(1); opacity: 0.72; }
.item-blocked { display: flex; align-items: flex-start; gap: 6px; margin: 4px 0 0; color: var(--muted); font-size: var(--fs-sm); }
.operator-rows { display: grid; gap: 6px; margin-top: var(--sp-3); }
.operator-rows > h3 { display: flex; align-items: center; gap: 8px; margin: 0; }