Commit Graph

23 Commits

Author SHA1 Message Date
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 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
mertunsall 67d2f12665 default to PNG everywhere 2025-11-06 14:51:52 -08:00
Magnus Müller a8e6af254e Switch all to jpeg 2025-10-03 21:32:47 -07:00
Smaran Nama Arunkumar b3c52e8f7a Changing Pydantic limit for Amazon Bedrock ARN in model
The ARN of cross-region inference exceeds the limit of 100 characters, which is not allowing to make ChatAnthropicBedrock calls. The limit increase ensures we are able to use the inference endpoints with the ARN.
2025-09-22 15:19:53 +05:30
Saurav Panda 4a41caaa9d fixed auth event creation 2025-09-06 18:22:02 -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
Nick Sweeting 35e122def1 use go_to_url action to preload urls in tasks instead of force-navigating 2025-08-14 14:32:31 -07:00
Nick Sweeting 737b152684 test fixes 2025-08-08 05:18:53 -07:00
mertunsall 9bd0036223 separate agent history and state 2025-08-02 15:48:49 +01:00
Nick Sweeting 622bd1da0f fix lint 2025-06-28 04:07:16 -07:00
Nick Sweeting 4c48fe9400 send device id with all cloud events 2025-06-28 03:46:12 -07:00
Nick Sweeting e2777b8cbf fix logging spacing 2025-06-27 05:19:02 -07:00
Gregor Žunič 7a10ae0c96 Squashed commit langchain to native 2025-06-24 12:26:55 +02:00
Nick Sweeting b67be37490 fix type hint errors 2025-06-21 04:35:24 -07:00
Nick Sweeting c973553152 up max string lengths 2025-06-21 03:14:47 -07:00
mertunsall 0c2de169f8 Update maximum length constants in cloud_events.py to accommodate larger data sizes: MAX_STRING_LENGTH increased to 100K, MAX_URL_LENGTH and MAX_TASK_LENGTH adjusted to 10K. 2025-06-20 01:13:23 +02:00
Nick Sweeting ccd11e26f5 remove unneeded event_type fields 2025-06-19 01:19:30 -07:00
Nick Sweeting 474476f0ae switch to external bubus lib 2025-06-18 01:41:16 -07:00
Nick Sweeting f35ea5be4d fixes 2025-06-17 22:38:59 -07:00
Nick Sweeting 66fbb8b282 Merge branch 'main' into eventbus 2025-06-14 01:19:15 -07:00
Nick Sweeting b3ed9cbbba Update browser_use/agent/cloud_events.py
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-06-14 03:42:42 -04:00
Nick Sweeting 9da6c485b7 implement new EventBus module with cloud_events to send on agent steps 2025-06-05 18:51:22 -07:00