From bf928c08c2abc79ab69348425d39b9bcf00807bd Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Wed, 30 Apr 2025 21:20:51 -0700 Subject: [PATCH] fix anthropic key action parser (#2266) --- skyvern/webeye/actions/parse_actions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skyvern/webeye/actions/parse_actions.py b/skyvern/webeye/actions/parse_actions.py index cdfa6ffd..d1240802 100644 --- a/skyvern/webeye/actions/parse_actions.py +++ b/skyvern/webeye/actions/parse_actions.py @@ -499,8 +499,8 @@ async def parse_anthropic_actions( ) idx += 1 continue - text = text.capitalize() response = f"Press keys: {text}" + keys = text.split("+") hold = action == "hold_key" duration = tool_call_input.get("duration", 0) if hold: @@ -509,7 +509,7 @@ async def parse_anthropic_actions( actions.append( KeypressAction( element_id="", - keys=[text], + keys=keys, hold=hold, duration=duration, reasoning=reasoning,