Transcript: a finished Claude turn folds under one Worked for, its runs inside

Merged
TE
2d ago
+144-58

Leo (2026-11-04): "ofc claude code doesn't actually have the worked for... but i think we should be able to do that replacing the top level thingy maybe"

Leo-ask: ask-36b88e65be

A finished Claude Code turn now gets the same top-level "Worked for" fold a Codex turn has, in place of the per-run summary lines that used to sit at the top level of the turn. Those run lines (the Claude-desktop grouping from #30176) now draw inside the fold when it's opened: each run of calls with its short notes on its own line, and longer messages between runs left where they were. A closed fold behaves as Codex's: the answer stays below it, a steer and the reply before it stay in sight, and the task line the fold hides shows beside it. The footer no longer repeats the time, because the fold line now shows it.

The change is in conversation/turns.ts shapeTurn: Claude turns no longer force the fold open or skip the Worked for row. Per-run folding inside the open fold (mergeShortNotes with Claude grouping) is unchanged. transcript-claude-turn-groups.test.ts covers both states, closed and opened, for the recorded 81-call turn and the steered turn.

Risk: every Claude chat's finished turns render differently (folded by default). Thinking and Verbose views still open each turn's fold, as they do for Codex.

Agent session: agent session

šŸ¤– Generated with Claude Code