qwen-code/docs/users/features/channels
ChengHui Chen 1f92787aa0
feat(channels): add dmPolicy config to disable private/DM messages (#6521)
* feat(channels): add dmPolicy config to disable private/DM messages

Add DmGate class mirroring GroupGate to gate DM/private messages in
channel adapters. Operators can now set dmPolicy: 'disabled' in their
channel config to silently drop all DM messages while keeping group
messages active.

Closes #6392

* fix(channels): address review feedback for dmPolicy

- Add dmPolicy: 'open' to all test config factories (8 files) to
  maintain type correctness with required ChannelConfig field
- Add integration tests in ChannelBase.test.ts:
  - preflightInbound: DM dropped + group passes when dmPolicy=disabled
  - isStoredLoopTargetAuthorized: DM loop job disabled + group passes
- Add dmPolicy assertions in config-utils.test.ts (default + explicit)
- Keep dmPolicy as required field (not optional) for strict parity
  with groupPolicy
2026-07-08 12:01:10 +00:00
..
_meta.ts feat(channels): add WeCom intelligent robot channel (#6436) 2026-07-07 15:24:19 +00:00
dingtalk.md docs(channels): add DingTalk channel documentation 2026-03-26 09:14:31 +00:00
feishu.md docs(channels): add screenshots to Feishu setup guide (#4983) 2026-06-16 04:34:03 +00:00
overview.md feat(channels): add dmPolicy config to disable private/DM messages (#6521) 2026-07-08 12:01:10 +00:00
plugins.md feat(channels): add dmPolicy config to disable private/DM messages (#6521) 2026-07-08 12:01:10 +00:00
qqbot.md feat(channel): add QQ Bot (QQ机器人) channel adapter (#5202) 2026-06-19 06:32:52 +08:00
telegram.md feat(channels): add shared slash command system 2026-03-26 03:24:44 +00:00
wecom.md feat(channels): add WeCom intelligent robot channel (#6436) 2026-07-07 15:24:19 +00:00
weixin.md feat(channels): add crash recovery and gateway mode support 2026-03-26 02:55:18 +00:00