Hide the lead's nothing-to-say turns from its transcript
This commit is contained in:
+6
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user