@devries-cameron20 / t3code-1 / commits / 8339508f5c
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

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

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

maria committed Sep 2, 2026 at 01:33 UTC 8339508f5c244a63a845004393d7d9e701152d6e
1 file changed +8 -2
apps/web/src/components/chat/MessagesTimeline.logic.test.ts
+8 -2
@@ -1370,7 +1370,7 @@ describe("deriveMessagesTimelineRows", () => {
1370 [undefined, true],
1371 ["inProgress", true],
1372 ["completed", false],
1373 - ["failed", false],
1373 + ["failed", null],
1374 ["declined", false],
1375 ["stopped", false],
1376 ] as const)(
@@ -1406,7 +1406,13 @@ describe("deriveMessagesTimelineRows", () => {
1406 revertTurnCountByUserMessageId: new Map(),
1407 });
1408
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 + }
1416 },
1417 );
1418