You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Replies to mid-turn messages disappear from the timeline when the turn completes #1656
While a turn is running, every assistant message is rendered individually. When turn/completed arrives, completed-turn grouping collapses the turn into "Worked for …" summary rows, and three kinds of messages the user already read vanish from the top-level timeline:
the direct reply to a mid-turn steered user message (only the segment's last assistant message is preserved),
every assistant message in the final segment except the turn's terminal message (the final flush never preserves a terminal),
answered AskUserQuestion cards and the report that prompted them (answered questions are groupable and are not segment boundaries).
The content is still reachable by expanding the summary row, but visually the final message appears to swallow messages that were on screen seconds earlier.
Reproduce
Start a turn that produces several assistant messages.
While it runs, send a message (default steer). The agent replies, then writes at least one more assistant message before the turn ends.
When the turn completes, the reply collapses into the "Worked for …" row.
Deterministic; depends only on the reply not being the last message of its segment.
Root cause (short): Completed-turn grouping (packages/thread-view/src/completed-turn-grouping.ts, rule from Preserve agent messages around timeline steers #897) splits a turn at user boundaries and keeps only each segment's LAST assistant/error message outside the "Worked for" fold, so the direct reply to a mid-turn steer (and answered AskUserQuestion cards, which are groupable and not boundaries) is folded once turn/completed arrives; the running view uses no grouping, hence the visible disappearance.
Linked PR review:Keep mid-turn user exchanges visible after a turn completes #1657 → REQUEST CHANGES — Regresses every ordinary follow-up turn: the initial user message of a tell-started turn sits inside turn.messages and arms preserveNextTerminalMessage, and the new final flushGroupedMessages(true) surfaces the penultimate message, so an unsteered turn goes from 'user, Worked for, final' to 'user, f
Caveats: Behavior is by design per Preserve agent messages around timeline steers #897 (product limitation, not a coding slip); whether it is a bug is a product call. Issue Type/Effort project fields were not readable (token lacks read:project). AskUserQuestion folding was verified only at unit level, not with a live provider. The worktree branch had been moved to a108fa7 before I started; I checked out 16ceb3a (detached) for all repro runs and ver…
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).
Confirmed the regression independently — the turn-starting user row does sit in turn.messages, so it armed the first-reply preservation and the final flush surfaced the penultimate message on every ordinary turn.
Went with your minimal alternative in #1657 (544c163): preservation now triggers only for mid-turn user input, defined as a boundary with prior messages in the turn (steer, answered question, external boundary). Position handles the edge cases — the turn-starting row is always first, a second consecutive user row never is. Unsteered turns render exactly as on main again, and a regression test asserts interim messages stay folded.
Ungrouping every top-level assistant text (your preferred option) reverses part of #897, so I'd rather treat that as a product decision alongside #1355 than fold it into this fix.
Additional Codex-specific reproduction and root-cause evidence. This is the same user-visible failure, so I am adding it here instead of opening a duplicate issue.
Observed sequence
In a captured Codex turn:
A user steer was accepted into the still-active provider turn.
Codex then emitted a complete answer to the original user message.
Codex continued with reasoning and emitted a later answer after consuming the steer.
When the provider turn completed, the first complete answer moved into the collapsed Worked row. Only the later answer remained visible at the top level.
The persisted BB events represented both pieces of assistant text identically as agentMessage; expanding Worked revealed that the first answer was still present. Replaying the captured event stream through the completed-turn timeline reproduced the collapse deterministically.
Expected: a complete Codex answer that was visible while the turn was running remains visible after turn/completed.
Actual: the earlier complete answer becomes indistinguishable from progress narration and is folded into Worked, which makes it look as if the original user message was never answered.
This also shows why a UI rule such as “keep the first assistant text after a steer” cannot reconstruct the lost meaning: that text can be Codex commentary, while the provider's phase has already been discarded before timeline grouping.
The completedTurnDisplay: "flat" option added by #3729 is a workaround for Codex users who disable collapsing, but with Codex's default collapsed display the semantic loss remains.
Scope: this evidence is specific to Codex. I did not reproduce or evaluate other providers for this report.
Activity
SawyerHood commentedon Aug 18, 2026
Reproduction & root-cause report: https://get-bb.github.io/reports/issues/1656.html
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).sholub-dev commentedon Aug 18, 2026
Confirmed the regression independently — the turn-starting user row does sit in
turn.messages, so it armed the first-reply preservation and the final flush surfaced the penultimate message on every ordinary turn.Went with your minimal alternative in #1657 (544c163): preservation now triggers only for mid-turn user input, defined as a boundary with prior messages in the turn (steer, answered question, external boundary). Position handles the edge cases — the turn-starting row is always first, a second consecutive user row never is. Unsteered turns render exactly as on main again, and a regression test asserts interim messages stay folded.
Ungrouping every top-level assistant text (your preferred option) reverses part of #897, so I'd rather treat that as a product decision alongside #1355 than fold it into this fix.
Keep mid-turn user exchanges visible after a turn completes (get-bb#1657
Let each provider choose whether finished turns collapse (#3729)
hxy91819 commentedon Sep 21, 2026
Additional Codex-specific reproduction and root-cause evidence. This is the same user-visible failure, so I am adding it here instead of opening a duplicate issue.
Observed sequence
In a captured Codex turn:
Workedrow. Only the later answer remained visible at the top level.The persisted BB events represented both pieces of assistant text identically as
agentMessage; expandingWorkedrevealed that the first answer was still present. Replaying the captured event stream through the completed-turn timeline reproduced the collapse deterministically.Expected: a complete Codex answer that was visible while the turn was running remains visible after
turn/completed.Actual: the earlier complete answer becomes indistinguishable from progress narration and is folded into
Worked, which makes it look as if the original user message was never answered.Codex-specific evidence on current
mainCodex already supplies the missing distinction:
MessagePhaseiscommentary | final_answer.agentMessageitem carries thatphase.commentaryandfinal_answeragent messages on the provider side.{ type: "agentMessage", text }.This also shows why a UI rule such as “keep the first assistant text after a steer” cannot reconstruct the lost meaning: that text can be Codex
commentary, while the provider'sphasehas already been discarded before timeline grouping.The
completedTurnDisplay: "flat"option added by #3729 is a workaround for Codex users who disable collapsing, but with Codex's default collapsed display the semantic loss remains.Scope: this evidence is specific to Codex. I did not reproduce or evaluate other providers for this report.