Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

fix: cmd tool

douranef3f27c3239b
diff --git a/jiuwenclaw/agentserver/tools/command_tools.py b/jiuwenclaw/agentserver/tools/command_tools.py
index 385ae75ae8..dd71755009 100644
--- a/jiuwenclaw/agentserver/tools/command_tools.py
+++ b/jiuwenclaw/agentserver/tools/command_tools.py
@@ -169,6 +169,8 @@ def _run_command_sync(
shell=use_shell,
cwd=str(workdir),
text=True,
+ encoding='utf-8',
+ errors='replace',
capture_output=True,
timeout=timeout_seconds,
)