Skip to content

Telegram: Final assistant reply appears above tool call progress messages (streaming mode) #77727

Description

@civiltox

Bug Description

In Telegram, when the assistant streams its response and makes multiple tool calls, the final reply sometimes appears above the intermediate tool call progress messages. This makes conversations confusing — the conclusion appears before the steps that led to it.

This was initially reported in #76529 and a fix was shipped in v2026.5.3 ("force a fresh final message when a visible non-preview bubble was delivered after the active answer preview"), but the issue is still reproducible on 2026.5.3-1.

Environment

  • OpenClaw: 2026.5.3-1 (2eae30e)
  • Channel: Telegram (direct)
  • Model: ollama/deepseek-v4-pro:cloud
  • OS: Linux (Debian 13, x86_64)

Steps to Reproduce

  1. Send a request that triggers multiple tool calls from the assistant
  2. Observe the streaming preview and tool call progress messages in Telegram
  3. Notice the final assistant reply appears above some of the tool call messages

Expected Behavior

The final assistant reply should appear after all intermediate tool call progress messages, in chronological order.

Actual Behavior

The final reply appears above tool call progress messages that were sent during the turn.

Video

https://streamable.com/h2knx6

Additional Context

This appears related to #76529 — the fix in v2026.5.3 may not fully cover all cases, or this may be a specific edge case where tool messages are delivered after the preview has already been replaced with the final answer.

Issue submitted by civil's clanker

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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