TypeScript
revert(web): undo hover timestamp change from #28610 (#29680)
mariaa03648901640
diff --git a/apps/web/src/components/chat/MessagesTimeline.logic.test.ts b/apps/web/src/components/chat/MessagesTimeline.logic.test.tsindex e32a7eb485f..4c7eba620b5 100644--- a/apps/web/src/components/chat/MessagesTimeline.logic.test.ts+++ b/apps/web/src/components/chat/MessagesTimeline.logic.test.ts@@ -1528,60 +1528,6 @@ describe("deriveMessagesTimelineRows", () => {expect(rows.at(-1)).toMatchObject({ kind: "thinking" });});- it("keeps the latest finished reply's timestamp while a command is still running", () => {- const reply = (streaming: boolean) => ({- id: "assistant-reply-entry",- kind: "message" as const,- createdAt: "2026-01-01T00:00:10Z",- message: {- id: "assistant-reply" as never,- role: "assistant" as const,- text: "Training finished, checking memory next.",- runId: "turn-1" as never,- createdAt: "2026-01-01T00:00:10Z",- updatedAt: "2026-01-01T00:00:12Z",- streaming,- },- });- const rowsWith = (streaming: boolean) =>- deriveMessagesTimelineRows({- timelineEntries: [- reply(streaming),- {- id: "command-entry",- kind: "work",- createdAt: "2026-01-01T00:00:15Z",- entry: {- id: "command",- createdAt: "2026-01-01T00:00:15Z",- runId: "turn-1" as never,- label: "Running command",- command: "nvidia-smi",- tone: "tool" as const,- toolLifecycleStatus: "inProgress" as const,- },- },- ],- latestRun: {- runId: "turn-1" as never,- status: "running",- startedAt: "2026-01-01T00:00:00Z",- completedAt: null,- },- isWorking: true,- activeTurnStartedAt: "2026-01-01T00:00:00Z",- turnDiffSummaries: [],- supportsConversationRollback: false,- }).find((row) => row.id === "assistant-reply-entry");-- expect(rowsWith(false)).toMatchObject({- showAssistantMeta: false,- showAssistantTimestamp: true,- showAssistantCopyButton: false,- });- expect(rowsWith(true)).toMatchObject({ showAssistantTimestamp: false });- });-it("does not show Thinking once the open run's provider turn has ended", () => {const input = {timelineEntries: [diff --git a/apps/web/src/components/chat/MessagesTimeline.logic.ts b/apps/web/src/components/chat/MessagesTimeline.logic.tsindex 8a4a7552901..2fe811db4d1 100644--- a/apps/web/src/components/chat/MessagesTimeline.logic.ts+++ b/apps/web/src/components/chat/MessagesTimeline.logic.ts@@ -591,8 +591,6 @@ type MessagesTimelineRowContent =message: ChatMessage;projectedItem?: OrchestrationV2ProjectedTurnItem;showAssistantMeta: boolean;- /** The latest finished reply of a still-running response shows only its timestamp. */- showAssistantTimestamp: boolean;showAssistantCopyButton: boolean;assistantCopyStreaming: boolean;assistantTurnDiffSummary?: TurnDiffSummary | undefined;@@ -2029,10 +2027,10 @@ export function deriveMessagesTimelineRows(input: {timelineEntry.message.role === "assistant" &&runIdIsActiveResponse(timelineEntry.message.runId);- const isTerminalAssistantMessage =+ const showAssistantMeta =timelineEntry.message.role === "assistant" &&- terminalAssistantMessageIds.has(timelineEntry.message.id);- const showAssistantMeta = isTerminalAssistantMessage && !assistantResponseStillInProgress;+ terminalAssistantMessageIds.has(timelineEntry.message.id) &&+ !assistantResponseStillInProgress;nextRows.push({kind: "message",@@ -2043,10 +2041,6 @@ export function deriveMessagesTimelineRows(input: {? {}: { projectedItem: timelineEntry.projectedItem }),showAssistantMeta,- showAssistantTimestamp:- isTerminalAssistantMessage &&- assistantResponseStillInProgress &&- !timelineEntry.message.streaming,showAssistantCopyButton: showAssistantMeta,assistantCopyStreaming: timelineEntry.message.streaming || assistantResponseStillInProgress,assistantTurnDiffSummary:@@ -2510,7 +2504,6 @@ function isRowUnchanged(a: MessagesTimelineRow, b: MessagesTimelineRow): booleana.message === bm.message &&a.projectedItem === bm.projectedItem &&a.showAssistantMeta === bm.showAssistantMeta &&- a.showAssistantTimestamp === bm.showAssistantTimestamp &&a.showAssistantCopyButton === bm.showAssistantCopyButton &&a.assistantCopyStreaming === bm.assistantCopyStreaming &&a.assistantTurnDiffSummary === bm.assistantTurnDiffSummary &&diff --git a/apps/web/src/components/chat/TimelineAssistantRows.tsx b/apps/web/src/components/chat/TimelineAssistantRows.tsxindex b425e1009d1..458d84b9e98 100644--- a/apps/web/src/components/chat/TimelineAssistantRows.tsx+++ b/apps/web/src/components/chat/TimelineAssistantRows.tsx@@ -76,13 +76,6 @@ export function AssistantTimelineRow({ row }: { row: Extract<TimelineRow, { kindshowCopyButton={row.showAssistantCopyButton}copyStreaming={row.assistantCopyStreaming}/>- ) : row.showAssistantTimestamp ? (- <AssistantMessageMeta- className="mt-1.5"- message={row.message}- showCopyButton={false}- copyStreaming={row.assistantCopyStreaming}- />) : null}</div></>diff --git a/apps/web/src/components/chat/timelineMinimapItems.test.ts b/apps/web/src/components/chat/timelineMinimapItems.test.tsindex a72813d8f75..776cd39096a 100644--- a/apps/web/src/components/chat/timelineMinimapItems.test.ts+++ b/apps/web/src/components/chat/timelineMinimapItems.test.ts@@ -15,7 +15,6 @@ describe("deriveTimelineMinimapItems", () => {id: "image-only",createdAt: at,showAssistantMeta: false,- showAssistantTimestamp: false,showAssistantCopyButton: false,assistantCopyStreaming: false,message: {