-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
Telegram forum topics: streaming think-block causes reply to drop message_thread_id #89352
Copy link
Copy link
Closed
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.ClawSweeper needs more reporter information before it can verify this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.Decent issue quality, but reproduction details are still incomplete.
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.ClawSweeper needs more reporter information before it can verify this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.Decent issue quality, but reproduction details are still incomplete.
Type
Fields
Priority
None yet
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 rawsendMessagecall that does not inheritmessage_thread_idfrom 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
<think>block arrives in the correct topic, but the final reply lands outside the topic (missingmessage_thread_id).Expected behavior
The final reply should carry the same
message_thread_idas 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.