mirror of
https://github.com/shareAI-lab/analysis_claude_code.git
synced 2026-08-06 12:03:37 +08:00
fix: make rounds_since_todo a local variable
This commit is contained in:
@@ -312,11 +312,8 @@ register_hook("Stop", summary_hook)
|
||||
# agent_loop — same as s05 + nag reminder, task auto-dispatches
|
||||
# ═══════════════════════════════════════════════════════════
|
||||
|
||||
rounds_since_todo = 0
|
||||
|
||||
def agent_loop(messages: list):
|
||||
global rounds_since_todo
|
||||
rounds_since_todo = 0 # 每轮新对话从0开始计数
|
||||
rounds_since_todo = 0
|
||||
while True:
|
||||
# s05: nag reminder
|
||||
if rounds_since_todo >= 3 and messages:
|
||||
|
||||
Reference in New Issue
Block a user