Skip to content

The agent that grows with you

fix(terminal): heartbeat error text matches the 0-disables schema

kshitijk4poore6f0966b0152
diff --git a/tools/terminal_tool.py b/tools/terminal_tool.py
index bd3029cd3da..be1496847b6 100644
--- a/tools/terminal_tool.py
+++ b/tools/terminal_tool.py
@@ -1548,7 +1548,7 @@ def _handle_terminal(args, **kw):
heartbeat = args.get("heartbeat") or 0
persist_on_release = bool(args.get("persist_on_release", False))
if not isinstance(heartbeat, int) or isinstance(heartbeat, bool) or heartbeat < 0:
- return tool_error("heartbeat must be a whole number of seconds (min 60).")
+ return tool_error("heartbeat must be a whole number of seconds (0 disables; positive values are clamped to min 60).")
if not args.get("background", False):
if notify or watch_patterns or notify_on_complete or heartbeat:
return tool_error(