Files
hermes-agent/tests/plugins
Teknium 5544661a79 fix(gateway): one tag-safe display-name helper for the [Name] prefix and observe tag
Both gateway-built sender tags now go through gateway.platforms.helpers
tag_safe_display_name: one inert line (neutralize_untrusted_inline_text)
with the tag's own delimiters dropped. That covers "[" and "]" from the two
salvaged commits and also "|", so a name cannot forge a second
"| Slack user <@id>" span or a second "|id" in the observe tag.

The helper lives on the published plugin API, so the Telegram adapter needs
no new gateway.session import (boundary lint stays at baseline), and
gateway/run_inbound.py and adapter.py end shorter than on main.

Live probe (real gateway + Telegram stand-in, shared group session):
  main: "[Ann] Smith] go AB12", "[Bob [Admin]] go AB12"
  head: "[Ann Smith] go AB12",  "[Bob Admin] go AB12"
2026-11-13 00:26:23 -08:00
..
…
…