mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-11-12 22:20:33 +00:00
WeCom leaves the bot mention in group message text, so `_publish_ws_inbound` handed "@RobotA /new" to `is_known_channel_command`, which requires a bare leading slash. The turn was classified as chat and the command never ran. Strip leading mentions for the command lookup only, mirroring Feishu (#4229) and DingTalk (#4724): ordinary chat keeps its mentions, and the stripped form is what reaches ChannelManager so it parses `/new`. The comment spells out that this drops any leading mention, not only the bot's -- WeCom text mentions carry display names, so `aibotid` cannot be matched against them. Recorded in CHANGELOG.md / CHANGELOG_zh.md under Unreleased -> Fixed. Fixes #8099 Co-authored-by: Willem Jiang <willem.jiang@gmail.com>