fix: remount post-steer stream rows

This commit is contained in:
Shakker
2026-08-21 23:07:43 +01:00
parent 7f5ae9249f
commit 8ce4a8a07d
2 changed files with 8 additions and 1 deletions
@@ -277,6 +277,10 @@ suite.define(() => {
result: "process complete",
toolCallId: "callProcess",
});
const workingRowKey = await page
.locator("[data-virtual-row-key^='stream-run:']")
.last()
.getAttribute("data-virtual-row-key");
const finalText = Array.from(
{ length: 18 },
(_, index) =>
@@ -302,6 +306,7 @@ suite.define(() => {
"xpath=ancestor::div[contains(@class, 'chat-virtual-row')]",
);
await streamingRow.waitFor();
expect(await streamingRow.getAttribute("data-virtual-row-key")).not.toBe(workingRowKey);
const steerBubble = page.locator(".chat-group.user", { hasText: steerText }).last();
const [steerBounds, streamingBounds] = await Promise.all([
steerBubble.boundingBox(),
+3 -1
View File
@@ -714,7 +714,9 @@ export function buildChatItems(props: BuildChatItemsProps): Array<ChatItem | Mes
const liveProgress = resolveProgress();
const liveStreamItem: ChatItem = {
kind: "stream",
key: liveProgress.key,
key: latestBoundaryRunId
? `${liveProgress.key}:after:${latestBoundaryRunId}`
: liveProgress.key,
text: visibleText,
startedAt: timestampAfterVisibleItems(items, props.streamStartedAt ?? Date.now()),
isStreaming: true,