hermes - 💡(How to fix) Fix Telegram DM topic messages leak to All Messages on synthetic events [1 pull requests]

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

Root cause: direct_messages_topic_id is missing from thread metadata for synthetic MessageEvent instances. The Telegram adapter relies on this field when reply_to_message_id is unavailable, and without it falls back to message_thread_id=None.

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

When using Telegram DM topics (topic lanes), synthetic/queued messages generated by /goal loop (goal continuations, status notices) lose their thread association and get routed to the root "All Messages" thread instead of the active DM topic.

Root cause: direct_messages_topic_id is missing from thread metadata for synthetic MessageEvent instances. The Telegram adapter relies on this field when reply_to_message_id is unavailable, and without it falls back to message_thread_id=None.

Expected behavior: Synthetic messages should remain within the same DM topic lane as the original user message.

Actual behavior: Messages silently appear in the root "All Messages" thread, breaking conversation continuity.

Proposed fix: PR #27114 adds direct_messages_topic_id to thread metadata for all non-General Telegram DM topics in gateway/run.py.

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…

Still need to ship something?

×6

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

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix Telegram DM topic messages leak to All Messages on synthetic events [1 pull requests]