From 69ea08ad44043a1c6335f3038a489709fde8ac6b Mon Sep 17 00:00:00 2001 From: OpenBot Date: Tue, 13 Oct 2026 17:34:53 +0800 Subject: [PATCH] chore(wecom): INFO log on every inbound callback frame (recv diagnostics) --- src/agenthub/channels/wecom.py | 3 +++ 1 file changed, 3 insertions(+) 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