Skip to content

The agent that grows with you

fix(cli): decode cua-driver autostart PowerShell output as UTF-8

Teknium372b3b7bba4b
diff --git a/hermes_cli/tools_config.py b/hermes_cli/tools_config.py
index 5db37f83fa6..b1dd507ed1e 100644
--- a/hermes_cli/tools_config.py
+++ b/hermes_cli/tools_config.py
@@ -1341,6 +1341,8 @@ def _repair_cua_driver_autostart_windows(driver_cmd: str, *, verbose: bool) -> b
[ps, "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command", ps_cmd],
capture_output=True,
text=True,
+ encoding="utf-8",
+ errors="replace",
timeout=300,
env=_cua_driver_env(),
)