-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug] Feishu plugin: message read returns "[Interactive Card]" instead of actual card content #78289
Copy link
Copy link
Closed
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.no-staleExclude from stale automationExclude from stale automation
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.no-staleExclude from stale automationExclude from stale automation
Type
Fields
Priority
None yet
问题描述
当使用 OpenClaw 的
message(action=read)工具读取飞书卡片消息时,返回的 content 只有[Interactive Card],无法获取卡片的实际内容(markdown 正文等)。根因分析
飞书 API 的
GET /open-apis/im/v1/messages/:message_id有一个查询参数card_msg_content_type:user_card_content:返回发送时的完整原始卡片 JSON(Card 1.0/2.0)OpenClaw 飞书插件在两个函数中调用飞书 API 时都没有传递这个参数:
getMessageFeishu(文件send-DowxxbpH.js):listFeishuThreadMessages:解析层已兼容
parseInteractiveCardContent函数已经能处理 Card 2.0 的body.elements结构(支持markdown、lark_md、div等标签),只需要 API 层返回完整数据即可正确解析。飞书官方文档参考
环境信息