mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-24 19:35:28 -06:00
fix: remount post-steer stream rows
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user