authorgravatar for maria@kuuro.netmaria <maria@kuuro.net> 2026-09-02 01:33:54-04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-02 01:33:54-04:00
log8339508f5c244a63a845004393d7d9e701152d6e
tree5d5ce3eb829ee533097b1f0d3cdaf719a5bec8d7
parentc15735dd8894f829ce396c922ce4b5a48073f05a
signature Signed by PGP key B5690EEEBB952194

fix(chat): align failed task progress test (#9172)

Co-authored-by: maria-rcks <254055478+maria-rcks@users.noreply.github.com>

1 files changed, 8 insertions(+), 2 deletions(-)

apps/web/src/components/chat/MessagesTimeline.logic.test.ts+8-2
...@@ -1370,7 +1370,7 @@ describe("deriveMessagesTimelineRows", () => {...@@ -1370,7 +1370,7 @@ describe("deriveMessagesTimelineRows", () => {
1370 [undefined, true],1370 [undefined, true],
1371 ["inProgress", true],1371 ["inProgress", true],
1372 ["completed", false],1372 ["completed", false],
1373 ["failed", false],1373 ["failed", null],
1374 ["declined", false],1374 ["declined", false],
1375 ["stopped", false],1375 ["stopped", false],
1376 ] as const)(1376 ] as const)(
...@@ -1406,7 +1406,13 @@ describe("deriveMessagesTimelineRows", () => {...@@ -1406,7 +1406,13 @@ describe("deriveMessagesTimelineRows", () => {
1406 revertTurnCountByUserMessageId: new Map(),1406 revertTurnCountByUserMessageId: new Map(),
1407 });1407 });
14081408
1409 expect(rows.find((row) => row.kind === "work-live")).toMatchObject({ active });1409 const workLiveRow = rows.find((row) => row.kind === "work-live");
1410 if (active === null) {
1411 expect(workLiveRow).toBeUndefined();
1412 expect(rows.at(-1)).toMatchObject({ kind: "thinking", id: "live-activity-row" });
1413 } else {
1414 expect(workLiveRow).toMatchObject({ active });
1415 }
1410 },1416 },
1411 );1417 );
14121418