Skip to content

feat(telegram): add ignore_root_dm config to drop messages without thread_id#28536

Merged
teknium1 merged 3 commits into
mainfrom
hermes/hermes-6063e704
May 19, 2026
Merged

feat(telegram): add ignore_root_dm config to drop messages without thread_id#28536
teknium1 merged 3 commits into
mainfrom
hermes/hermes-6063e704

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Salvage of #23928 (@ai-hana-ai). When dm_topics are configured, root DM messages without a message_thread_id cause split sessions and user confusion. New telegram.ignore_root_dm config drops these messages silently so all conversation flows through named topic threads.

Conflict resolution: combined with #28492's allowlist enforcement and #28503's allowed_topics gate. All gates run in sequence: auth → allowed_topics → ignore_root_dm → ignored_threads.

Authorship preserved across 2 commits via cherry-pick. 68/68 topic + group-gating tests passing.

@github-actions

Copy link
Copy Markdown
Contributor

🔎 Lint report: hermes/hermes-6063e704 vs origin/main

ruff

Total: 0 on HEAD, 0 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 0 pre-existing issues carried over.

ty (type checker)

Total: 8951 on HEAD, 8950 on base (🆕 +1)

🆕 New issues (1):

Rule Count
unresolved-reference 1
First entries
gateway/platforms/telegram.py:439: [unresolved-reference] unresolved-reference: Name `Set` used when not defined: Did you mean `set`?

✅ Fixed issues: none

Unchanged: 4700 pre-existing issues carried over.

Diagnostics are surfaced as warnings — this check never fails the build.

@alt-glitch alt-glitch added type/feature New feature or request platform/telegram Telegram bot adapter comp/gateway Gateway runner, session dispatch, delivery area/config Config system, migrations, profiles P3 Low — cosmetic, nice to have labels May 19, 2026
ai-hana-ai added a commit to ai-hana-ai/hermes-agent that referenced this pull request May 22, 2026
Ignore root DM is now in upstream (PR NousResearch#28536 merged via commit b6116e0).
Re-apply telegramify-markdown patch after rebase to origin/main.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config Config system, migrations, profiles comp/gateway Gateway runner, session dispatch, delivery P3 Low — cosmetic, nice to have platform/telegram Telegram bot adapter type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants