Commit Graph

587 Commits

Author SHA1 Message Date
Nick Sweeting
6a5e86204b speed up screenshot tweaks 2025-07-01 01:42:28 -07:00
Nick Sweeting
d9943ef336 tweak emojij 2025-07-01 00:41:49 -07:00
Nick Sweeting
6170953b5e disable screenshot clipping entirely for now 2025-06-30 23:47:20 -07:00
Nick Sweeting
385dedde77 fix screenshot clip errors at end of scroll 2025-06-30 23:41:21 -07:00
Nick Sweeting
60aa9a8102 restore screenshot logic without viewport expansion 2025-06-30 01:03:02 -07:00
Magnus Müller
de816574f0 Remove screenshot logic and use default playwright screenshot 2025-06-29 18:34:00 +02:00
Nick Sweeting
e2777b8cbf fix logging spacing 2025-06-27 05:19:02 -07:00
Nick Sweeting
e7e8f38bdb disable screenshot rescaling and only use original viewport if set 2025-06-27 05:05:23 -07:00
Nick Sweeting
587dd998ac fix unecesary eval on screenshot 2025-06-27 04:34:50 -07:00
Nick Sweeting
8ba2ddaef1 switch_tab and bring_to_front + autorestart browser 2025-06-27 04:17:26 -07:00
Nick Sweeting
96e1743962 hack to force browser validity 2025-06-27 03:56:51 -07:00
Nick Sweeting
93b6b365f5 lower max screenshot size 2025-06-27 03:56:32 -07:00
Nick Sweeting
69fa8fde09 fix logging 2025-06-27 03:40:16 -07:00
Nick Sweeting
584a68cb89 always copy pid 2025-06-27 02:30:20 -07:00
Nick Sweeting
13142831a2 allow proceeding without pid 2025-06-27 02:20:36 -07:00
Nick Sweeting
641a73c509 remove CDP direct calls to playwright private APIs 2025-06-27 02:10:08 -07:00
Nick Sweeting
bc6c305005 fix cdp screenshot args 2025-06-27 01:56:11 -07:00
Nick Sweeting
1e93507fe3 fix cdp calls 2025-06-27 00:57:09 -07:00
Nick Sweeting
892db27b3c clone session inside model_copy 2025-06-27 00:44:06 -07:00
Nick Sweeting
12801b7754 only kill browser resources if owned by the session 2025-06-27 00:40:51 -07:00
Nick Sweeting
db7998efd0 fix type checks 2025-06-27 00:10:30 -07:00
Nick Sweeting
6c05a720ed auto-clear singletonLock on startup 2025-06-27 00:09:40 -07:00
Nick Sweeting
51b7e8ae66 always clear context and check connection properly using async call 2025-06-26 23:52:54 -07:00
Nick Sweeting
946ef4068d add stop hints and better logging 2025-06-26 23:52:19 -07:00
Nick Sweeting
747959a3d0 keep reference to the original browser session when copying 2025-06-26 22:45:05 -07:00
Nick Sweeting
4f1fd7523f fix playwright internals calls 2025-06-26 22:33:23 -07:00
Nick Sweeting
7f4a3017c4 use raw channel directly for cdp 2025-06-26 20:03:36 -07:00
Nick Sweeting
48fd583ae1 use raw CDP call for screenshot instead of playwright CDP session 2025-06-26 19:52:50 -07:00
Nick Sweeting
13048669e2 reset browser connection when screenshot fails 2025-06-26 19:07:09 -07:00
Nick Sweeting
8dfad7e557 tweak chrome launch args in docker to fix screenshots 2025-06-26 18:48:46 -07:00
Nick Sweeting
5158419fc7 Update browser_use/browser/session.py
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-06-26 11:16:48 -04:00
Nick Sweeting
18bd8fe715 tweak timeouts to fail faster 2025-06-26 07:59:55 -07:00
Nick Sweeting
4b2d7c270b fix tests 2025-06-26 07:30:03 -07:00
Nick Sweeting
ea2c2205a3 swap decorator decorateee 2025-06-26 07:14:02 -07:00
Nick Sweeting
fc075c0152 use retry decorator for locking and timeouts instead ofmanual logic 2025-06-26 07:07:13 -07:00
Nick Sweeting
74d02c07a7 increase screenshot timeout to default timeout 2025-06-26 02:59:57 -07:00
Nick Sweeting
c7b29c9116 tweak browser shutdown locking and logging 2025-06-26 02:32:23 -07:00
Nick Sweeting
b9116c1621 cleanup CDP screenshot calls and make screnshots start from scroll position 2025-06-26 02:05:52 -07:00
Nick Sweeting
c5d16a00f8 tweak screenshot timing and add global semaphore 2025-06-26 01:14:35 -07:00
Nick Sweeting
ea8d9e8624 use raw CDP calls for screenshots instead of playwright for speed 2025-06-26 00:55:24 -07:00
Nick Sweeting
76fb7f7c9a dont block agent progress when navigation times out 2025-06-26 00:55:07 -07:00
Nick Sweeting
1fb5e59015 dont attempt to disable animations during screenshots 2025-06-26 00:38:36 -07:00
Nick Sweeting
8b6e750a68 always use viewport for screenshots in headless mode 2025-06-26 00:18:53 -07:00
Nick Sweeting
75fe98ff65 cap all screenshots at 6000px max height 2025-06-26 00:10:07 -07:00
Nick Sweeting
3463a909f7 dont fail the entire get_agent_state if screenshots hang 2025-06-25 23:32:41 -07:00
Nick Sweeting
9c05f06ed9 use threading lock instead of asynclock to support parallel tests 2025-06-25 23:19:40 -07:00
Nick Sweeting
3da1226889 implement global lock around playwright subprocess spawning to prevent deadlocks 2025-06-25 23:02:24 -07:00
Nick Sweeting
2c7c7eeca1 tweak closing log msg 2025-06-25 22:40:47 -07:00
Nick Sweeting
a56f1aab11 fix non-matching titles in JS and python 2025-06-25 22:35:32 -07:00
Magnus Müller
bb650b002d Rename setup page title 2025-06-25 16:09:07 +02:00