fix(web): keep agent transcript pinned while typing

This commit is contained in:
2026-11-08 18:32:19 -08:00
parent e9967ddaf8
commit bb43b8beda
5 changed files with 173 additions and 1 deletions
+10
View File
@@ -64,6 +64,16 @@ function Fixture() {
[95, shorterReply], [130, "A concise streamed final answer with one extra line.\n\nThe last snapshot settles the message height."],
[165, finalReply],
] as const;
window.setTimeout(() => {
const textarea = document.querySelector<HTMLTextAreaElement>('textarea[aria-label="Message Sybil Agent"]')!;
textarea.value = Array.from({ length: 8 }, (_, index) => `Concurrent composer draft ${index + 1}`).join("\n");
textarea.dispatchEvent(new Event("input", { bubbles: true }));
}, 25);
window.setTimeout(() => {
const textarea = document.querySelector<HTMLTextAreaElement>('textarea[aria-label="Message Sybil Agent"]')!;
textarea.value = "";
textarea.dispatchEvent(new Event("input", { bubbles: true }));
}, 115);
for (const [delay, content] of streamSnapshots) window.setTimeout(() => setRoomState(current => ({
...current,
messages: current.messages.map(item => item.id === "fixture-agent-reply" ? { ...item, content } : item),