🤖 Feishu: tighten mention gating

What:
- require the bot open_id match for group mention detection when available

Why:
- prevent replies when other users are mentioned and the bot id is known

Tests:
- pnpm test
This commit is contained in:
Josh Palmer
2026-02-05 12:33:59 -08:00
parent 4fc4c5256a
commit 7c951b01ab

View File

@@ -250,7 +250,7 @@ export async function processFeishuMessage(
const botOpenId = options.botOpenId?.trim();
const wasMentioned = botOpenId
? mentions.some((m) => m.id?.open_id === botOpenId || m.id?.user_id === botOpenId)
: mentions.length > 0;
: false;
// In group chat, check requireMention setting
if (isGroup) {