From e1feb6cb45fe3c8bd39db5e1f93f7caefc358daa Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Thu, 1 May 2025 07:11:33 +0800 Subject: [PATCH] capitalize the text for key press and hold key actions (#2263) --- skyvern/webeye/actions/parse_actions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skyvern/webeye/actions/parse_actions.py b/skyvern/webeye/actions/parse_actions.py index 284d42fb..2cdc662c 100644 --- a/skyvern/webeye/actions/parse_actions.py +++ b/skyvern/webeye/actions/parse_actions.py @@ -484,7 +484,7 @@ async def parse_anthropic_actions( ) ) elif action in ["key", "hold_key"]: - text = tool_call_input.get("text") + text = tool_call_input.get("text", "") if not text: LOG.warning( "Anthropic CUA error: key action has no text", @@ -492,6 +492,7 @@ async def parse_anthropic_actions( ) idx += 1 continue + text = text.capitalize() response = f"Press keys: {text}" hold = action == "hold_key" duration = tool_call_input.get("duration", 0)