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", () => {
13701370 [undefined, true],
13711371 ["inProgress", true],
13721372 ["completed", false],
1373 ["failed", false],
1373 ["failed", null],
13741374 ["declined", false],
13751375 ["stopped", false],
13761376 ] as const)(
......@@ -1406,7 +1406,13 @@ describe("deriveMessagesTimelineRows", () => {
14061406 revertTurnCountByUserMessageId: new Map(),
14071407 });
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 }
14101416 },
14111417 );
14121418