Skip to content

Keep mid-turn user exchanges visible after a turn completes - #1657

Open
sholub-dev wants to merge 1 commit into
get-bb:mainfrom
sholub-dev:keep-midturn-replies-visible
Open

Keep mid-turn user exchanges visible after a turn completes#1657
sholub-dev wants to merge 1 commit into
get-bb:mainfrom
sholub-dev:keep-midturn-replies-visible

Conversation

@sholub-dev

Copy link
Copy Markdown
Contributor

Summary

Fixes #1656.

Completed-turn grouping buried messages the user had already read once turn/completed re-grouped the turn:

  • the direct reply to a mid-turn user message (only each segment's last assistant message survived),
  • the final segment's last terminal message (the final flush never preserved one),
  • answered user questions and the report preceding them (answered questions were groupable and not boundaries).

Changes in packages/thread-view:

  • Preserve the first assistant/error message after user input (steer, external boundary, or answered question) — the direct reply.
  • Final flush preserves its last terminal message, matching boundary flushes.
  • Answered user-question-lifecycle messages are ungroupable and act as user-input boundaries.

Turns without mid-turn user input keep the existing single-summary collapse. Regression tests in completed-turn-user-input-visibility.test.ts; one existing expectation updated (the trailing segment after a legacy user message now keeps its last terminal visible).

AGENT GENERATED: by Claude Fable 5

Completed-turn grouping buried the direct reply to a mid-turn user
message, interim assistant messages in the final segment, and answered
user questions inside the collapsed turn summary. Preserve the first
assistant/error message after user input, preserve the final segment's
last terminal message, and treat answered user questions as user-input
boundaries.
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.

Replies to mid-turn messages disappear from the timeline when the turn completes

1 participant