From 33da852ff1cae3adec505f0b7ea50af795415a72 Mon Sep 17 00:00:00 2001 From: Strider Date: Fri, 20 Mar 2026 07:53:31 +0800 Subject: [PATCH] fix: restrict requireMentionInThread to topic-thread groups only Plain quote-replies in normal groups also set threadReply=true (via root_id), which would incorrectly bypass the mention gate. Now only apply the thread override when the group is in topic-thread mode (group_topic or group_topic_sender). Co-Authored-By: Claude Opus 4.6 --- extensions/feishu/src/bot.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extensions/feishu/src/bot.ts b/extensions/feishu/src/bot.ts index a3b125ceecd..5eb85cba742 100644 --- a/extensions/feishu/src/bot.ts +++ b/extensions/feishu/src/bot.ts @@ -414,7 +414,10 @@ export async function handleFeishuMessage(params: { ({ requireMention } = resolveFeishuReplyPolicy({ isDirectMessage: false, - isThreadReply: groupSession?.threadReply, + isThreadReply: + groupSession?.threadReply && + (groupSession?.groupSessionScope === "group_topic" || + groupSession?.groupSessionScope === "group_topic_sender"), globalConfig: feishuCfg, groupConfig, }));