hermes-agent/plugins/platforms
Drexuxux 7c02bfce89 fix(slack): insert resolved display names literally when humanizing mentions
_humanize_user_mentions rewrites <@UID> to @DisplayName by passing the
resolved name as re.sub's replacement, where re parses it as a template.
A display name is arbitrary user-set text, so the escapes in it are the
user's characters, not regex syntax:

  dev\ops  -> re.error: bad escape \o
  a\1b     -> re.error: invalid group reference 1
  \g<0>    -> expands to the whole match, silently putting the opaque
              <@UID> back — the token this method exists to remove

The trigger-text call site sits in _handle_slack_message outside any try,
and both Bolt event handlers await it bare, so the raise takes the whole
inbound message down: every message mentioning that person is dropped.

Pass the replacement as a function instead — re does no template parsing
on the return value, so the name lands verbatim. Same shape the Matrix
adapter already uses for its outbound mention rewrite.
2026-08-08 05:58:43 -07:00
..
a2a
buzz
dingtalk refactor: fold simplify-code review findings 2026-08-07 13:28:43 +05:30
discord fix(gateway): split check_fn (passive probe) from ensure_deps_fn (active installer) 2026-08-07 13:28:43 +05:30
email
feishu refactor: fold simplify-code review findings 2026-08-07 13:28:43 +05:30
google_chat
homeassistant
irc
line
matrix refactor(matrix): extract _strip_reply_fallback to deduplicate text+media handlers 2026-08-07 14:34:55 +05:30
mattermost
ntfy
photon
raft
simplex refactor(simplex): hoist json.dumps above branch in _standalone_send 2026-08-08 13:56:12 +05:30
slack fix(slack): insert resolved display names literally when humanizing mentions 2026-08-08 05:58:43 -07:00
sms
teams refactor: derive teams install hint via feature_install_command(venv_pip=True) 2026-08-07 13:28:43 +05:30
telegram fix: harden _await_disconnect_step against outer cancellation + add claim keys 2026-08-07 18:32:45 +05:30
wecom refactor: fold simplify-code review findings 2026-08-07 13:28:43 +05:30
whatsapp