mirror of
https://gitcode.com/JianFeeeee/homeagent-sdk.git
synced 2026-09-20 00:48:12 +00:00
- Pre-allocate browser in handleBrowserStart with chromedp.Run(s.ctx) to avoid the first-Run timeout killing the browser process - Replace all per-action context.WithTimeout with s.ctx in navigate, click, type, screenshot, html, scroll handlers - Add cleanupLoop goroutine for session-level timeout safety - This matches chromedp docs warning: first Run with timeout context stops the entire browser