Skip to content

Give your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.

fix(wechat): Windows 系统上 doctor 误判微信公众号渠道不可用 (#263)

Pgooonea45147c53db6
diff --git a/agent_reach/channels/wechat.py b/agent_reach/channels/wechat.py
index 050b9884..b7ebc4c9 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: