cylon animation

This commit is contained in:
Ian Gulliver
2026-10-16 08:34:06 -07:00
parent 19e6881618
commit 90f74a739e
5 changed files with 14 additions and 13 deletions
+4 -4
View File
@@ -237,7 +237,7 @@ export function mountChat(root: HTMLElement, src: ChatSource, makeHead: (rerende
if (anchor?.parentNode === transcript) {
transcript.insertBefore(el, anchor);
} else {
transcript.append(el);
transcript.insertBefore(el, scanner);
}
};
const syncRunning = () => setRunning(src.session()?.state === "running" && ctx.open);
@@ -528,10 +528,10 @@ export function mountChat(root: HTMLElement, src: ChatSource, makeHead: (rerende
renderHead();
if (!src.key()) {
renderComposer();
replace(transcript, h("div", { class: "empty" }, src.empty));
replace(transcript, h("div", { class: "empty" }, src.empty), scanner);
return;
}
replace(transcript);
replace(transcript, scanner);
appendEvents(src.events());
renderComposer();
};
@@ -547,7 +547,7 @@ export function mountChat(root: HTMLElement, src: ChatSource, makeHead: (rerende
onEach(["tasks", "sessions"], () => fillTodoLinks(transcript, models[0]!)),
];
replace(root, h("div", { class: "transcript-view" }, head, transcript, scanner, composer));
replace(root, h("div", { class: "transcript-view" }, head, transcript, composer));
renderAll();
return () => {
for (const off of offs) {