Compare commits

...

1 Commits

Author SHA1 Message Date
Soulter
ecef01498f fix: ensure JSON response is encoded with non-ASCII characters for shell command execution
fixes: #7452
2026-04-12 14:00:53 +08:00

View File

@@ -73,6 +73,6 @@ class ExecuteShellTool(FunctionTool):
background=background,
env=env,
)
return json.dumps(result)
return json.dumps(result, ensure_ascii=False)
except Exception as e:
return f"Error executing command: {str(e)}"