# NousResearch/hermes-agent · Fix Telegram UTF-16 entity offset handling

## Open now

- 1 issue, 0 PRs open on GitHub.
- #55439: Telegram mention/command detection mis-slices when emoji precede the mention (UTF-16 entity offsets used as code-point indices)

These items address a bug where Telegram's UTF-16 entity offsets were being incorrectly treated as Unicode code-point indices, causing mis-sliced mentions and commands when emoji or other multi-unit characters appear in messages. Related fixes also touch email charset resilience and output decode hardening.

## TL;DR

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

## Open related issues

- #55439: Telegram mention/command detection mis-slices when emoji precede the mention (UTF-16 entity offsets used as code-point indices)

## Prior & competing PRs

- **#81966: fix(gateway): Telegram UTF-16 semantics, email charset resilience, update-output decode hardening**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `batch_runner.py`, `contributors/emails/[redacted:email]`, `gateway/run.py`, `hermes_cli/update_cmd.py`, `plugins/platforms/email/adapter.py`, `plugins/platforms/telegram/adapter.py`, `tests/gateway/test_email_charset_fallback.py`, `tests/gateway/test_fence_chunker.py`, `tests/gateway/test_telegram_mention_boundaries.py`, `tests/gateway/test_update_command.py`, `tests/hermes_cli/test_update_yes_flag.py`
- **#55507: fix(telegram): honor UTF-16 entity offsets**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#81966`

## Fix status

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