feat(feishu): add require_mention and free_response_chats config for group messages - #15058
Closed
batmanhz wants to merge 1 commit into
Closed
feat(feishu): add require_mention and free_response_chats config for group messages#15058batmanhz wants to merge 1 commit into
batmanhz wants to merge 1 commit into
Conversation
…group messages Align Feishu platform with other messaging platforms (Telegram, Discord, WhatsApp) by introducing a configurable mention requirement for group messages. - Add 'require_mention' config (default: true) to control whether group messages must @mention the bot to trigger processing. - Add 'free_response_chats' config to whitelist specific group chats that bypass both mention and user allowlist checks. - Support both YAML config (feishu.require_mention, feishu.free_response_chats) and env vars (FEISHU_REQUIRE_MENTION, FEISHU_FREE_RESPONSE_CHATS). - Update gateway config loader to map free_response_chats from YAML to platform extra dict. - Update tests to cover new mention bypass and free-response chat scenarios.
This was referenced Apr 24, 2026
Contributor
|
Thanks for the Feishu group-routing contribution. This is an automated hermes-sweeper review; current
|
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Align Feishu platform with other messaging platforms (Telegram, Discord, WhatsApp) by introducing a configurable mention requirement for group messages.
Changes
1. New Configuration Options
require_mention(default:true): Controls whether group messages must@mentionthe bot to trigger processing.free_response_chats(default:[]): Whitelist of specific group chat IDs that bypass both mention and user allowlist checks.2. Configuration Support
feishu.require_mention,feishu.free_response_chatsFEISHU_REQUIRE_MENTION,FEISHU_FREE_RESPONSE_CHATS3. Files Modified
gateway/platforms/feishu.py: Added settings, parsing, and updated_should_accept_group_messagelogic.gateway/config.py: Addedfree_response_chatsto the platform config bridge.hermes_cli/config.py: Added new env vars to known keys.tests/gateway/test_feishu.py: Updated and added tests for the new behavior.4. Usage Example
5. Testing
All 189 Feishu tests pass locally.