fix(browser): route open-timeout base through _safe_command_timeout

Wire the salvaged _safe_command_timeout() guard into the surviving
open-timeout call site. _get_open_command_timeout() feeds the
browser_navigate 'open' path; this closes the last call site that
could observe a None timeout from a torn cache (#14331), since the
original PR's max(_get_command_timeout(), 60) site no longer exists
on main (now routed through _get_open_command_timeout).
This commit is contained in:
teknium1 2026-06-29 02:11:33 -07:00 committed by Teknium
parent c79e6bceae
commit 9f97915163

View file

@ -278,7 +278,7 @@ def _safe_command_timeout() -> int:
def _get_open_command_timeout(*, first_open: bool = False) -> int:
"""Timeout for agent-browser ``open`` (navigation / daemon cold start)."""
base = _get_command_timeout()
base = _safe_command_timeout()
floor = MIN_FIRST_OPEN_TIMEOUT if first_open else MIN_OPEN_TIMEOUT
return max(base, floor)