From e9c1ab2e9406f4dc3a19420f97fa6aed6d20bd2b Mon Sep 17 00:00:00 2001 From: yunweibang Date: Thu, 12 Mar 2026 15:20:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(feishu):=20simplify=20eventDedup=20key=20?= =?UTF-8?q?=E2=80=94=20drop=20redundant=20accountId=20prefix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit eventDedup is already scoped per account (one instance per registerEventHandlers call), so the accountId prefix in the cache key is redundant. Use `evt:${messageId}` instead. --- extensions/feishu/src/monitor.account.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/feishu/src/monitor.account.ts b/extensions/feishu/src/monitor.account.ts index 1dba7478d74..723c5e1e7fc 100644 --- a/extensions/feishu/src/monitor.account.ts +++ b/extensions/feishu/src/monitor.account.ts @@ -401,7 +401,7 @@ function registerEventHandlers( const event = data as unknown as FeishuMessageEvent; const messageId = event.message?.message_id?.trim(); if (messageId) { - const eventKey = `${accountId}:evt:${messageId}`; + const eventKey = `evt:${messageId}`; if (eventDedup.check(eventKey)) { log(`feishu[${accountId}]: dropping duplicate event for message ${messageId}`); return;