From 907247c845d22d335ed58ab3d9dcbeb14bdf641b Mon Sep 17 00:00:00 2001 From: LHagfoss Date: Tue, 24 Nov 2026 10:16:54 +0100 Subject: [PATCH 1/2] fix(desktop): show the chat recap inside the transcript The per-chat recap floated over the top of the transcript, pinned under the header. It is now a row after the last turn, where the reader picks the chat back up, and scrolls with the rest of the chat. --- apps/desktop/src/state/recap.ts | 2 +- apps/desktop/src/ui/ChatRecap.tsx | 4 ++-- apps/desktop/src/ui/ChatView.tsx | 9 --------- apps/desktop/src/ui/Transcript.tsx | 9 +++++++++ 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/apps/desktop/src/state/recap.ts b/apps/desktop/src/state/recap.ts index a5c3b4ed8..e0fcda42d 100644 --- a/apps/desktop/src/state/recap.ts +++ b/apps/desktop/src/state/recap.ts @@ -1,6 +1,6 @@ /** * The chat recap: when the user comes back to a chat they have not looked at for a - * while (Settings › General, an hour by default), a card at the top of that chat + * while (Settings › General, an hour by default), a card after its last turn * says what they asked last, where the reply left off and whether the thread is * still working, waits on them or failed. It is per chat, like Claude Code's * recap, and built from the transcript, so it costs no model turn. Pure, so the diff --git a/apps/desktop/src/ui/ChatRecap.tsx b/apps/desktop/src/ui/ChatRecap.tsx index 90c05ba28..a5e55f6ed 100644 --- a/apps/desktop/src/ui/ChatRecap.tsx +++ b/apps/desktop/src/ui/ChatRecap.tsx @@ -1,6 +1,6 @@ /** * The chat recap card: back in a chat after it went unseen for a while (Settings › - * General, an hour by default), a card at the top of that chat says what the user + * General, an hour by default), a card after its last turn says what the user * asked last, where the reply left off and whether the thread still works, waits on * them or failed. One chat at a time, like Claude Code's recap; dismissing it puts * it away until the next return after a gap. @@ -108,7 +108,7 @@ const STATE_TONE: Record = { done: "text-success", }; -/** The recap of the chat on screen, floating over the top of its transcript. */ +/** The recap of the chat on screen: a row after its last turn (ui/Transcript.tsx). */ export function ChatRecapCard({ threadId, className }: { threadId: string; className?: string }) { const open = useApp((s) => (s.chatRecaps && s.chatRecap?.threadId === threadId ? s.chatRecap : null)); const items = useApp((s) => s.threads[threadId]?.items); diff --git a/apps/desktop/src/ui/ChatView.tsx b/apps/desktop/src/ui/ChatView.tsx index e78f5cbbb..c4e95e538 100644 --- a/apps/desktop/src/ui/ChatView.tsx +++ b/apps/desktop/src/ui/ChatView.tsx @@ -42,7 +42,6 @@ import { overviewExpanded, setOverviewExpanded } from "../state/widgets"; import { AttentionCard, ResolvedApprovalBar } from "./AttentionCards"; import { OriginChip } from "./Branches"; import { NewThreadLight, ThreadLight } from "./ChatLight"; -import { ChatRecapCard } from "./ChatRecap"; import { Composer } from "./Composer"; import { DelegateStatusPanel } from "./DelegateStatus"; import { @@ -760,14 +759,6 @@ export function ChatView() { {thread && !isNew && !showsPending && ( )} - {thread && !isNew && !showsPending && ( -
- -
- )} {showsPending && setup ? ( // Preferred over the thread: while its message is still arriving, the screen that has it // is this one, and the row it draws is the row the transcript draws (`FIRST_ROW_PAD`). diff --git a/apps/desktop/src/ui/Transcript.tsx b/apps/desktop/src/ui/Transcript.tsx index 2261be815..5a3d2e1c3 100644 --- a/apps/desktop/src/ui/Transcript.tsx +++ b/apps/desktop/src/ui/Transcript.tsx @@ -75,6 +75,7 @@ import { useWaiting, type Waiting, waitingLabel } from "../state/waiting"; import { StartedThreadsRow, SubagentGroupRow, SubagentRow } from "./AgentViews"; import { ApprovalRow, ChildRequestCard } from "./AttentionCards"; import { BranchRow } from "./Branches"; +import { ChatRecapCard } from "./ChatRecap"; import { StatusReplyRow } from "./DelegateStatus"; import { EarlierAttempts } from "./EarlierAttempts"; import { ArrowDown, ChevronDown, ChevronUp, RotateCw, Search, X } from "./icons"; @@ -167,6 +168,8 @@ export type Row = { leaving?: QueuedPrompt; /** Resume, under a queue a stopped or failed turn held. */ resume?: { threadId: string; count: number }; + /** The chat's recap (ui/ChatRecap.tsx), after the last turn: where the reader comes back in. */ + recap?: true; }; /** The turns the reader opened, by thread: kept while the app runs, so going back keeps them. */ @@ -468,6 +471,7 @@ export function Transcript({ // skips a streamed chunk (state/fold.ts keepUnchangedRows). const drawnRows = useRef([]); const showTools = useApp((s) => s.showToolCalls); + const recapOpen = useApp((s) => !peek && s.chatRecaps && s.chatRecap?.threadId === thread.id); // The messages that open a day keep their time in view: where a long thread's days begin. const newDays = useMemo(() => newDayMessages(visible), [visible]); const rows = useMemo(() => { @@ -610,6 +614,8 @@ export function Transcript({ // What waits for the thread comes after all of it: its queued messages, the one quiet line a // wake turn waits under, and Resume when a stopped or failed turn held them. They scroll with // the transcript, and the pinned view follows them like any other row. + // The recap sits after the last turn, where the reader picks the chat back up, and scrolls with it. + if (recapOpen) out.push({ key: "recap", recap: true }); out.push(...queueRows(thread, links)); // A steering note the plan does not hold is not drawn again here: the message it was sent as // already says `Steered` on its own bubble, and one steer reads once. @@ -629,6 +635,7 @@ export function Transcript({ settleEnd, branches, showTools, + recapOpen, ]); // Footers of folded turns: their time is in the summary row, not repeated. The turn that just // finished still counts as folded while its live header holds the place of that summary row. @@ -1322,6 +1329,8 @@ export function Transcript({ flat item={{ kind: "notice", id: row.key, text: row.queueNotice.line, tone: "info" }} /> + ) : row.recap ? ( + ) : row.resume ? ( ) : row.working ? ( From 655d00a63db1d0a71d1dc39ab785a5fee6ad7a94 Mon Sep 17 00:00:00 2001 From: LHagfoss Date: Tue, 24 Nov 2026 10:20:25 +0100 Subject: [PATCH 2/2] fix(desktop): drop the recap row's line comment --- apps/desktop/src/ui/Transcript.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/desktop/src/ui/Transcript.tsx b/apps/desktop/src/ui/Transcript.tsx index 5a3d2e1c3..50b9f5bfe 100644 --- a/apps/desktop/src/ui/Transcript.tsx +++ b/apps/desktop/src/ui/Transcript.tsx @@ -614,7 +614,6 @@ export function Transcript({ // What waits for the thread comes after all of it: its queued messages, the one quiet line a // wake turn waits under, and Resume when a stopped or failed turn held them. They scroll with // the transcript, and the pinned view follows them like any other row. - // The recap sits after the last turn, where the reader picks the chat back up, and scrolls with it. if (recapOpen) out.push({ key: "recap", recap: true }); out.push(...queueRows(thread, links)); // A steering note the plan does not hold is not drawn again here: the message it was sent as