Hide the lead's nothing-to-say turns from its transcript

This commit is contained in:
Ian Gulliver
2026-10-15 10:21:34 -07:00
parent 03b70bd44e
commit 40595d4c5a
4 changed files with 14 additions and 8 deletions
+6 -3
View File
@@ -401,9 +401,12 @@ export function mountChat(root, src, makeHead) {
continue;
}
if (ev.kind === "turn.ended" && ctx.quiet && ctx.turnStart?.parentNode === transcript) {
const brief = ctx.turnStart.querySelector(".tool-brief")?.textContent;
const label = h("div", {}, brief && h("span", { class: "tool-name" }, "byre"), brief && " ", h("span", { class: "tool-brief" }, brief ? `${brief} · nothing to say` : "nothing to say"));
addAnchor(ev.seq, foldTurn(ctx.turnStart, label), true);
let node = ctx.turnStart;
while (node && node !== spinner) {
const next = node.nextSibling;
node.remove();
node = next;
}
ctx.turnStart = undefined;
ctx.quiet = false;
continue;
+1 -1
View File
File diff suppressed because one or more lines are too long
+6 -3
View File
@@ -484,9 +484,12 @@ export function mountChat(root: HTMLElement, src: ChatSource, makeHead: (rerende
continue;
}
if (ev.kind === "turn.ended" && ctx.quiet && ctx.turnStart?.parentNode === transcript) {
const brief = ctx.turnStart.querySelector(".tool-brief")?.textContent;
const label = h("div", {}, brief && h("span", { class: "tool-name" }, "byre"), brief && " ", h("span", { class: "tool-brief" }, brief ? `${brief} · nothing to say` : "nothing to say"));
addAnchor(ev.seq, foldTurn(ctx.turnStart, label), true);
let node: ChildNode | null = ctx.turnStart;
while (node && node !== spinner) {
const next: ChildNode | null = node.nextSibling;
node.remove();
node = next;
}
ctx.turnStart = undefined;
ctx.quiet = false;
continue;