6 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
1667d070ec refactor(partners): unify markdown table row splitting across channels
#679/#682/#683 each fixed markdown-table cell handling in one channel, but
Slack (convert_markdown_table_to_labeled_rows) and Telegram (_render_table_box)
still split rows with str.strip("|"), which collapses leading/trailing empty
cells and shifts every column — only Feishu (#683) had the correct split.

Extract split_markdown_table_row as the single primitive and route Slack,
Telegram, and Feishu through it: fixes the same class of bug in all three and
removes three near-duplicate row splitters. Slack's separator-row detection now
reuses is_markdown_table_separator_row instead of an ad-hoc regex.

Also fixes the #679 helpers-import ordering and formats the #679/#683 test
files that squash-merge did not run through ruff format.
2026-07-24 16:19:35 +08:00
Santh
68de93f66e fix(partners): keep empty cells when converting Slack markdown tables (#679)
Blank cells were dropped by a truthiness filter, so columns disappeared from the Slack rendering.

Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>
2026-07-24 16:09:55 +08:00
Santh
968921b135 fix(partners): do not treat empty markdown rows as table separators (#682)
all([]) is True in Python, so a blank table row was treated as a separator.
2026-07-24 16:04:59 +08:00
Santh
87d243d747 fix(partners): keep empty edge cells in Feishu markdown tables (#683)
strip("|") collapsed leading/trailing empty cells, so ||Name|Age| lost a column and shifted row values.
2026-07-24 16:04:53 +08:00
Bingxi Zhao (Frank)
7e763036ec chore: name the native-tool backend set; move wecom test beside other channel tests
Follow-up to #626/#631: the anthropic/openai_codex backend allowlist in
can_use_native_tool_calling becomes a documented module constant
mirroring _NATIVE_TOOL_BLOCKED_BINDINGS, and the WeCom regression test
moves to tests/services/partners/ where every other channel test lives.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-19 00:50:07 +08:00
tianrking
8cf604577e fix(partners): align WeCom with SDK 1.0.8 2026-07-16 13:23:36 +08:00