Commit Graph

641 Commits

Author SHA1 Message Date
Nick Sweeting 032f314a41 Merge branch 'main' into local-remote-split 2025-08-04 19:44:05 -07:00
Mert Unsal 60e5bf0e70 Merge branch 'main' into fix/gemini-dict-type-field-handling 2025-08-03 14:13:33 +01:00
Gregor Žunič 286b5ec801 Merge commit '90fa344b599d55c2984bd926161acfecbb681d8c' into feature/new-dom-extraction-layer 2025-08-02 14:34:20 -07:00
Gregor Žunič 0aa3d54233 Merge commit '9b882faa10c54be5a870cc5d8abd6ddb19d0682f' into feature/new-dom-extraction-layer 2025-08-02 11:41:28 -07:00
mertunsall 9bd0036223 separate agent history and state 2025-08-02 15:48:49 +01:00
mertunsall fcae1702a9 fix tests 2025-08-01 20:56:54 +01:00
Jai 87e856d319 Merge branch 'main' into fix/gemini-dict-type-field-handling 2025-08-01 20:46:32 +05:30
Nick Sweeting a0e2fac3ca more tests passing 2025-08-01 03:14:06 -07:00
Nick Sweeting 659c5145f6 more event-driven refactoring 2025-08-01 02:42:01 -07:00
Nick Sweeting ebc3a3846f wip cleanup flow] 2025-07-31 22:10:25 -07:00
Nick Sweeting ac0d5cf630 wip 2025-07-31 03:38:07 -07:00
Nick Sweeting e1de431cfe Merge branch 'main' into local-remote-split 2025-07-31 03:37:38 -07:00
Nick Sweeting 2b12eb6542 wip 2025-07-31 03:31:32 -07:00
Nick Sweeting 0919ab6d49 fixes 2025-07-31 01:35:25 -07:00
Nick Sweeting 183d6b2829 cleanup dead code 2025-07-31 01:25:11 -07:00
Nick Sweeting e924106246 add new watchdog service 2025-07-31 00:55:13 -07:00
Nick Sweeting ae479d6330 add storage state events and show recent events summary to llm 2025-07-31 00:54:53 -07:00
Nick Sweeting 83c5fa4393 fixes for small differences with old api 2025-07-30 23:34:54 -07:00
Nick Sweeting af92619c7d fix imports and lint 2025-07-30 21:46:34 -07:00
Nick Sweeting 0f87d345a7 add new eventbus layout 2025-07-30 16:57:26 -07:00
claude[bot] 5465163cd9 feat(mcp): add array type inference for MCP tool parameters
- Enhanced _json_schema_to_python_type to recursively handle array item types
- Arrays with ''items'' schema now properly return list[item_type] instead of plain list
- Supports nested types like list[str], list[float], and list[CustomModel]
- Added comprehensive test for array type inference in test_mcp_array_type_inference

This allows MCP tools with array parameters to have proper type hints and validation,
fixing issues where array parameters were losing their item type information.

Co-authored-by: Nick Sweeting <pirate@users.noreply.github.com>
2025-07-30 18:55:33 +00:00
Nick Sweeting aa5f80f881 Merge branch 'main' into claude/issue-2453-20250715_190029 2025-07-30 11:45:24 -07:00
Nick Sweeting 36cc752659 enable extensions explicitly during tests 2025-07-29 13:14:54 -07:00
Nick Sweeting dc52961003 Merge branch 'main' into claude-issue-2559-20250729-1800 2025-07-29 11:54:26 -07:00
claude[bot] a9685bc102 fix: fix lint errors in test_anthropic_502_error.py
- Add BaseMessage import and type messages lists properly
- Use monkeypatch fixture for proper mocking instead of direct assignment
- Fix formatting issues (quotes, spacing) per ruff/ruff-format rules

Co-authored-by: Nick Sweeting <pirate@users.noreply.github.com>
2025-07-29 18:50:40 +00:00
Nick Sweeting bb0f2ee560 fix missing self arg 2025-07-29 11:48:15 -07:00
Nick Sweeting 08f30544fd fix screenshot test 2025-07-29 11:28:56 -07:00
Nick Sweeting 3652ad2759 add new test for chrome: urls 2025-07-29 11:17:16 -07:00
claude[bot] cedb0d9cd4 fix: handle unexpected response types in ChatAnthropic
- Add type checking before accessing response.usage attribute
- Raise clear ModelProviderError when response is not a Message object
- Prevents AttributeError when API returns string errors instead of proper response
- Fixes issue #2559 where 502 errors caused ''str'' object has no attribute ''usage''

Co-authored-by: Nick Sweeting <pirate@users.noreply.github.com>
2025-07-29 18:09:01 +00:00
Nick Sweeting 4aedce1ea5 try fresh playwright for each function 2025-07-29 10:42:44 -07:00
Nick Sweeting 5224029aa8 add new tests 2025-07-28 12:54:07 -07:00
Jai 42a176a3f2 fix pre commit code quality checks 2025-07-27 11:05:19 +05:30
Jai 5405024889 fix: handle non-string type fields in Gemini schema processing 2025-07-27 10:55:47 +05:30
Nick Sweeting 775fad28d5 Merge branch 'main' into claude-issue-2471-20250718-0729 2025-07-25 02:51:18 -07:00
Nick Sweeting 2e768bdc7c Merge branch 'main' into never-relaunch 2025-07-25 02:37:35 -07:00
Nick Sweeting 39dfa7f624 always raise a hard error when browser crashes instead of restarting it 2025-07-25 02:34:18 -07:00
Nick Sweeting e1c5572c3a disable trace recording for now 2025-07-25 02:32:36 -07:00
Nick Sweeting c73c87c9f4 fix gif tests 2025-07-25 01:09:03 -07:00
Nick Sweeting 7cc55998f5 ruff format 2025-07-23 01:07:58 -07:00
Nick Sweeting cd7c603de8 more lint 2025-07-23 01:03:35 -07:00
Nick Sweeting f90988ed55 fix lint error 2025-07-23 00:53:04 -07:00
Nick Sweeting f236127e59 Merge branch 'main' into claude-issue-2471-20250718-0729 2025-07-23 00:50:15 -07:00
claude[bot] ba12148b19 refactor: consolidate PLACEHOLDER_4PX_SCREENSHOT constant
- Move 4px placeholder screenshot constant to browser_use.browser.views
- Update all references to use the single definition
- Fix all lint errors and formatting issues

Co-authored-by: Nick Sweeting <pirate@users.noreply.github.com>
2025-07-21 22:28:01 +00:00
claude[bot] fba94602fe fix: filter out about:blank placeholder screenshots from GIF generation
- Skip 4px placeholder screenshots when creating GIFs
- Find first real screenshot for task frame instead of using placeholder
- Add comprehensive tests for GIF filtering behavior
- Fixes issue where GIFs were generated at 4px dimensions

Co-authored-by: Nick Sweeting <pirate@users.noreply.github.com>
2025-07-21 06:48:26 +00:00
Magnus Müller af04b713d5 Fix lint errors 2025-07-20 16:14:42 +02:00
Magnus Müller c96121a98b Update wait test 2025-07-20 16:02:11 +02:00
Magnus Müller 2552825786 Update wait test 2025-07-20 15:59:20 +02:00
claude[bot] bcff6eec96 fix: Add ARIA menu roles to interactiveRoles for proper selector map inclusion
- Added ''menu'', ''menubar'', and ''menuitem'' to interactiveRoles set
- Uncommented ''listbox'' role
- Fixed tests to properly identify main ARIA menu by ID
- Added chromium_sandbox=False for CI environment compatibility

Co-authored-by: Nick Sweeting <pirate@users.noreply.github.com>
2025-07-19 09:09:30 +00:00
Nick Sweeting d93d1b1152 Merge branch 'main' into claude-issue-2471-20250718-0729 2025-07-18 15:16:22 -07:00
Nick Sweeting d2dbe538c9 disable bubus WAL for now 2025-07-18 12:49:39 -07:00