Skip to content

Cherry-pick d6cbaea43: fix(tui): preserve streamed text during tool call transitions#1176

Merged
alexey-pelykh merged 1 commit intomainfrom
cherry-pick/d6cbaea43-tui-preserve-streamed-text
Mar 13, 2026
Merged

Cherry-pick d6cbaea43: fix(tui): preserve streamed text during tool call transitions#1176
alexey-pelykh merged 1 commit intomainfrom
cherry-pick/d6cbaea43-tui-preserve-streamed-text

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Cherry-pick from upstream

Fixes streamed text preservation during tool call transitions in the TUI stream assembler.

Cherry-picked-from: d6cbaea

Fixes openclaw#27674

The TUI was erasing already-streamed assistant text when tool calls
were triggered. This happened because the finalize() method in
TuiStreamAssembler was not using the protectBoundaryDrops option
when updating run state.

Now finalize() applies the same boundary drop protection as
ingestDelta(), ensuring that streamed text before tool calls is
preserved when the final payload drops earlier content blocks.

(cherry picked from commit d6cbaea)
@alexey-pelykh alexey-pelykh merged commit de56c67 into main Mar 13, 2026
7 checks passed
@alexey-pelykh alexey-pelykh deleted the cherry-pick/d6cbaea43-tui-preserve-streamed-text branch March 13, 2026 09:53
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