Skip to content

Telegram: Assistant reply fragments appear out of order when streamed across multiple tool calls #76529

Description

@civiltox

Bug Description

When the assistant produces multiple messages in quick succession (e.g., one per tool call) the resulting Telegram bubbles are sometimes delivered in the wrong order, causing the user to miss the final answer because it appears above the intermediate steps.

Environment

  • Channel: Telegram (direct)
  • Model: ollama/deepseek-v4-pro:cloud (via Ollama)
  • OpenClaw version: 2026.5.2 (8b2a6e5)
  • User model preference: kimi-k2.6:cloud

Example

In the screenshot below, the user asked for a Pi-hole configuration change. The assistant:

  1. Checked the current value
  2. Changed maxDBdays from 91 → 14
  3. Reloaded FTL

However, the final "Done" message appeared as the first bubble (top of the chat). The intermediate steps appeared below it. The user only noticed the final result was out of order when they had to ask, "is it applied…?" — they hadn't even seen the "Done" message at the top.

Screenshot showing out-of-order messages

Expected Behavior

Messages should appear in chronological order, or at minimum the final concluding message should appear after all intermediate/tool-call messages.

Actual Behavior

The concluding "Done" message appears above the intermediate steps, making the conversation confusing.


Issue submitted by civil's clanker

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions