4449 Commits

Author SHA1 Message Date
Saurav Panda bc5659e7b4 Merge branch 'main' into add-feature-for-page-to-pdf 2026-02-24 18:41:57 -08:00
Saurav Panda 95215d6211 Add save_as_pdf agent action for CDP-based page-to-PDF export 2026-02-24 18:35:34 -08:00
Larsen Cundrič 2503c5f159 Merge branch 'main' into larsen/add-timeouts-to-browser-connects 2026-02-24 18:19:42 -08:00
LarsenCundric 505d5df406 Add timeouts to browser connects and waits 2026-02-24 18:13:28 -08:00
Saurav Panda 08bf06f734 Merge branch 'main' into websocket-connection-issues 2026-02-24 17:18:33 -08:00
Aitor f60a62bc76 Merge branch 'main' into feat/add-captcha-solver-handling 2026-02-24 07:13:06 +01:00
Saurav Panda 719d0361e5 Fix reconnection wait timeout to cover full auto-reconnect window
The circuit breaker and agent error handler were using a hardcoded 20s
timeout, but the worst-case auto-reconnect window is ~48s (3 attempts *
15s + 7s delays). Handlers would raise ConnectionError while reconnection
was still in progress. Now both use BrowserSession.RECONNECT_WAIT_TIMEOUT
(54s) derived from the actual reconnect parameters.
2026-02-23 17:47:52 -08:00
Saurav Panda 032f1475cb Merge branch 'main' into websocket-connection-issues 2026-02-23 17:44:17 -08:00
Aitor c0528bec2d Merge branch 'main' into feat/add-captcha-solver-handling 2026-02-24 02:19:25 +01:00
Saurav Panda ea23b45daa Merge branch 'main' into websocket-connection-issues 2026-02-23 17:14:57 -08:00
Saurav Panda de8039288d Merge branch 'main' into browser-use-radio-button-interaction-issue 2026-02-23 16:55:36 -08:00
Saurav Panda abd0326a6f Add WebSocket reconnection for remote browser CDP connections 2026-02-23 16:34:21 -08:00
Saurav Panda 84babc6b75 fix radio button click occlusion when label overlaps input 2026-02-23 16:19:05 -08:00
Saurav Panda 3d174998e4 Merge branch 'main' into navigation-issues 2026-02-23 15:43:23 -08:00
Saurav Panda e50588f3c7 fixed styling issues 2026-02-23 15:24:40 -08:00
reformedot 45e9a6cea3 chore: linting 2026-02-23 11:03:14 -08:00
reformedot bbad1548d7 Merge branch 'feat/add-captcha-solver-handling' of github.com:browser-use/browser-use into feat/add-captcha-solver-handling 2026-02-23 10:57:56 -08:00
reformedot b4058359a9 refactor: enhance CaptchaWatchdog with typed event handling and result types
- Introduced type aliases for captcha results to improve clarity and maintainability.
- Updated event handler signatures to use specific event types from the CDP module.
- Ensured consistent typing for captcha result attributes within the CaptchaWaitResult class.
- Added assertion for timeout handling in the captcha waiting logic.
2026-02-23 10:57:48 -08:00
Aitor 973b6c5c4b Merge branch 'main' into feat/add-captcha-solver-handling 2026-02-23 19:51:48 +01:00
reformedot ed28e50806 feat: added automatic captcha solver handling via CAPTCHA watchdog 2026-02-23 10:51:02 -08:00
Magnus Müller de0215c0df Add legal links to telemetry docs and package metadata 2026-02-22 20:08:09 -08:00
Saurav Panda 6713afc636 updated _navigate_and_wait 2026-02-21 19:45:54 -08:00
Saurav Panda adf3bf9f43 fixed ruff formatting issues 2026-02-21 09:42:20 -08:00
Saurav Panda cb6fce4d1c remove simple judge 2026-02-20 19:10:02 -08:00
laithrw 2249e75fd8 Merge branch 'main' into improving-real-browser 2026-02-20 19:28:06 -05:00
LarsenCundric c9232a63ed Fix 2026-02-20 12:12:05 -08:00
LarsenCundric c67c31932e Fix 2026-02-20 10:57:00 -08:00
Saurav Panda 69d96c1f45 Merge branch 'main' into cli-add-cordinate-clicking 2026-02-19 18:45:52 -08:00
Saurav Panda 552b2f3b60 fixed ruff format 2026-02-19 18:38:23 -08:00
Saurav Panda 86b12491dc fixed remote urls in tests 2026-02-19 16:04:06 -08:00
Saurav Panda a3eee8edfe fixed mcp issue 2026-02-19 15:55:22 -08:00
Saurav Panda c18ee5412f add file atttachments to structured output. 2026-02-19 12:43:05 -08:00
Saurav Panda 3f63677756 new direct cli mode 2026-02-19 10:18:12 -08:00
Aitor 802f17cf91 Merge branch 'main' into feat/add-custom-headers-support-and-example 2026-02-18 06:22:42 +01:00
reformedot de659f9768 feat: add custom headres support + add example 2026-02-17 21:15:11 -08:00
Saurav Panda 0184d8d5ae Merge branch 'main' into cookie-accept-issue 2026-02-17 20:47:28 -08:00
Magnus Müller ae3ad7244b Merge branch 'main' into cursor/agent-event-output-truncation-bd60 2026-02-17 17:36:10 -08:00
Magnus Müller 868db5e657 Update MAX_STRING_LENGTH to 500000
Increased the maximum string length from 100K to 500K characters.
2026-02-17 17:33:50 -08:00
Cursor Agent e03a18935e Fix UnboundLocalError for action_name in multi_act exception handler
Move action_name extraction before the try block so it's always
defined when the except block references it. Previously, if
_check_stop_or_pause() raised InterruptedError before action_name
was assigned, the exception handler would fail with:

  UnboundLocalError: cannot access local variable 'action_name'
  where it is not associated with a value

Also reuse the action_data dict for the 'done' action check since
it's now available earlier in the loop.

Co-authored-by: Magnus Müller <MagMueller@users.noreply.github.com>
2026-02-18 01:24:06 +00:00
Cursor Agent cc4e5185d5 fix: truncate done_output to max length in UpdateAgentTaskEvent.from_agent()
The done_output field has max_length=100000, but agent.history.final_result()
can return arbitrarily long strings (e.g., large data extractions). This caused
Pydantic validation errors when constructing UpdateAgentTaskEvent at the end of
agent.run(), crashing the entire run even though the task itself succeeded.

Truncate done_output to MAX_STRING_LENGTH before passing to the constructor.

Co-authored-by: Magnus Müller <MagMueller@users.noreply.github.com>
2026-02-18 01:21:41 +00:00
laithrw e9c7061187 Merge branch 'main' into keep-alive-eventbus-fix 2026-02-17 16:51:54 -05:00
Saurav Panda 7833fcd137 added cookie overlay fix 2026-02-17 11:47:23 -08:00
Cursor Agent 270e418cea feat(agent): expose max_clickable_elements_length as Agent parameter
- Add max_clickable_elements_length parameter to Agent.__init__ with default 40000
- Add max_clickable_elements_length to AgentSettings
- Pass parameter through MessageManager to AgentMessagePrompt
- Bump version to 0.11.10a2

Co-authored-by: Magnus Müller <MagMueller@users.noreply.github.com>
2026-02-17 02:07:09 +00:00
Laith Weinberger 3de7f1d9c8 fix keep-alive hang 2026-02-16 19:56:41 -05:00
Laith Weinberger 6db6678a83 style: format downloads_watchdog 2026-02-16 17:36:10 -05:00
Laith Weinberger 0536f5808c Merge origin/main into fix-minimal-issue-7JLZB 2026-02-16 17:33:02 -05:00
Laith Weinberger c6c431c95d fix(#3515): avoid stale download caches 2026-02-16 17:32:12 -05:00
ShawnPana 8af57fa19a feat(install): always install from GitHub main branch
Changes install.sh to clone from github.com/browser-use/browser-use@main
by default instead of installing from PyPI. Custom branches and repos
can still be specified via BROWSER_USE_BRANCH and BROWSER_USE_REPO
environment variables.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-12 11:37:18 -08:00
ShawnPana a1d20ed81c fix(cli): include --remote-only in remote mode error messages
Previously only suggested --full, but --remote-only is a lighter-weight
option when users only need cloud browser support.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-12 10:26:31 -08:00
ShawnPana 5ccfc44da8 refactor: move install.sh to browser_use/skill_cli/
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-12 10:19:45 -08:00