hermes-agent/plugins/platforms/telegram
Teknium 240afd0b70 fix(telegram): batch near-limit command chunks so split /queue pastes don't orphan their continuation
Telegram clients split messages above 4096 chars into multiple updates. A
long '/queue <prompt>' paste arrives as a COMMAND chunk near the limit plus
plain TEXT continuation chunk(s). _handle_command dispatched the command
chunk immediately, so the continuation landed as a separate plain message
that interrupted the running agent instead of being queued.

Near-limit (>= _SPLIT_THRESHOLD) command chunks now route through the same
text-batching pipeline used for split plain-text messages, merging the
continuation before dispatch. Short commands (/stop, /approve, ...) keep the
immediate path and are never delayed.
2026-07-29 17:22:52 -07:00
..
__init__.py
adapter.py fix(telegram): batch near-limit command chunks so split /queue pastes don't orphan their continuation 2026-07-29 17:22:52 -07:00
plugin.yaml
telegram_ids.py
telegram_network.py fix(telegram): release fallback transport pools on connect failure 2026-07-26 19:30:27 -07:00