From 95edc8f744749c8749d95a7e0b3cd8d56cda73cf Mon Sep 17 00:00:00 2001 From: yzlin Date: Wed, 10 Apr 2024 15:25:41 +0800 Subject: [PATCH] fix human review bug --- metagpt/strategy/planner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metagpt/strategy/planner.py b/metagpt/strategy/planner.py index fbf784837..427e41562 100644 --- a/metagpt/strategy/planner.py +++ b/metagpt/strategy/planner.py @@ -119,7 +119,7 @@ class Planner(BaseModel): If human confirms the task result, then we deem the task completed, regardless of whether the code run succeeds; if auto mode, then the code run has to succeed for the task to be considered completed. """ - auto_run = auto_run or self.auto_run + auto_run = auto_run if auto_run is not None else self.auto_run if not auto_run: context = self.get_useful_memories() review, confirmed = await AskReview().run(