Skip to content
Source
Sign inSign up
pingdotgg/t3code

Migrate chat scrolling and branch lists to LegendList #1953

Mergedjuliusmarmingemerged 20 commits intomain fromrefs/pull/1953/headmerged by juliusmarminge View on GitHub

Showing 15 changed files with 168 additions and 0 deletions (loading 14).

x
0 of 15 viewed, 15 left
168 additions and 0 deletionsapps/web/src/components/chat/MessagesTimeline.logic.test.tsModified
View file
@@ -1,5 +1,6 @@
import { describe, expect, it } from "vitest";
import {
+ computeStableMessagesTimelineRows,
computeMessageDurationStart,
deriveMessagesTimelineRows,
normalizeCompactToolLabel,
@@ -252,6 +253,8 @@
completionDividerBeforeEntryId: "assistant-final-entry",
isWorking: false,
activeTurnStartedAt: null,
+ turnDiffSummaryByAssistantMessageId: new Map(),
+ revertTurnCountByUserMessageId: new Map(),
});
​
const assistantRows = rows.filter(
@@ -264,4 +267,169 @@
expect(assistantRows[1]?.showAssistantCopyButton).toBe(true);
expect(assistantRows[1]?.showCompletionDivider).toBe(true);
});
+​
+ it("projects assistant diff summaries and user revert counts onto the affected rows", () => {
+ const assistantTurnDiffSummary = {
+ turnId: "turn-1" as never,
+ completedAt: "2026-01-01T00:00:30Z",
+ assistantMessageId: "assistant-1" as never,
+ checkpointTurnCount: 2,
+ files: [{ path: "src/index.ts", additions: 3, deletions: 1 }],
+ };