fix:修复循环异常思索

This commit is contained in:
SengokuCola
2025-06-15 13:44:21 +08:00
parent 83ae078d6e
commit 11c36ef9e3
5 changed files with 241 additions and 8 deletions

View File

@@ -582,7 +582,8 @@ class ActionModifier:
reply_sequence = [] # 记录最近的动作序列
for cycle in recent_cycles:
action_type = cycle.loop_plan_info["action_result"]["action_type"]
action_result = cycle.loop_plan_info.get("action_result", {})
action_type = action_result.get("action_type", "unknown")
if action_type == "no_reply":
no_reply_count += 1
reply_sequence.append(action_type == "reply")