diff --git a/src/agenthub/channels/wecom.py b/src/agenthub/channels/wecom.py index 83aa31c..0500a59 100644 --- a/src/agenthub/channels/wecom.py +++ b/src/agenthub/channels/wecom.py @@ -132,6 +132,9 @@ class WecomAibotChannel: if raw is None: continue msg = json.loads(raw) + cmd = msg.get("cmd", "") + if cmd: # skip ack/pong frames (no cmd? actually acks have no cmd) + self._logger.info(f"[wecom] recv cmd={cmd} chatid={(msg.get('body') or {}).get('chatid')} msgtype={(msg.get('body') or {}).get('msgtype')}") try: self._dispatch(msg, ws) except Exception as e: # noqa: BLE001