Commit Graph

1438 Commits

Author SHA1 Message Date
Magnus Müller b552005356 Increase BrowserStateRequestEvent timeout from 30s to 60s
Production data analysis (BU2, 24h) shows:
- 36.5% of consecutive failures are AsyncIO CancelledError in get_browser_state_summary
- Complex pages can take 30-60s for DOM extraction alone
- 30s timeout was too aggressive for heavy pages

60s provides 2x buffer while still catching genuinely stuck requests.
Can be overridden via TIMEOUT_BrowserStateRequestEvent env var.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 02:06:56 -08:00
laithrw c62ceafa25 Merge branch 'main' into fix/3889-draftjs-first-char 2026-01-26 19:51:08 -05:00
Laith Weinberger ca049c67a1 clean comments 2026-01-26 19:28:45 -05:00
laithrw 7cf8575e4a Merge branch 'main' into main 2026-01-26 15:24:11 -05:00
zhongzhenyu b1fad345d6 style: remove trailing whitespace 2026-01-25 22:05:01 -08:00
zhongzhenyu f13d8246e9 fix: Fix Draft.js space prepending to only apply when clear=True 2026-01-25 21:58:18 -08:00
Laith Weinberger 6f8c077932 lint 2026-01-25 15:49:49 -05:00
Laith Weinberger 64ada81915 fix(#2867): verify dropdown selection and retry if reverted
addresses select_dropdown silently claiming success even when frameworks intercepted and reverted the selection
2026-01-25 15:40:22 -05:00
laithrw d1a53a158e Merge branch 'main' into main 2026-01-25 12:31:43 -05:00
zhongzhenyu c0f4f39570 fix(#3889): Draft.js editors lose first character when typing
CDP's dispatchKeyEvent doesn't trigger beforeinput events that Draft.js
relies on for text input. This causes the first character to be dropped.

Solution: Detect Draft.js editors via specific DOM attributes (DraftEditor
class, data-contents, data-block, data-offset-key) and prepend a sacrifice
space character that Draft.js will drop, preserving the actual text.
2026-01-15 18:13:25 -08:00
Enzo Biondo c4c5875ad0 Merge branch 'main' into feat/multi-tab-recording 2025-12-22 09:28:00 -03:00
Saurav Panda e62fc5242b Merge branch 'main' into fix/add-prohibited-domains-to-browser-session 2025-12-18 15:56:24 -08:00
Saurav Panda 88420e4fcd Merge branch 'main' into 3780-bug-environment-variables-completely-invalid-on-wsl2 2025-12-17 17:48:25 -08:00
Saurav Panda 556d1bc022 added BROWSER_USE_DISABLE_EXTENSIONS env var to disable extension 2025-12-17 17:31:46 -08:00
Steven Beverly 97ce4a85b3 Fix glob pattern for Playwright browser paths
playwright 1.57.0 installs chromium to $playwright_path/chromium-*/chrome-linux64/, causing the existing paths to fail to find the browser. globing chrome-linux* will allow watchdog to find playwright installed 32-bit and 64-bit chromium.
2025-12-16 21:40:16 -07:00
SK Akram 557b0c016e fix: expose prohibited_domains in BrowserSession 2025-12-16 07:25:35 +00:00
SK Akram 948f51b4db fix: prevent unnecessary blank tab creation when closing background tabs 2025-12-15 05:30:39 +00:00
Gregor Žunič 1b75166122 Merge branch 'main' into feature/skills-integration 2025-12-09 16:48:11 -08:00
Gregor Žunič b1e4d6e686 primitive skills impl (with cookies) 2025-12-08 18:07:00 -08:00
mertunsall 2e3aed3045 faster scroll 2025-12-07 23:17:24 -08:00
EnzoFanAccount 7bae4e09c0 support multi-tab recording 2025-12-06 23:06:19 -03:00
Abhinav Malkoochi 7d901f1e52 issue 3694 fixed: dropdown option fails with combobox elements with dynamic options 2025-12-01 21:00:11 -06:00
mertunsall 0db058e41b Merge branch 'main' into mert/trytofixmain 2025-11-29 13:16:49 -08:00
mertunsall 3fe94db8f2 try to fix stuff 2025-11-29 13:16:14 -08:00
Mert Unsal a742645416 Revert "Improve demo mode" 2025-11-29 13:09:20 -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 c4bb681058 now newlines are executed well with send keys 2025-11-26 18:04:56 -08:00
Mert Unsal a048d97eab Merge branch 'main' into attempt-fix-real-browser 2025-11-26 13:22:22 -08:00
Mert Unsal bc332c2cf5 Merge branch 'main' into fix/temp-dir-cleanup-bug 2025-11-26 12:49:43 -08:00
Mert Unsal ca11fbb80e Merge branch 'main' into main 2025-11-26 12:49:07 -08:00
Mert Unsal 4a7334ae77 Merge branch 'main' into fix/temp-dir-cleanup-bug 2025-11-26 12:45:53 -08:00
mertunsall 7e98622594 Remove wrong log{ 2025-11-26 12:40:47 -08:00
Mert Unsal ca2bed58fe Merge branch 'main' into main 2025-11-26 12:36:02 -08:00
Mert Unsal cb21a1b70e Merge branch 'main' into mert/fix_screenshot_bug 2025-11-26 12:32:47 -08:00
mertunsall ce3d222f2a safety checks 2025-11-26 12:32:15 -08:00
mertunsall d7600603a2 dont change agent focus outside? 2025-11-26 12:25:40 -08:00
Mert Unsal 89990d360d Merge branch 'main' into main 2025-11-26 11:02:10 -08:00
Mert Unsal 885ec7cc6f Merge branch 'main' into mert/fix_more 2025-11-26 10:33:39 -08:00
mertunsall ad1c9b070e fix 2025-11-26 10:33:06 -08:00
Mert Unsal 81fe5c0573 Merge branch 'main' into kalil0321/demo-mode 2025-11-26 10:28:04 -08:00
Cursor Agent 717845c4a7 Increase ScreenshotEvent timeout to 15 seconds
Co-authored-by: mailmertunsal <mailmertunsal@gmail.com>
2025-11-26 17:29:29 +00:00
tomerwave 00462f9282 fix: use default_factory for event_timeout to allow runtime env var configuration 2025-11-26 10:20:56 +02:00
mertunsall b2c56f63c7 better 2025-11-24 12:37:57 -08:00
mertunsall 0f315be2bd Small fix 2025-11-24 12:26:01 -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 1ed439156c Merge branch 'main' into mert/fix_allowed_domains 2025-11-24 11:22:53 -08:00
mertunsall 375bc6a283 fix 2025-11-24 11:22:24 -08:00
Shubham Singh 66f2da3abc Merge branch 'main' into fix/3587-cdp-url-with-query-params 2025-11-23 19:27:10 +05:30
mertunsall a396927435 Fix scroll action 2025-11-22 21:27:01 -08:00