The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(agent): describe restart_count as restarts since the last response
kshitijk4poore2c282c2eda5
diff --git a/agent/turn_iteration_prep.py b/agent/turn_iteration_prep.pyindex 1dbc05282f8..35f213e6693 100644--- a/agent/turn_iteration_prep.py+++ b/agent/turn_iteration_prep.py@@ -428,7 +428,7 @@ def apply_retry_restarts(``_preflight_compression_blocked`` so the fallback gets a fresh preflight (#84733).The two refunding restart paths (redirect and rebuilt-for-fallback) are bounded by- ``max_retries`` via ``restart_count`` (a per-turn accumulator) so a runaway+ ``max_retries`` via ``restart_count`` (restarts since the last response) so a runawayinterrupt/redirect that keeps re-arming a restart flag cannot refund the budgetforever and hold the turn lease indefinitely."""