NousResearch/hermes-agent
Mattermost gateway @-mention filter feature requests
Cluster 2174 · gateway. Data as of
Nothing open on GitHub. Fix merged in #2443 on 22 Mar 2026. Check it covers your case.
The short answer
0open issues
0open PRs
3items grouped
- Known?
- Yes. 3 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #2443. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #2443. That is separate from the fix event. - Still open
- Nothing open on GitHub.
Multiple related proposals for adding a configurable mode to the Mattermost gateway adapter that restricts bot responses to messages containing @-mentions. The members appear to be duplicate or closely related feature requests for the same functionality.
Open issues0
Open PRs0
Fixes on record
-
#2443 feat(gateway): add @-mention-only filter for Mattermost channels
files:
gateway/platforms/mattermost.pyShow the diff
-
gateway/platforms/mattermost.py@@ -580,6 +580,24 @@ async def _handle_ws_event(self, event: Dict[str, Any]) -> None: # For DMs, user_id is sufficient. For channels, check for @mention. message_text = post.get("message", "") + # Mention-only mode: skip channel messages that don't @mention the bot. + # DMs (type "D") are always processed. + if channel_type_raw != "D": + mention_patterns = [ + f"@{self._bot_username}", + f"@{self._bot_user_id}", + ] + has_mention = any( + pattern.lower() in message_text.lower() + for pattern in mention_patterns + ) + if not has_mention: + logger.debug( + "Mattermost: skipping non-DM message without @mention (channel=%s)", + channel_id, + ) + return + # Resolve sender info. sender_id = post.get("user_id", "") sender_name = data.get("sender_name", "").lstrip("@") or sender_id
-
1 PR closed without merging
From the close comments: merged via another change 1
-
#2279 feat(gateway): add @-mention-only filter for Mattermost channels · merged via another change →
#2443
Closed issues · 1
- Closed#2174Feature: @-mention-only mode for Mattermost gateway adapter
How this cluster was grouped
-
Link evidence (
structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference. -
Pairwise link density
0.67: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36.1.00means every pair is linked.
Pick up a Lab task
Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.
Open the LabAt a glance
- Subsystem
- gateway
- Merged PRs
- #2443
- Closed issues
- 1
- Attempts
- 1 PR closed without merging
- Fix link checked
- 22 Mar 2026. This confirmation is old and may be out of date (a revert or reopen would not have invalidated it here); re-verify.