From 7cde1549b23c8e527f8c11258e8d6a74c6072936 Mon Sep 17 00:00:00 2001 From: Octopus Date: Thu, 2 Apr 2026 16:52:06 +0800 Subject: [PATCH] fix: initialize answer variable and reset stop flag in PlannerAgent.process (fixes #359) --- sources/agents/planner_agent.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sources/agents/planner_agent.py b/sources/agents/planner_agent.py index ff6cba4..720908c 100644 --- a/sources/agents/planner_agent.py +++ b/sources/agents/planner_agent.py @@ -264,6 +264,8 @@ class PlannerAgent(Agent): agents_tasks = [] required_infos = None agents_work_result = dict() + answer = "" + self.stop = False self.status_message = "Making a plan..." agents_tasks = await self.make_plan(goal)