Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

up max string lengths

Nick Sweetingc9735531529f
diff --git a/browser_use/agent/cloud_events.py b/browser_use/agent/cloud_events.py
index 0a507323a..5bcf93116 100644
--- a/browser_use/agent/cloud_events.py
+++ b/browser_use/agent/cloud_events.py
@@ -5,8 +5,8 @@ from pydantic import Field, field_validator
from uuid_extensions import uuid7str
MAX_STRING_LENGTH = 100000 # 100K chars ~ 25k tokens should be enough
-MAX_URL_LENGTH = 10000
-MAX_TASK_LENGTH = 10000
+MAX_URL_LENGTH = 100000
+MAX_TASK_LENGTH = 100000
MAX_COMMENT_LENGTH = 2000
MAX_FILE_CONTENT_SIZE = 50 * 1024 * 1024 # 50MB
@@ -41,6 +41,9 @@ class UpdateAgentTaskEvent(BaseEvent):
done_output=done_output,
finished_at=datetime.now(timezone.utc) if agent.state.history and agent.state.history.is_done() else None,
agent_state=agent.state.model_dump() if hasattr(agent.state, 'model_dump') else {},
+ user_feedback_type=None,
+ user_comment=None,
+ gif_url=None,
# user_feedback_type and user_comment would be set by the API/frontend
# gif_url would be set after GIF generation if needed
)