# NousResearch/hermes-agent · Telegram DM topic binding cleanup and edge cases

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #51085: fix(telegram): prune stale DM topic binding in the media/anchor-retry fallback too (follow-up to #50990)

These issues and pull requests address how stale DM topic bindings are detected and removed when the Telegram Bot API reports a thread is not found, including coverage of media/anchor-retry fallback paths and disabling topic mode when no lanes remain.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 1 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #50990. Verify it addresses your case.
- **Recommended:** read PR #50990 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-50990`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.50`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #31501: Telegram DM topic bindings are not pruned when Bot API returns Thread not found

## Prior & competing PRs

- **#50990: fix(telegram): prune stale DM topic binding + disable topic mode when last lane gone**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `hermes_state.py`, `plugins/platforms/telegram/adapter.py`, `tests/gateway/test_telegram_prune_stale_topic_binding_31501.py`
- **#31512: fix(telegram): prune stale DM topic binding when Bot API returns Thread-not-found**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `4849a8e55`, `142a5751a`, `11246dbe2`, `#50990`
- **#51085: fix(telegram): prune stale DM topic binding in the media/anchor-retry fallback too (follow-up to #50990)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `plugins/platforms/telegram/adapter.py`, `tests/gateway/test_telegram_prune_stale_topic_binding_31501.py`

## Fix status

- Merged to main in PR #50990 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-06-22`.
- Subsystem: `gateway`
