用户说"推送给我的企业微信",消息却同时进了个人微信。根因:send_to_user 是无差别广播(for ch in active_channels() 逐个推),且 wechat_push 工具 没有指定渠道的参数 —— 部署同开 clawbot+wecom 时一条推送两边都到。 - send_to_user 加 channel=None:None 保持广播(定时任务/不点名沿用,向后 兼容);指定 wecom/clawbot 时只投那一条,该渠道未开返回单条 no_binding, 不静默回退到别的渠道。 - WechatPushTool 加可选 channel(enum wecom/clawbot)+ 描述教 agent 「用户点名某微信就传对应 channel」,execute 做渠道白名单校验。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| crypto.py | ||
| ilink.py | ||
| inbound.py | ||
| service.py | ||
| wecom.py | ||
| wecom_crypto.py | ||