From db6c513d1ec4e6d03161bfb96bd038d945f69e09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=92=B8=E5=A3=AB=E5=B1=B1=200668001391?= Date: Thu, 26 Feb 2026 14:23:55 +0800 Subject: [PATCH] feishu: include message_id in agent message body (fix #27218) --- extensions/feishu/src/bot.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extensions/feishu/src/bot.ts b/extensions/feishu/src/bot.ts index f18658e62b5..769982d2244 100644 --- a/extensions/feishu/src/bot.ts +++ b/extensions/feishu/src/bot.ts @@ -841,6 +841,9 @@ export async function handleFeishuMessage(params: { messageBody += `\n\n[System: Your reply will automatically @mention: ${targetNames}. Do not write @xxx yourself.]`; } + // Include message_id in body so the agent can use it (e.g. for Feishu API media download or reply). + messageBody = `[message_id: ${ctx.messageId}] ${messageBody}`; + const envelopeFrom = isGroup ? `${ctx.chatId}:${ctx.senderOpenId}` : ctx.senderOpenId; // If there's a permission error, dispatch a separate notification first