Commit Graph

183 Commits

Author SHA1 Message Date
Laith Weinberger a75fa14d14 increase char limit for extraction 2026-01-23 16:38:38 -05:00
LarsenCundric dd8a63ce41 Improve placeholder handling for 2FA secrets in registry service 2026-01-16 17:05:50 -08:00
Magnus Müller c4b9710a84 Less priming for scroll 2026-01-10 18:33:17 -08:00
nitesh-77 bd6c1d76e2 style: use single quotes to satisfy ruff formatter 2025-12-23 06:06:33 +05:30
nitesh-77 d17f10fe45 fix: use str | None type hint to satisfy linter 2025-12-23 06:00:22 +05:30
nitesh-77 285995ecce fix: resolve Gemini API error on empty action schemas 2025-12-23 05:48:12 +05:30
mertunsall 20247d5c56 make coordinates optionally available 2025-12-12 14:26:13 -08:00
mertunsall 1489d55210 fix structured output when tools is passeD 2025-12-09 23:27:15 +00:00
mertunsall 2e3aed3045 faster scroll 2025-12-07 23:17:24 -08:00
mertunsall aa0d1fb00f get rid of force 2025-11-30 11:46:48 -08:00
mertunsall 3fe94db8f2 try to fix stuff 2025-11-29 13:16:14 -08:00
Mert Unsal 02cf38e864 Revert "allowing MUCH MORE with coordinates" 2025-11-28 04:00:22 -08:00
mertunsall 46cb1a0ae1 allowing MUCH MORE with coordinates 2025-11-27 14:48:23 -08:00
mertunsall 1c9a87b98f Fix more 2025-11-25 13:33:28 -08:00
Cursor Agent 36b2b93d9b Replace broken mouse click with ClickCoordinateEvent
- Add ClickCoordinateEvent to handle coordinate-based clicking via CDP
- Replace broken page.mouse.click() with CDP Input.dispatchMouseEvent
- Add safety checks for file inputs, select elements, and print dialogs
- Add get_dom_element_at_coordinates() to BrowserSession for element detection
- Add force parameter to ClickElementAction to optionally skip safety checks
- Update _click_by_coordinate to dispatch ClickCoordinateEvent instead of using mouse

This fixes coordinate clicking functionality by using CDP directly instead of
the broken Actor mouse object, matching the implementation from mert/everything_coordinates.
2025-11-24 19:55:48 +00:00
Mert Unsal 020af1f5e9 Merge branch 'main' into fix/3620-javascript-quote-fixer-regex 2025-11-22 00:55:55 -08:00
mertunsall e00ad12c40 lint 2025-11-22 00:16:09 -08:00
Mert Unsal 6d062fa139 Merge branch 'main' into cursor/enforce-screenshot-exclusion-for-non-auto-vision-claude-4.5-sonnet-thinking-bce8 2025-11-22 00:12:29 -08:00
mertunsall 688ff43f26 lint 2025-11-22 00:09:27 -08:00
Cursor Agent 444825f307 Checkpoint before follow-up message
Co-authored-by: mailmertunsal <mailmertunsal@gmail.com>
2025-11-22 08:08:44 +00:00
Mert Unsal 5833f885a7 Update browser_use/tools/service.py 2025-11-22 00:02:30 -08:00
Cursor Agent e4fd00ca08 Refactor: Remove unused file_system from evaluate and simplify memory handling
Co-authored-by: mailmertunsal <mailmertunsal@gmail.com>
2025-11-22 08:01:05 +00:00
Cursor Agent 6f2906762a Add long-term memory to evaluate action
Co-authored-by: mailmertunsal <mailmertunsal@gmail.com>
2025-11-22 07:57:17 +00:00
shubham-021 813c8518e7 fix/regex-pattern-for-quote-fixer 2025-11-19 12:21:08 +05:30
Mert Unsal ece9901b83 Merge branch 'main' into fix/scroll-action-default-down-field 2025-11-18 16:28:06 -08:00
Cursor Agent 93dc7a378d Changes made by Agent
Co-authored-by: mailmertunsal <mailmertunsal@gmail.com>
2025-11-18 23:41:22 +00:00
Cursor Agent 73c6c7d76b Changes made by Agent
Co-authored-by: mailmertunsal <mailmertunsal@gmail.com>
2025-11-18 23:37:25 +00:00
Utkarsh a6a557442f fix: Add default=True to ScrollAction.down field to handle LLM responses missing the field
- Fixes validation error when LLM returns {'scroll': {'pages': 3}} without 'down' field
- Defaults to True (scroll down) when 'down' is missing, which is the most common case
- Still supports explicit down=False for scrolling up
- Also fixes CDP client compatibility with older cdp-use versions by making max_ws_frame_size optional

Fixes validation errors with AWS Bedrock Claude and Gemini models
2025-11-16 22:27:58 +05:30
mertunsall a64c82ef2c sanitize everything now 2025-11-14 11:13:57 -08:00
reformedot bff596f2e7 refactor: remove target type caching and streamline target retrieval in session management
- Eliminated the caching of target types in SessionManager, simplifying the management of target information.
- Updated various components to directly access target types from the Target objects, enhancing clarity and reducing redundancy.
- Adjusted related methods in BrowserSession, CrashWatchdog, and DomService to reflect the changes in target type retrieval.
2025-11-12 15:19:34 -08:00
Aitor 461d8592b1 Merge branch 'main' into feat/improve-navigation 2025-11-12 04:32:27 +01:00
reformedot b4e9ffa984 refactor: implement error handling for asyncio tasks across various components
- Introduced a utility function `create_task_with_error_handling` to manage asyncio tasks with proper exception logging and suppression options.
- Updated multiple components, including `SessionManager`, `BrowserSession`, and various watchdogs, to utilize the new error handling mechanism for background tasks.
- Enhanced overall robustness of asynchronous operations by ensuring exceptions are logged and handled appropriately, improving maintainability and debugging capabilities.
2025-11-11 17:27:54 -08:00
mertunsall bc8fd10ea8 whatever 2025-11-11 15:31:58 -08:00
mertunsall 1e3a36dbce revert extract changes 2025-11-11 15:01:25 -08:00
mertunsall 3259c54ef6 Revert 2025-11-11 14:43:15 -08:00
mertunsall 07d9e4a252 fix comment 2025-11-10 21:30:09 -08:00
mertunsall e5df80a0d6 flatten the extract action and some small things 2025-11-08 10:02:15 -08:00
mertunsall d06d8fa8a2 image resizing the make sonnet 4.5 work 2025-11-07 22:20:14 -08:00
Mert Unsal 38fb9faaa4 Merge branch 'main' into mert/click_by_coordinate 2025-11-06 16:54:11 -08:00
mertunsall 03c9e94dc6 allow reading images such as jpg/png, as well as docx, fixes to the flash system prompt 2025-11-03 16:41:27 -08:00
Mert Unsal d8f41efb75 Merge branch 'main' into mert/click_by_coordinate 2025-11-03 14:28:22 -08:00
Alezander9 f1b0473645 Merge remote-tracking branch 'upstream/main' into library-judge 2025-11-01 15:25:55 -07:00
Mert Unsal bc7b353316 Merge branch 'main' into mert/click_by_coordinate 2025-11-01 14:00:09 -07:00
mertunsall 4dca53282c add clicking by coordinate 2025-11-01 13:58:15 -07:00
Cursor Agent 596ada0540 Log full file path when writing to file
Co-authored-by: mamagnus00 <mamagnus00@gmail.com>
2025-11-01 18:25:33 +00:00
Alezander9 0f1946cb54 implement simple judge directly into the library on done action 2025-10-31 20:01:07 -07:00
Magnus Müller bece4707d2 alphanumeric file names 2025-10-30 11:51:13 -07:00
Magnus Müller 0604bda9cf Write file desc 2025-10-30 10:37:31 -07:00
Magnus Müller cc89c37669 Include index desc for click 2025-10-30 10:13:49 -07:00
Magnus Müller 356183b4c5 Dropdown mesage 2025-10-30 10:11:32 -07:00