openclaw - 💡(How to fix) Fix Telegram forum topics: streaming think-block causes reply to drop message_thread_id

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…
RAW_BUFFERClick to expand / collapse

Bug

When reasoning/thinking is enabled and <think> blocks are live-streamed as separate Telegram messages, the subsequent standard text reply is sent via a raw sendMessage call that does not inherit message_thread_id from the original inbound context.

Effect

The reply lands outside the forum topic (or is silently dropped) instead of being delivered into the correct thread. The agent turn completes successfully — the issue is purely in delivery routing.

Affected code path

Streaming code path only. The bug does not affect non-streaming replies or replies in non-forum (flat) chats.

Steps to reproduce

  1. Use a Telegram group with forum topics enabled.
  2. Enable reasoning/thinking for the agent session.
  3. Send a message to a topic thread.
  4. Observe: the <think> block arrives in the correct topic, but the final reply lands outside the topic (missing message_thread_id).

Expected behavior

The final reply should carry the same message_thread_id as the inbound message, regardless of whether <think> blocks were streamed earlier in the same turn.

Notes

Reported by user in session agent:main:telegram:group:-1003620988369:topic:14041. The <think> streaming messages arrived correctly; only the final text reply dropped the thread context.

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

The final reply should carry the same message_thread_id as the inbound message, regardless of whether <think> blocks were streamed earlier in the same 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