Repository navigation
Description
When assistant turn contains multiple text blocks, e.g. using a stop hook, bb treats only the last one as the message, and collapses everything before it into a "Worked for..." section.
So the visible message is missing a lot, and is often just a reply to the hook failure.
The result is that the answer looks missing. I had to notice the little chevron and expand the 'worked for' section to read the rest.
Repro
- Configure a
Stophook that blocks — exit2with text on stderr, or print{"decision":"block","reason":"…"} - Ensure its blocking condition is persistently true, so it fires on every turn
- Ask any question
Claude answers (text block 1) → the Stop hook vetoes the stop and its reason is injected as a user message → Claude emits a short acknowledgement (text block 2) → bb shows only block 2.
Stop hooks are the easiest trigger, but nothing here is hook-specific: any turn ending in text → tool_use → text has the same shape.
Screenshots
Collapsed
What I actually see. The visible text is the model answering the hook, not the user:
Expanded
The looooong answer to my questions, which was hidden under "Worked for 45s":
Another example, collapsed
Expanded
Including explicit questions the user was being asked to decide on :(
Transcript evidence
From ~/.claude/projects/<project>/<session>.jsonl, one turn:
| row | type | content |
|---|---|---|
| 692 | assistant | text — "Fair pushback. Taking these in order…" ← the answer |
| 693 | user (isMeta: true) |
Stop hook feedback: … no fresh fast-loop verdict for HEAD (5bec6068…) |
| 695 | assistant | text — "The verify gate is still open. Nothing changed this turn…" ← the only part rendered |
Rows 702/709 are the second screenshot, identical shape.
Expected
Every assistant text block in a turn should be visible at rest. Tool calls and their results are reasonable things to collapse; prose addressed to the user is not.
Possible suggestions to solve it:
- Render all text blocks in sequence; collapse only tool activity between them
- Keep the collapsible but leave text blocks outside it, in order
- If a heuristic must pick one block, pick the longest rather than the last — a 40-word acknowledgement after a 600-word answer is not the message
Notes
- Claude Code's own REPL prints every text block in order, so the same session reads correctly there and wrong in bb. Same data, different grouping.
- The failure is silent and worse the more the user relies on hooks. A user who doesn't know to expand the "Worked for" section just sees an assistant that stopped answering questions.
- Labelling matters too: "Worked for 45s" reads as a duration stat, not as a container holding the reply. Even with the grouping unchanged, a label that hints at hidden prose would reduce the damage.
Environment: macOS 15 (Darwin 25.5.0), bb desktop, Claude Code via the Agent SDK.
Activity
Add a preference for assistant message visibility
Add a preference for assistant message visibility
SawyerHood commentedon Aug 18, 2026
Reproduction & root-cause report: https://get-bb.github.io/reports/issues/1355.html
bb thread logshare the row builder). Secondary: in plugins/provider-claude-code/src/event-translation.ts case "user", stop discarding isSynthetic "Stop hook feedback" user messages (emit a s…pnpm bb:dev machine list --json | jqreally fails (header on stdout, HOST empty); report now usespnpm --silent bb:dev machine list --json 2>/dev/null | jq -r '.[0].id'(prints host_w72av593zm) and captures PROJECT/THREAD into shell variables via jq instead of hardcoded ids; (2) whole 4a seq…The report has copy-paste repro steps, screenshots where the bug is visual, code permalinks at
16ceb3a54, and repro artifacts. It was independently re-run by a second agent (see its Verification section).Keep adjacent assistant answers visible in completed turns (get-bb#2133)