openclaw - 💡(How to fix) Fix Telegram delivery-mirror duplicates every assistant text message (both openai-completions and delivery-mirror delivered to channel)

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Root Cause

Workaround: instruct the agent to never send text before a photo, and use NO_REPLY after the message tool. But this doesn't fix the root cause and breaks normal text-only conversations.

Fix Action

Fix / Workaround

Workaround: instruct the agent to never send text before a photo, and use NO_REPLY after the message tool. But this doesn't fix the root cause and breaks normal text-only conversations.

RAW_BUFFERClick to expand / collapse

Describe the bug

When an agent sends a text response, both the openai-completions response AND the delivery-mirror entry are delivered to the Telegram channel, causing every message to appear twice.

Steps to reproduce

  1. Configure an agent with Telegram channel (dedicated bot account)
  2. Send a message to the agent
  3. Agent responds with text (not via message tool, just normal assistant response)
  4. Both the assistant response AND a delivery-mirror duplicate arrive on Telegram

Expected behavior

Only ONE message should be delivered to Telegram per turn.

Actual behavior

Every assistant text message appears twice on Telegram. The session JSONL shows:

  • 1st entry: role=assistant, api=openai-completions, model=deepseek-v4-pro
  • 2nd entry: role=assistant, api=openai-responses, model=delivery-mirror

Both are delivered to the channel.

Environment

  • OpenClaw version: 2026.5.22 (a374c3a)
  • Channel: Telegram (dedicated bot per agent)
  • Agent: any (tested with alice, sofia)
  • The duplication ratio varies: alice 49/312 (16%), sofia 1/22 (5%)

Additional context

This might be related to the message tool behavior — when the agent uses the message tool to send a file, the delivery-mirror re-delivers the PREVIOUS text message after the file. This suggests the delivery-mirror is queued and fires when subsequent tool calls complete.

Workaround: instruct the agent to never send text before a photo, and use NO_REPLY after the message tool. But this doesn't fix the root cause and breaks normal text-only conversations.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Only ONE message should be delivered to Telegram per turn.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Telegram delivery-mirror duplicates every assistant text message (both openai-completions and delivery-mirror delivered to channel)