From 9273f698baef1676cb7d12f7b66fffffc364f6ff Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Fri, 15 Nov 2024 10:39:52 -0800 Subject: [PATCH] only do user goal validation when the task.navigation_goal is set (#1204) --- skyvern/webeye/actions/handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skyvern/webeye/actions/handler.py b/skyvern/webeye/actions/handler.py index 1cb29581..02138fdb 100644 --- a/skyvern/webeye/actions/handler.py +++ b/skyvern/webeye/actions/handler.py @@ -1031,7 +1031,7 @@ async def handle_complete_action( step: Step, ) -> list[ActionResult]: # If this action has a source_action_id, then we need to make sure if the goal is actually completed. - if action.source_action_id: + if action.source_action_id and task.navigation_goal: LOG.info( "CompleteAction has source_action_id, checking if goal is completed", task_id=task.task_id, @@ -1051,7 +1051,7 @@ async def handle_complete_action( ] action.verified = True - if not action.verified: + if not action.verified and task.navigation_goal: LOG.info( "CompleteAction hasn't been verified, going to verify the user goal", task_id=task.task_id,