Repository navigation
Description
Summary
The current behavior is very confusing for the user. While a Claude Code turn runs, they see output from Claude as separate timeline rows. When the turn completes, that output suddenly collapses. The first few times I saw this I thought something had bugged out: text I was reading a moment earlier just collapsed without a trace, with nothing indicating it had moved into the collapsed "Worked for N" row. It is only recoverable by expanding that row by hand.
There is nothing wrong with these messages that justifies hiding them. They are ordinary assistant text, often the substantive analysis of the turn. It is unclear why bb treats them as second-rate messages when there is no objective difference between them and the final message that stays visible. Claude Code's own transcript keeps every text block visible and collapses only tool activity, so this also does not match the experience users bring from the CLI.
Versions and environment
- bb 0.42.1, run from source at
dba32a469(currentmain) - Linux 7.0.0-22-generic
- Provider: claude-code,
claude2.1.260 - Local machine, worktree environment, no remote or Connect
Steps to reproduce
- Create a claude-code thread on any repo with a few markdown files.
- Send a prompt that makes the model reason between file reads, for example:
Review the three proposed fixes in docs/. After reading each relevant file, state whether the fix still stands before moving to the next one. Do not edit anything. - Watch the timeline while the turn runs. Each "fix N stands" paragraph appears as its own row between Read rows.
- Wait for the turn to complete.
Deterministic. Any turn shaped text, tool, text, tool, ..., text reproduces it. The unit test folds narration that precedes work and keeps the response that precedes the terminal text in packages/thread-view/test/completed-turn-grouping.test.ts pins this exact behavior.
Expected vs actual
Actual: the timeline collapses to user → Worked for 1m 7s → <last assistant message>. Every earlier assistant paragraph is inside the summary row, which starts collapsed. There is no transition and no indication that content moved.
Expected: assistant prose stays visible in order after completion, matching what was on screen while the turn ran and matching the Claude Code CLI transcript. Only tool calls, thoughts, and other activity should fold.
Evidence
- Pending turns take the flat path, completed turns take the grouping path: build-thread-timeline.ts#L1186-L1200
- One terminal message per segment, everything before it becomes the summary: completed-turn-grouping.ts#L108-L150 and timeline-message-helpers.ts#L48-L58
- The only exception is assistant text immediately followed by more assistant text: completed-turn-grouping.ts#L153-L169. Any tool call in between defeats it.
- The same row builder feeds the app and
bb thread log, so CLI output changes shape at completion too.
History
- The fold has no recorded rationale. It dates to the timeline rewrite of 2026-05-01 (
595c4f21f, "Replace timeline rendering pipeline") with no PR body or design note. - With a stop hook, most of the Assistant text is hidden inside "Worked for [time]" #1355 reported the Stop-hook variant. Keep adjacent assistant answers visible in completed turns #2133 fixed only the adjacent-text case and explicitly declined to surface all assistant text, citing Split completed turn summaries at user boundaries #320 and the [issue sweep] Add a preference for assistant message visibility #1508 review.
- [issue sweep] Add a preference for assistant message visibility #1508 implemented exactly the expected behavior behind a
showAllAssistantMessagessetting defaulting to on. The only recorded objection was row count and payload size on a pathological 750-pair turn (1,500 rows, ~461 KB, above the 200-row timeline cache cap). The author addressed the review and closed the PR unmerged the same day with no closing comment. Saving row count is a very questionable reason to hide user-facing content: the projection cost was the same in both modes per the author's own measurements, and the cache cap is a tunable heuristic, not a correctness limit. - Replies to mid-turn messages disappear from the timeline when the turn completes #1656 reported the same disappear-on-completion effect for mid-turn steer replies. Its fix Keep mid-turn user exchanges visible after a turn completes #1657 was merged, reverted in Revert "Keep mid-turn user exchanges visible after a turn completes (#1657)" #1981 for a CI conflict, and never re-landed. The issue was closed. The maintainer comment on Replies to mid-turn messages disappear from the timeline when the turn completes #1656 says ungrouping all top-level assistant text should be "a product decision alongside With a stop hook, most of the Assistant text is hidden inside "Worked for [time]" #1355". That decision has not been made or recorded.
What I ruled out
- Not a duplicate of With a stop hook, most of the Assistant text is hidden inside "Worked for [time]" #1355: that is the hook-reply shape and is fixed. This is the ordinary
text, tool, textshape, which Keep adjacent assistant answers visible in completed turns #2133 left folded on purpose. - Not a duplicate of Replies to mid-turn messages disappear from the timeline when the turn completes #1656: that issue is closed and framed around steers. Its fix was reverted, and the unsteered case was explicitly excluded there.
- Not a rendering or animation bug. The row set actually changes at
turn/completed. - Still present on
mainatdba32a469.
Suggested priority and effort
Hits every claude-code user on every agentic turn where the model reasons between tool calls. No data loss, but real content is hidden by default and the live-then-gone transition reads as a bug. The workaround is expanding each "Worked for" row by hand. The #1508 branch shows the fix is small in @bb/thread-view; the open question is the product decision and whether the 200-row cache cap should move.
AGENT GENERATED
Activity
bb-slop-cop commentedon Sep 5, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotthreads,confirmed-reproconfirmed-reproLet each provider choose whether finished turns collapse (get-bb#3729)
matthiasvongrundherr commentedon Nov 27, 2026
We observed this on bb Desktop 0.50.1 with Claude Code and “Collapse finished turns” enabled. A user asked for a proposal. An automated deployment update arrived during the same turn. The assistant wrote the full proposal as ordinary text, ran a tool, then ended with a short deployment status. After the turn finished, only the status was visible. Expanding “Worked for 19s” revealed the proposal.
Could bb offer a compact view that keeps assistant replies visible while folding tool activity? Turning off “Collapse finished turns” exposes the tool activity too.