fix(web): keep agent transcript pinned while typing
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user