diff --git a/run_agent.py b/run_agent.py index f71206c58..511841118 100644 --- a/run_agent.py +++ b/run_agent.py @@ -6169,6 +6169,8 @@ class AIAgent: if truncated_response_prefix: final_response = truncated_response_prefix + final_response + truncated_response_prefix = "" + length_continue_retries = 0 # Strip blocks from user-facing response (keep raw in messages for trajectory) final_response = self._strip_think_blocks(final_response).strip()