Files
browser-use__browser-use/browser_use/browser/events.py
Magnus Müller b552005356 Increase BrowserStateRequestEvent timeout from 30s to 60s
Production data analysis (BU2, 24h) shows:
- 36.5% of consecutive failures are AsyncIO CancelledError in get_browser_state_summary
- Complex pages can take 30-60s for DOM extraction alone
- 30s timeout was too aggressive for heavy pages

60s provides 2x buffer while still catching genuinely stuck requests.
Can be overridden via TIMEOUT_BrowserStateRequestEvent env var.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 02:06:56 -08:00

19 KiB