Skip to content

fix(feishu): ignore @所有人/@everyone mentions in group chats - #57

Merged
johnson7788 merged 1 commit into
johnson7788:mainfrom
Mason-zy:fix/muc-feishu-atall
Jul 6, 2026
Merged

fix(feishu): ignore @所有人/@everyone mentions in group chats#57
johnson7788 merged 1 commit into
johnson7788:mainfrom
Mason-zy:fix/muc-feishu-atall

Conversation

@Mason-zy

@Mason-zy Mason-zy commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Backport of upstream NousResearch/hermes-agent#59347 (issue #33723).

Problem

In Feishu group chats, the bot replies to every @所有人 (@everyone) announcement, even when not explicitly mentioned.

Root cause

_mentions_self() in hermes-agent/plugins/platforms/feishu/adapter.py returns True for any message containing @_all (Feishu's @everyone placeholder), bypassing the require_mention gate.

Fix

Drop the @_all → return True branch. The other two mention paths (_message_mentions_bot by ID, _post_mentions_bot by is_self) do not match @everyone, so real @bot mentions are unaffected.

Message Before After
@所有人 review please replies ignored
@botname hey replies replies

Backport of NousResearch/hermes-agent#59347 (upstream issue #33723).

_mentions_self() treated @_all (Feishu @everyone placeholder) as a
self-mention, so @所有人 announcements triggered the bot in groups.
Drop that branch — real @bot mentions still work via the ID-based
mention detection paths.
@johnson7788
johnson7788 merged commit 1535568 into johnson7788:main Jul 6, 2026
@Mason-zy
Mason-zy deleted the fix/muc-feishu-atall branch July 14, 2026 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants