# NousResearch/hermes-agent · Strip internal directives leaking into gateway output

## Open now

- 2 issues, 2 PRs open on GitHub.
- #43656: \[Bug\]: WhatsApp can leak MEDIA directives as visible text
- #54957: Chat gateways leak internal tool-trace banners in outbound text
- PR #43679: fix(gateway): strip MEDIA directives from WhatsApp text before delivery
- PR #54959: fix(gateway): strip internal tool-trace banners from chat output

These issues and fixes address chat gateways leaking internal markers—specifically MEDIA directives and tool-trace banners—into outbound message text. The work focuses on filtering these artifacts before delivery across streaming and non-streaming paths.

## TL;DR

- 5 member(s): 2 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 1 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_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.34`: 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

- #43656: \[Bug\]: WhatsApp can leak MEDIA directives as visible text
- #54957: Chat gateways leak internal tool-trace banners in outbound text

## Prior & competing PRs

- **#55243: fix: strip internal tool-trace banner lines from chat gateway delivery**. closed without merge · fix tier `suggested`
  - maintainer direction: category `superseded_by_pr`; implication `superseded`
- **#43679: fix(gateway): strip MEDIA directives from WhatsApp text before delivery**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `5600105478ffde29d7566b45421b100eaa29c4ef`
  - files: `gateway/platforms/whatsapp.py`, `tests/gateway/test_whatsapp_media_backstop.py`
- **#54959: fix(gateway): strip internal tool-trace banners from chat output**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `gateway/platforms/base.py`, `gateway/run.py`, `tests/gateway/test_stream_consumer.py`, `tests/gateway/test_telegram_noise_filter.py`

## Fix status

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