fix(send_message): 钉钉 standalone Markdown + 飞书表格渲染 / DingTalk markdown + Feishu tables#39510
Open
WenhuaXia wants to merge 3 commits into
Open
fix(send_message): 钉钉 standalone Markdown + 飞书表格渲染 / DingTalk markdown + Feishu tables#39510WenhuaXia wants to merge 3 commits into
WenhuaXia wants to merge 3 commits into
Conversation
dd41896 to
c0b8f1d
Compare
- 钉钉: send_message_tool standalone delivery 从 text 改为 markdown, 被拒绝时 fallback 到纯文本, 与 live adapter 对齐 - 飞书: 移除 _MARKDOWN_TABLE_RE workaround, 表格走 post markdown 管道 (飞书已原生支持表格). 修复 fallback 路径保留原始 markdown 而非 _strip_markdown_to_plain_text Refs: NousResearch#37345 (dingtalk PR), NousResearch#27922 (feishu PR)
The previous (\|.*\|) pattern was too broad - it would match any line containing pipes, causing false positives. The correct pattern from PR NousResearch#27922 is (^\s*\|) which only matches lines starting with | (table cells). Refs: NousResearch#27922
The patch tool had introduced double-escaped backslashes (\\ instead of \), causing FutureWarning on Python 3.12+. Corrected to single backslashes matching the original file encoding. Refs: NousResearch#39510
c0b8f1d to
f6e24a1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
钉钉 / DingTalk
msgtype: text改为msgtype: markdown飞书 / Feishu
_MARKDOWN_TABLE_REworkaround(历史代码强制表格降级为纯文本)_MARKDOWN_HINT_RE中添加(^\\s*\\|)表格检测,使表格路由到 post markdown 管道Root Cause
msgtype: text, tables rendered as raw pipesmsgtype: markdownwith text fallback_MARKDOWN_TABLE_REforced tables to plain text as historical workaroundReferences
Changes
tools/send_message_tool.py: markdown msgtype for DingTalk standalone delivery (+fallback)gateway/platforms/feishu.py: remove table force-text workaround, add table detection to markdown hint regex