Repository navigation
Commit 87d227b
committed
fix(feishu): promote send attachment aliases instead of silent drop
A direct Gateway message.action send may arrive with attachment aliases
(path/filePath/fileUrl/image/mediaUrl/mediaUrls/attachments[]) instead of
the canonical media field. The Feishu send handler only read params.media,
so any alias was silently dropped and the send returned ok:true on the
text-only branch, misleading the agent about delivery (#112244).
Add resolveFeishuSendAttachmentMedia (mirrors the Mattermost send-attachment
resolver) to collect every alias into one canonical mediaUrl, reject
unsupported buffer/base64 payloads, and reject multiple attachments (Feishu
delivers one media item per message). thread-reply keeps its text-only path.
Related to #1122441 parent 03658a9 commit 87d227b
6 files changed
Lines changed: 1391 additions & 12 deletions
File tree
- extensions/feishu/src
- src/gateway/server-methods
0 commit comments