Commit Graph

37 Commits

Author SHA1 Message Date
Saurav Panda
f8be13b708 refc: removed auth message and cloud_sync_field 2025-10-05 17:04:43 -07:00
Magnus Müller
1be170faaa Fix logs 2025-09-17 10:10:15 -07:00
Saurav Panda
1d21e72d4a fix: suppress cloud sync URLs when BROWSER_USE_CLOUD_SYNC=false 2025-09-14 10:42:03 -07:00
Saurav Panda
4a41caaa9d fixed auth event creation 2025-09-06 18:22:02 -07:00
Saurav Panda
0c62293010 fixed cli auth sync issue 2025-09-06 12:50:08 -07:00
Magnus Müller
304716e30f Enhance authentication flow and user feedback in CLI
- Updated `run_auth_command` to provide detailed authentication status updates and debug information during the authentication process.
- Introduced a new `UpdateAgentSessionEvent` class to facilitate session updates.
- Enhanced `CloudSync` to allow all events during the authentication flow and to show direct links for authenticated users.
- Improved error handling and user messaging for authentication failures.
- Updated documentation to clarify cloud sync settings and authentication instructions.
2025-09-05 13:13:07 -07:00
Magnus Müller
37e43449db Enhance authentication flow in CLI and sync service
- Refactored `run_auth_command` to establish a session context using a minimal sync service before authentication.
- Introduced `allow_session_events_for_auth` flag in `CloudSync` to permit session events during the authentication process.
- Updated tests to verify that session events are sent correctly before full authentication, ensuring proper event handling based on authentication status.
2025-09-05 10:31:19 -07:00
Magnus Müller
9828d18871 Implement cloud authentication feature in CLI and sync services
- Added `run_auth_command` to handle user authentication via the CLI, allowing users to authenticate with Browser Use Cloud.
- Updated `main` function to trigger authentication when the `--auth` option is used.
- Introduced `authenticate_cloud_sync` method in `CloudSync` to facilitate authentication after task completion.
- Modified `DeviceAuthClient` to handle empty agent session IDs gracefully.
- Updated documentation to include instructions for cloud authentication setup and usage.
- Enhanced tests to verify authentication flow and event handling based on authentication status.
2025-09-05 10:00:33 -07:00
Magnus Müller
19a73f3664 Sync logging without massive warning 2025-08-20 22:55:36 -07:00
Nick Sweeting
e75be4f6bb fix linter 2025-07-18 23:03:40 -07:00
Nick Sweeting
d2dbe538c9 disable bubus WAL for now 2025-07-18 12:49:39 -07:00
Nick Sweeting
66d86a88d2 fix dashes 2025-07-08 06:27:16 -07:00
Nick Sweeting
80327bb63e dont explode all tests when a single screenshot fails 2025-07-08 05:40:04 -07:00
Nick Sweeting
c080e86ec2 remove uneeded retry helper 2025-07-08 03:21:18 -07:00
Nick Sweeting
b2a84b2296 fix tests and other improvements 2025-07-08 02:32:03 -07:00
Nick Sweeting
5e03a961df silence noisy warnings 2025-07-08 01:22:43 -07:00
Nick Sweeting
163faf355b add device_id to all events 2025-06-30 00:59:05 -07:00
Nick Sweeting
40c1988c61 we dont need these tests anymore 2025-06-27 05:26:07 -07:00
Nick Sweeting
e2777b8cbf fix logging spacing 2025-06-27 05:19:02 -07:00
Nick Sweeting
55f63dd2da disable screenshot rescaling and only use original viewport if set 2025-06-27 05:19:02 -07:00
Nick Sweeting
8af8706646 add timeout to sync auth setup 2025-06-27 05:03:26 -07:00
Nick Sweeting
90862026fa persist a unique device_id and send it with sync events 2025-06-26 08:00:20 -07:00
Nick Sweeting
a1ce6ed5c2 fix linter 2025-06-26 07:34:47 -07:00
Nick Sweeting
12583f917d start auth flow on first step 2025-06-26 06:50:33 -07:00
Nick Sweeting
01b9580743 show full error text, check for missing special args, dont check browser tabs for connection status 2025-06-23 15:03:02 -07:00
Nick Sweeting
42579c05a4 fix cloud API url 2025-06-23 13:59:44 -07:00
Nick Sweeting
f878b8f07c type hint fixes 2025-06-21 05:16:02 -07:00
Nick Sweeting
3cf9f3410c fix config issues 2025-06-21 04:03:58 -07:00
Nick Sweeting
f4b1987761 fixes 2025-06-21 03:43:37 -07:00
Nick Sweeting
63e5f59cdc make pending_events a list of event objects instead of dicts 2025-06-21 03:14:46 -07:00
Nick Sweeting
49e9fd4ff2 move env var config to utils file 2025-06-21 03:14:46 -07:00
Nick Sweeting
d8c6876e08 tweak BrowserSession failure message details 2025-06-21 01:03:09 -07:00
Nick Sweeting
1cc94b6688 improve cloud sync logging 2025-06-20 03:00:35 -07:00
Nick Sweeting
933bddc02f improve error logging and bump bubus version 2025-06-20 02:24:01 -07:00
Nick Sweeting
7766b8d630 cleanup event wrapping and unwrapping 2025-06-20 02:06:23 -07:00
Nick Sweeting
f463a9383c init and config fixes 2025-06-19 07:20:43 -07:00
Nick Sweeting
778536a3ce move all sync code into sync dir 2025-06-19 01:28:22 -07:00