From 394d4cf64bac3ecdc38cf5354584ba1d82d0878f Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Mon, 3 Mar 2025 14:39:15 -0500 Subject: [PATCH] do not raise error when agent hallucinate the download (#1872) --- skyvern/webeye/actions/handler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/skyvern/webeye/actions/handler.py b/skyvern/webeye/actions/handler.py index d28a4654..ed691d27 100644 --- a/skyvern/webeye/actions/handler.py +++ b/skyvern/webeye/actions/handler.py @@ -43,7 +43,6 @@ from skyvern.exceptions import ( NoAutoCompleteOptionMeetCondition, NoAvailableOptionFoundForCustomSelection, NoElementMatchedForTargetOption, - NoFileDownloadTriggered, NoIncrementalElementFoundForAutoCompletion, NoIncrementalElementFoundForCustomSelection, NoSuitableAutoCompleteOption, @@ -510,7 +509,7 @@ async def handle_click_to_download_file_action( step_id=step.step_id, workflow_run_id=task.workflow_run_id, ) - return [ActionFailure(exception=NoFileDownloadTriggered(action.element_id))] + return [ActionSuccess(download_triggered=False)] # check if there's any file is still downloading downloading_files = list_downloading_files_in_directory(download_dir)