Skip to content

The agent that grows with you

refactor(gateway): clarify why the estop gate drops stray heartbeat turns

kshitijk4poorff244960a991
diff --git a/gateway/run_inbound.py b/gateway/run_inbound.py
index d5cbc84cf52..9a70d30abc1 100644
--- a/gateway/run_inbound.py
+++ b/gateway/run_inbound.py
@@ -329,9 +329,9 @@ class GatewayInboundMixin:
self, event: "MessageEvent", source: SessionSource, is_internal: bool
) -> Optional[str]:
"""Global emergency-stop (`hermes pause`) notice when this turn must be blocked, else None.
- Placed after auth so unauthorized senders can't probe pause state. A synthetic heartbeat gets
- "" (blocked, nothing sent): nobody typed it, and its tick stays due, so a notice would repeat
- every poll."""
+ Placed after auth so unauthorized senders can't probe pause state. A synthetic heartbeat that
+ slipped past the poller's pause check gets "" (blocked, nothing sent): nobody typed it, and
+ settle_heartbeat_attempt leaves its tick due for after resume."""
if is_internal:
return None
try: