goto_url uses the 5s IPC response timeout; cloud-browser navigations exceed it and report a false daemon timeout

Author: 100yenadminCreated Sep 30, 2026Updated Sep 30, 2026

What happens

goto_url() calls cdp("Page.navigate", url=url) with the default IPC response timeout, DEFAULT_IPC_RESPONSE_TIMEOUT_SECONDS = 5.0 (src/browser_harness/helpers.py:42, :152-153). Against a remote/cloud browser (Browserbase in our case), Page.navigate on a heavy page regularly takes longer than 5 s to return. The CLI then raises Page.navigate timed out after 5s waiting for the daemon, while the daemon is still waiting on the browser and the navigation often completes anyway. The caller cannot tell a slow navigation from a dead daemon.

capture_screenshot() already gets its own 60 s budget (SCREENSHOT_IPC_RESPONSE_TIMEOUT_SECONDS, :45, :331-338) for the same reason, and #682 fixed the same class for recordings.

Evidence

One production profile, over 7 days with browser_harness 0.1.13: 4 of 243 browser_exec calls failed this way. All 4 were Page.navigate to the same kind of heavy page on a cloud browser; screenshots with the 60 s budget did not fail. Upstream main (afbcc381) still has the 5 s default for goto_url.

Suggested fix

Either of these, whichever fits the project:

  • give goto_url a navigation-sized response timeout (like capture_screenshot), e.g. NAVIGATE_IPC_RESPONSE_TIMEOUT_SECONDS = 30.0; or
  • let goto_url(url, timeout=…) / an env var override the IPC response timeout.

Happy to open a PR for the first option if that is the preferred direction.

Source: browser-use/browser-harness