From a45147c53db692b42dfce1e4fc7ac2e7b060c5de Mon Sep 17 00:00:00 2001 From: Pgooone <30979461+Pgooone@users.noreply.github.com> Date: Mon, 13 Apr 2026 17:16:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(wechat):=20Windows=20=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E4=B8=8A=20doctor=20=E8=AF=AF=E5=88=A4=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E5=85=AC=E4=BC=97=E5=8F=B7=E6=B8=A0=E9=81=93=E4=B8=8D=E5=8F=AF?= =?UTF-8?q?=E7=94=A8=20(#263)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix(wechat): Windows GBK encoding causes false negative in doctor check --- agent_reach/channels/wechat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent_reach/channels/wechat.py b/agent_reach/channels/wechat.py index 050b988..b7ebc4c 100644 --- a/agent_reach/channels/wechat.py +++ b/agent_reach/channels/wechat.py @@ -17,7 +17,7 @@ def _exa_available() -> bool: try: r = subprocess.run( [mcporter, "config", "list"], - capture_output=True, text=True, timeout=5, + capture_output=True, encoding="utf-8", errors="replace", timeout=5, ) return "exa" in r.stdout.lower() except Exception: