File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -232,10 +232,8 @@ def summary_hook(messages: list):
232232# agent_loop — same as s04 + nag reminder counter
233233# ═══════════════════════════════════════════════════════════
234234
235- rounds_since_todo = 0
236-
237235def agent_loop (messages : list ):
238- global rounds_since_todo
236+ rounds_since_todo = 0
239237 while True :
240238 # s05: nag reminder — inject if model hasn't updated todos for 3 rounds
241239 if rounds_since_todo >= 3 and messages :
Original file line number Diff line number Diff line change @@ -312,10 +312,8 @@ def summary_hook(messages: list):
312312# agent_loop — same as s05 + nag reminder, task auto-dispatches
313313# ═══════════════════════════════════════════════════════════
314314
315- rounds_since_todo = 0
316-
317315def agent_loop (messages : list ):
318- global rounds_since_todo
316+ rounds_since_todo = 0
319317 while True :
320318 # s05: nag reminder
321319 if rounds_since_todo >= 3 and messages :
Original file line number Diff line number Diff line change @@ -356,10 +356,8 @@ def summary_hook(messages: list):
356356# agent_loop — same as s05-s06 + nag reminder
357357# ═══════════════════════════════════════════════════════════
358358
359- rounds_since_todo = 0
360-
361359def agent_loop (messages : list ):
362- global rounds_since_todo
360+ rounds_since_todo = 0
363361 while True :
364362 if rounds_since_todo >= 3 and messages :
365363 messages .append ({"role" : "user" ,
You can’t perform that action at this time.
0 commit comments