Skip to content

[Bug]: TUI streamed text still replaced on finalize - variant without tool calls (related to #15452) #20453

@axels2025

Description

@axels2025

Summary

TUI streamed text still replaced on finalize - variant without tool calls (related to #15452)

#15452 was fixed by #15573, but a related variant still occurs. When the user sends a multi-part message (comment + question), the assistant streams a response addressing the first part, then the entire response disappears and is replaced with a shorter response addressing only the second part.

This variant does NOT require tool calls mid-response - it happens on pure text responses.

Environment: macOS Sequoia, Node v25.6.0, OpenClaw 2026.2.13 (commit 5cd9e21, #15573 merged), anthropic/claude-opus-4-6, TUI, webchat channel

Steps to reproduce

  1. Open openclaw tui
  2. Send a message containing both a comment/context AND a question (e.g. "I had this experience with a recruiter calling me three times... Also, can you research this company?")
  3. Watch the streamed text - assistant begins responding to the first part (the comment)
  4. Mid-stream, the entire response disappears and is replaced with a shorter response addressing only the second part (the question)
  5. The first part of the response is completely lost - not truncated, fully replaced

Expected behavior

Full response (addressing both parts) is preserved after finalization.

Actual behavior

Response to first part vanishes after streaming for several seconds, only response to second part remains.

OpenClaw version

2026.2.13

Operating system

macOS Sequoia

Install method

Node v25.6.0

Logs, screenshots, and evidence

Impact and severity

TUI, webchat channel

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions