# NousResearch/hermes-agent · Sanitize Telegram reply context Markdown injection

## Open now

- 0 issues, 2 PRs open on GitHub.
- PR #69087: fix(gateway): sanitize reply-to context by stripping Markdown before injection (#69060)
- PR #69101: fix(gateway): sanitize reply context excerpts

These items address a bug where inbound Telegram reply-to context was injecting raw, truncated Markdown into user messages via the gateway. The fix involves stripping Markdown before that content is injected.

## TL;DR

- 3 member(s): 0 open issue(s), 1 closed issue(s), 2 open PR(s), 0 merged PR(s), 0 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## 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.

## Closed / duplicate issues

- #69060: Telegram inbound reply context injects truncated raw Markdown into the user message

## Prior & competing PRs

- **#69087: fix(gateway): sanitize reply-to context by stripping Markdown before injection (#69060)**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `acc9f5d178f1`, `#69060`, `#69087`, `#69101`, `#374151`
  - files: `gateway/run.py`, `tests/gateway/test_reply_to_injection.py`
- **#69101: fix(gateway): sanitize reply context excerpts**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `df65eae34cc8`, `#69060`, `#69087`, `#69101`, `#374151`
  - files: `gateway/reply_context.py`, `gateway/run.py`, `tests/gateway/test_reply_to_injection.py`

## Fix status

- No merged fix on record.
- Subsystem: `gateway`
