# NousResearch/hermes-agent · Telegram reconnect and TLS blocking the event loop

## Open now

- Nothing open on GitHub.

These issues and fixes address Telegram gateway reconnection logic where synchronous TLS initialization was stalling the event loop, and where messages held during a \`failed\` reconnect attempt were not being delivered correctly after reconnection.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 2 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #133721. Verify it addresses your case.
- **Recommended:** read PR #133721 (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-133694`. 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

- #133339: \[Bug\]: Telegram reconnect blocks the event loop during synchronous TLS initialization

## Prior & competing PRs

- **#133694: fix(gateway): Telegram messages held by a failed reconnect attempt are delivered after the reconnect instead of lost (#133399)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `gateway/platforms/helpers.py`, `gateway/run_adapters.py`, `plugins/platforms/telegram/telegram_held_inbound.py`, `tests/gateway/test_platform_reconnect.py`
- **#133721: fix(telegram): reconnects no longer stall the gateway loop on TLS setup (#133339, salvage #133340)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/ssl_verify.py`, `contributors/emails/142317085+LuwenOosten@users.noreply.github.com`, `plugins/platforms/telegram/adapter.py`, `plugins/platforms/telegram/telegram_network.py`, `tests/agent/test_ssl_verify.py`, `tests/gateway/test_telegram_closewait_limits.py`
- **#133340: fix(telegram): keep TLS initialization off the gateway event loop**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `a94c1065be`, `#133721`

## Fix status

- Merged to main in PR #133721 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-10-06`.
