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: remove isatty guard in _ensure_utf8_console (#95) (#101)

Pnant75a2213510c2
diff --git a/agent_reach/cli.py b/agent_reach/cli.py
index d4123a79..6de350e1 100644
--- a/agent_reach/cli.py
+++ b/agent_reach/cli.py
@@ -25,8 +25,6 @@ def _ensure_utf8_console():
# Avoid interfering with pytest/captured streams.
if os.environ.get("PYTEST_CURRENT_TEST"):
return
- if not getattr(sys.stdout, "isatty", lambda: False)():
- return
try:
import io
if hasattr(sys.stdout, "buffer"):