@devries-cameron20 / t3code-1 / commits / f3ccba809b
Fork 0

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

fix(web): finished replies keep their hover timestamp while commands run (#28610)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Bilal Irfan committed Nov 2, 2026 at 02:56 UTC f3ccba809ba9e3a6a550c65deedfef44d6f95e1d
4 files changed +72 -3
apps/web/src/components/chat/MessagesTimeline.logic.test.ts
+54
@@ -1528,6 +1528,60 @@ describe("deriveMessagesTimelineRows", () => {
1528 expect(rows.at(-1)).toMatchObject({ kind: "thinking" });
1529 });
1530
1531 + it("keeps the latest finished reply's timestamp while a command is still running", () => {
1532 + const reply = (streaming: boolean) => ({
1533 + id: "assistant-reply-entry",
1534 + kind: "message" as const,
1535 + createdAt: "2026-01-01T00:00:10Z",
1536 + message: {
1537 + id: "assistant-reply" as never,
1538 + role: "assistant" as const,
1539 + text: "Training finished, checking memory next.",
1540 + runId: "turn-1" as never,
1541 + createdAt: "2026-01-01T00:00:10Z",
1542 + updatedAt: "2026-01-01T00:00:12Z",
1543 + streaming,
1544 + },
1545 + });
1546 + const rowsWith = (streaming: boolean) =>
1547 + deriveMessagesTimelineRows({
1548 + timelineEntries: [
1549 + reply(streaming),
1550 + {
1551 + id: "command-entry",
1552 + kind: "work",
1553 + createdAt: "2026-01-01T00:00:15Z",
1554 + entry: {
1555 + id: "command",
1556 + createdAt: "2026-01-01T00:00:15Z",
1557 + runId: "turn-1" as never,
1558 + label: "Running command",
1559 + command: "nvidia-smi",
1560 + tone: "tool" as const,
1561 + toolLifecycleStatus: "inProgress" as const,
1562 + },
1563 + },
1564 + ],
1565 + latestRun: {
1566 + runId: "turn-1" as never,
1567 + status: "running",
1568 + startedAt: "2026-01-01T00:00:00Z",
1569 + completedAt: null,
1570 + },
1571 + isWorking: true,
1572 + activeTurnStartedAt: "2026-01-01T00:00:00Z",
1573 + turnDiffSummaries: [],
1574 + supportsConversationRollback: false,
1575 + }).find((row) => row.id === "assistant-reply-entry");
1576 +
1577 + expect(rowsWith(false)).toMatchObject({
1578 + showAssistantMeta: false,
1579 + showAssistantTimestamp: true,
1580 + showAssistantCopyButton: false,
1581 + });
1582 + expect(rowsWith(true)).toMatchObject({ showAssistantTimestamp: false });
1583 + });
1584 +
1585 it("does not show Thinking once the open run's provider turn has ended", () => {
1586 const input = {
1587 timelineEntries: [
apps/web/src/components/chat/MessagesTimeline.logic.ts
+10 -3
@@ -591,6 +591,8 @@ type MessagesTimelineRowContent =
591 message: ChatMessage;
592 projectedItem?: OrchestrationV2ProjectedTurnItem;
593 showAssistantMeta: boolean;
594 + /** The latest finished reply of a still-running response shows only its timestamp. */
595 + showAssistantTimestamp: boolean;
596 showAssistantCopyButton: boolean;
597 assistantCopyStreaming: boolean;
598 assistantTurnDiffSummary?: TurnDiffSummary | undefined;
@@ -2027,10 +2029,10 @@ export function deriveMessagesTimelineRows(input: {
2029 timelineEntry.message.role === "assistant" &&
2030 runIdIsActiveResponse(timelineEntry.message.runId);
2031
2030 - const showAssistantMeta =
2032 + const isTerminalAssistantMessage =
2033 timelineEntry.message.role === "assistant" &&
2032 - terminalAssistantMessageIds.has(timelineEntry.message.id) &&
2033 - !assistantResponseStillInProgress;
2034 + terminalAssistantMessageIds.has(timelineEntry.message.id);
2035 + const showAssistantMeta = isTerminalAssistantMessage && !assistantResponseStillInProgress;
2036
2037 nextRows.push({
2038 kind: "message",
@@ -2041,6 +2043,10 @@ export function deriveMessagesTimelineRows(input: {
2043 ? {}
2044 : { projectedItem: timelineEntry.projectedItem }),
2045 showAssistantMeta,
2046 + showAssistantTimestamp:
2047 + isTerminalAssistantMessage &&
2048 + assistantResponseStillInProgress &&
2049 + !timelineEntry.message.streaming,
2050 showAssistantCopyButton: showAssistantMeta,
2051 assistantCopyStreaming: timelineEntry.message.streaming || assistantResponseStillInProgress,
2052 assistantTurnDiffSummary:
@@ -2504,6 +2510,7 @@ function isRowUnchanged(a: MessagesTimelineRow, b: MessagesTimelineRow): boolean
2510 a.message === bm.message &&
2511 a.projectedItem === bm.projectedItem &&
2512 a.showAssistantMeta === bm.showAssistantMeta &&
2513 + a.showAssistantTimestamp === bm.showAssistantTimestamp &&
2514 a.showAssistantCopyButton === bm.showAssistantCopyButton &&
2515 a.assistantCopyStreaming === bm.assistantCopyStreaming &&
2516 a.assistantTurnDiffSummary === bm.assistantTurnDiffSummary &&
apps/web/src/components/chat/TimelineAssistantRows.tsx
+7
@@ -76,6 +76,13 @@ export function AssistantTimelineRow({ row }: { row: Extract<TimelineRow, { kind
76 showCopyButton={row.showAssistantCopyButton}
77 copyStreaming={row.assistantCopyStreaming}
78 />
79 + ) : row.showAssistantTimestamp ? (
80 + <AssistantMessageMeta
81 + className="mt-1.5"
82 + message={row.message}
83 + showCopyButton={false}
84 + copyStreaming={row.assistantCopyStreaming}
85 + />
86 ) : null}
87 </div>
88 </>
apps/web/src/components/chat/timelineMinimapItems.test.ts
+1
@@ -15,6 +15,7 @@ describe("deriveTimelineMinimapItems", () => {
15 id: "image-only",
16 createdAt: at,
17 showAssistantMeta: false,
18 + showAssistantTimestamp: false,
19 showAssistantCopyButton: false,
20 assistantCopyStreaming: false,
21 message: {