@devries-cameron20 / t3code Mirror · read-only / commits / a036489016
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 22, 07:00 UTC

revert(web): undo hover timestamp change from #28610 (#29680)

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

maria committed Nov 2, 2026 at 22:52 UTC a03648901640216a154d387cfb2cdec268e6527e
4 files changed +3 -72
apps/web/src/components/chat/MessagesTimeline.logic.test.ts
-54
@@ -1528,60 +1528,6 @@ 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 -
1531 it("does not show Thinking once the open run's provider turn has ended", () => {
1532 const input = {
1533 timelineEntries: [
apps/web/src/components/chat/MessagesTimeline.logic.ts
+3 -10
@@ -591,8 +591,6 @@ 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;
594 showAssistantCopyButton: boolean;
595 assistantCopyStreaming: boolean;
596 assistantTurnDiffSummary?: TurnDiffSummary | undefined;
@@ -2029,10 +2027,10 @@ export function deriveMessagesTimelineRows(input: {
2027 timelineEntry.message.role === "assistant" &&
2028 runIdIsActiveResponse(timelineEntry.message.runId);
2029
2032 - const isTerminalAssistantMessage =
2030 + const showAssistantMeta =
2031 timelineEntry.message.role === "assistant" &&
2034 - terminalAssistantMessageIds.has(timelineEntry.message.id);
2035 - const showAssistantMeta = isTerminalAssistantMessage && !assistantResponseStillInProgress;
2032 + terminalAssistantMessageIds.has(timelineEntry.message.id) &&
2033 + !assistantResponseStillInProgress;
2034
2035 nextRows.push({
2036 kind: "message",
@@ -2043,10 +2041,6 @@ export function deriveMessagesTimelineRows(input: {
2041 ? {}
2042 : { projectedItem: timelineEntry.projectedItem }),
2043 showAssistantMeta,
2046 - showAssistantTimestamp:
2047 - isTerminalAssistantMessage &&
2048 - assistantResponseStillInProgress &&
2049 - !timelineEntry.message.streaming,
2044 showAssistantCopyButton: showAssistantMeta,
2045 assistantCopyStreaming: timelineEntry.message.streaming || assistantResponseStillInProgress,
2046 assistantTurnDiffSummary:
@@ -2510,7 +2504,6 @@ function isRowUnchanged(a: MessagesTimelineRow, b: MessagesTimelineRow): boolean
2504 a.message === bm.message &&
2505 a.projectedItem === bm.projectedItem &&
2506 a.showAssistantMeta === bm.showAssistantMeta &&
2513 - a.showAssistantTimestamp === bm.showAssistantTimestamp &&
2507 a.showAssistantCopyButton === bm.showAssistantCopyButton &&
2508 a.assistantCopyStreaming === bm.assistantCopyStreaming &&
2509 a.assistantTurnDiffSummary === bm.assistantTurnDiffSummary &&
apps/web/src/components/chat/TimelineAssistantRows.tsx
-7
@@ -76,13 +76,6 @@ 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 - />
79 ) : null}
80 </div>
81 </>
apps/web/src/components/chat/timelineMinimapItems.test.ts
-1
@@ -15,7 +15,6 @@ describe("deriveTimelineMinimapItems", () => {
15 id: "image-only",
16 createdAt: at,
17 showAssistantMeta: false,
18 - showAssistantTimestamp: false,
18 showAssistantCopyButton: false,
19 assistantCopyStreaming: false,
20 message: {