Conversation
- 钉钉: 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
- gateway/platforms/__init__.py: 添加 FeishuAdapter/WeComAdapter lazy import - tools/send_message_tool.py: 3处 from gateway.platforms.feishu/wecom 改为 from plugins.platforms.feishu/wecom.adapter Refs: NousResearch#41112
QQ Bot standalone path now uses msg_type=2 (markdown) instead of msg_type=0 (plain text), enabling rich rendering of markdown tables. Refs: NousResearch#39510
Contributor
|
Duplicate of #39510 — same author, identical file set ( |
Author
|
Superseded by update to #39510 |
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.
中文
问题:standalone 发送路径下,钉钉走纯文本、飞书检测到表格强制 text 模式、QQ 用 msg_type=0 纯文本,导致 markdown 表格在各平台无法正常渲染。
改动:
English
Problem: The standalone send path sends DingTalk as plain text, Feishu forces text mode for tables, and QQBot uses msg_type=0 (plain text), causing markdown tables to render as literal characters.
Changes: