Skip to content

Webchat: streamed message with tool calls collapses to only show content after last tool call #29472

@garyjohnston83

Description

@garyjohnston83

Description

When the agent sends a message that includes a tool call mid-response (e.g. text → tool call → more text), the webchat UI initially streams the full message but then collapses to only display the content after the last tool call. The earlier text disappears from view.

Steps to Reproduce

  1. Open webchat UI
  2. Ask the agent something that triggers a tool call mid-response (e.g. a question where the agent writes some text, calls a tool, then continues with more text)
  3. Observe the streamed message during generation — full content is visible
  4. After completion, only the tail portion (after the last tool call) remains visible

Expected Behaviour

The full message content (before and after tool calls) should remain visible after streaming completes.

Environment

  • OpenClaw version: 2026.2.26 (latest)
  • Browser: Chrome (desktop)
  • Channel: webchat

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleMarked as stale due to inactivity

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions