From 36f499ab9ed8d499f33f867ef55a2a845e7c9b9c Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Tue, 3 Feb 2026 15:57:59 -0800 Subject: [PATCH] Fix ActionDragPath subscript error in CUA drag action parsing (#SKY-7774) (#4623) --- skyvern/webeye/actions/parse_actions.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/skyvern/webeye/actions/parse_actions.py b/skyvern/webeye/actions/parse_actions.py index b81e580c..440e476e 100644 --- a/skyvern/webeye/actions/parse_actions.py +++ b/skyvern/webeye/actions/parse_actions.py @@ -370,12 +370,13 @@ async def parse_cua_actions( intention=reasoning, ) else: - start_x, start_y = whole_path[0][0], whole_path[0][1] + # ActionDragPath objects have x and y attributes + start_x, start_y = whole_path[0].x, whole_path[0].y reasoning = reasoning or f"Drag action path: {whole_path}" action = DragAction( start_x=start_x, start_y=start_y, - path=whole_path[1:], + path=[(p.x, p.y) for p in whole_path[1:]], reasoning=reasoning, intention=reasoning, )