The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(agent): feed both reasoning watches in one short-circuit check
kshitijk4pooracdf435054b0
diff --git a/agent/chat_completion_helpers.py b/agent/chat_completion_helpers.pyindex e97a61f12e7..30b30f8dd22 100644--- a/agent/chat_completion_helpers.py+++ b/agent/chat_completion_helpers.py@@ -3278,8 +3278,7 @@ class _StreamingCall(StreamingWaitMonitor):display_reasoning = detail_text or reasoning_textif display_reasoning:self._emit_reasoning(display_reasoning)- looped = [reasoning_watch.feed(reasoning_text or ""), detail_watch.feed(detail_text)]- if any(looped):+ if reasoning_watch.feed(reasoning_text) or detail_watch.feed(detail_text):runaway = "reasoning"break# Not routed to the live display: the transport promotes a sole-payload