Skip to content

The agent that grows with you

fix(cli): keep Ctrl+T and steer/stop from stalling the UI loop on the gateway

kshitijk4poor69f0f371e0d9
diff --git a/hermes_cli/cli_subagent_monitor.py b/hermes_cli/cli_subagent_monitor.py
index c3d28b46d0f..805b2f7e63d 100644
--- a/hermes_cli/cli_subagent_monitor.py
+++ b/hermes_cli/cli_subagent_monitor.py
@@ -469,7 +469,9 @@ def open_monitor(cli):
async def run():
try:
async with in_terminal():
- monitor.refresh()
+ # Paint the roster the dock's tick already holds; refreshing here would block the UI
+ # loop on the gateway's subagent.list. The spinner thread's next tick re-reads it.
+ monitor._last_poll = 0
monitor.app = build_monitor_application(monitor)
await monitor.app.run_async()
finally:
diff --git a/hermes_cli/gateway_tools.py b/hermes_cli/gateway_tools.py
index 58469e7ae53..e1380136c4a 100644
--- a/hermes_cli/gateway_tools.py
+++ b/hermes_cli/gateway_tools.py
@@ -179,11 +179,11 @@ class GatewayProcessView:
try:
if action == "steer":
result = self.connection.call("subagent.steer", session_id=self.session_id,
- subagent_id=subagent_id, text=message) or {}
+ subagent_id=subagent_id, text=message, timeout=5) or {}
ok = result.get("status") == "queued"
else:
result = self.connection.call("subagent.interrupt", session_id=self.session_id,
- subagent_id=subagent_id) or {}
+ subagent_id=subagent_id, timeout=5) or {}
ok = bool(result.get("found"))
except GatewayClientError as exc:
return {"error": str(exc)}