Skip to content

fix: drop mid-research narration segments from the rendered reply - #43

Merged
Robbertvermeulen merged 1 commit into
mainfrom
fix/reply-drops-interim-segments
Aug 19, 2026
Merged

Robbertvermeulen merged 1 commit into
mainfrom
fix/reply-drops-interim-segments

Conversation

@Robbertvermeulen

Copy link
Copy Markdown
Contributor

Stacked on #42, one commit (9cf9881):

Prompt rules against thinking-out-loud proved probabilistic (a 20-step Peter run leaked one again), so this adds the mechanical guarantee: the rendered reply = the opener + the text after the LAST tool step; mid-research narration segments never reach the bubble. Applies to live streaming, the buffered fallback and rehydrate. The dashboard transcript keeps everything (vendor ground truth unchanged).

Verified in-browser on a real 20-step conversation. assets/dist rebuilt; JS tests green.

Merge order: #42 first, then this.

🤖 Generated with Claude Code

Prompt rules reduce but cannot guarantee zero thinking-out-loud: under deep
research the model still streamed "Good, that's enough confirmation. Now
let me quickly check…" into the bubble (persona-loop run 11). With subagents
hard-blocked hub-side, any text segment with real steps both before and
after it is research narration by construction — so the reply now keeps
only the opener (e.g. an empathy acknowledgement before the first step) and
everything after the last step, live (applyStreamEvent), on the buffered
fallback and on rehydrate (eventsToTurn). The dashboard transcript still
records every block.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Robbertvermeulen
Robbertvermeulen changed the base branch from fix/chat-stream-follow-and-block-join to main August 19, 2026 12:07
@Robbertvermeulen
Robbertvermeulen merged commit 7a9389b into main Aug 19, 2026
2 checks passed
@Robbertvermeulen
Robbertvermeulen deleted the fix/reply-drops-interim-segments branch August 19, 2026 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant