WeKnora/internal/im/wecom
nullkey 39831fb61c fix(wecom): strip @mention from group chat messages to fix slash commands
WeCom AI Bot does not strip @mention from text.content in group chats,
causing all slash commands (/stop, /clear, /help) to fail — the content
arrives as "@BotName /stop" instead of "/stop".

- Add stripAtMentionBasic (stateless) and stripAtMention (with bot name
  caching) to handle multi-word bot display names
- Support bot_name in channel credentials for immediate precision
- Apply stripping in both WebSocket and webhook adapters, text and mixed
- Add mention_test.go with 21 test cases
2026-04-03 11:34:22 +08:00
..
longconn.go fix(wecom): strip @mention from group chat messages to fix slash commands 2026-04-03 11:34:22 +08:00
mention_test.go fix(wecom): strip @mention from group chat messages to fix slash commands 2026-04-03 11:34:22 +08:00
quote.go fix(im): anti-hallucination for non-text quotes and unprocessable media messages 2026-04-03 11:34:22 +08:00
quote_test.go fix(im): anti-hallucination for non-text quotes and unprocessable media messages 2026-04-03 11:34:22 +08:00
webhook_adapter.go fix(wecom): strip @mention from group chat messages to fix slash commands 2026-04-03 11:34:22 +08:00
ws_adapter.go feat(im): add file support and knowledge base integration 2026-03-17 22:23:24 +08:00