Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): add chat settings to compact the work log and hide reasoning #18993

ClosedECuteri(GitHub profile, opens in a new tab)wants to merge 6 commits intomain fromrefs/pull/18993/headopened View on GitHub

Showing 7 changed files with 187 additions and 0 deletions (loading 6).

x
0 of 7 viewed, 7 left
187 additions and 0 deletionsapps/web/src/components/chat/MessagesTimeline.density.test.tsAdded
View file
@@ -0,0 +1,187 @@
+import { describe, expect, it } from "vite-plus/test";
+import {
+ applyTimelineDensity,
+ deriveMessagesTimelineRows,
+ type MessagesTimelineRow,
+} from "./MessagesTimeline.logic";
+​
+type WorkEntry = Extract<MessagesTimelineRow, { kind: "work" }>["groupedEntries"][number];
+const entry = (id: string, itemType: string) =>
+ ({
+ id,
+ label: id,
+ detail: id,
+ itemType,
+ tone: itemType === "reasoning" ? "thinking" : "tool",
+ createdAt: "2026-01-01T00:00:00Z",
+ }) as unknown as WorkEntry;
+const work = (
+ id: string,
+ entries: WorkEntry[],
+ isExpandedToolGroup = false,
+): MessagesTimelineRow => ({
+ kind: "work",
+ id,
+ createdAt: "2026-01-01T00:00:00Z",
+ groupedEntries: entries,
+ isExpandedToolGroup,
+});
+const assistant = (id: string, showAssistantMeta: boolean) =>
+ ({