From 5ec885ddd19d25bdbc6139ab04de5ebc139aceeb Mon Sep 17 00:00:00 2001 From: LawyZheng Date: Thu, 30 Oct 2025 15:33:26 +0800 Subject: [PATCH] revert #2154 - fix complete action bug (#3859) --- skyvern/webeye/actions/handler.py | 7 ------- skyvern/webeye/actions/parse_actions.py | 3 +++ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/skyvern/webeye/actions/handler.py b/skyvern/webeye/actions/handler.py index 4e7d7f4c..f2d3cea8 100644 --- a/skyvern/webeye/actions/handler.py +++ b/skyvern/webeye/actions/handler.py @@ -1971,13 +1971,6 @@ async def handle_complete_action( ) action.verified = True - if not task.data_extraction_goal and verification_result.thoughts: - await app.DATABASE.update_task( - task.task_id, - organization_id=task.organization_id, - extracted_information=verification_result.thoughts, - ) - return [ActionSuccess()] diff --git a/skyvern/webeye/actions/parse_actions.py b/skyvern/webeye/actions/parse_actions.py index 4b0cf999..ac732396 100644 --- a/skyvern/webeye/actions/parse_actions.py +++ b/skyvern/webeye/actions/parse_actions.py @@ -769,6 +769,9 @@ async def generate_cua_fallback_actions( LOG.info("Fallback action response", action_response=action_response) skyvern_action_type = action_response.get("action") useful_information = action_response.get("useful_information") + + # use 'other' action as fallback in the 'cua-fallback-action' prompt + # it can avoid LLM returning unreasonable actions, and fallback to use 'wait' action in agent instead action = WaitAction( seconds=5, reasoning=reasoning,