Commit 2e93367
committed
🔄 synced local 'skyvern/' with remote 'skyvern/'
## Summary
- Fixed `TypeError: 'ActionDragPath' object is not subscriptable` error in CUA drag action parsing
- The OpenAI CUA drag action returns `path` as `List[ActionDragPath]` where each `ActionDragPath` is an object with `.x` and `.y` attributes, not a subscriptable list/tuple
- Updated code to access `ActionDragPath` attributes using `.x` and `.y` instead of subscript operators `[0]` and `[1]`
- Convert `ActionDragPath` objects to tuples for `DragAction.path` field which expects `list[tuple[int, int]]`
## Test plan
- [ ] Verify CUA drag actions are parsed correctly without errors
- [ ] Test drag operations in browser automation tasks
🤖 Generated with [Claude Code](https://claude.ai/code)1 parent 4301e31 commit 2e93367
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
| 373 | + | |
| 374 | + | |
374 | 375 | | |
375 | 376 | | |
376 | 377 | | |
377 | 378 | | |
378 | | - | |
| 379 | + | |
379 | 380 | | |
380 | 381 | | |
381 | 382 | | |
| |||
0 commit comments