mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-01 12:02:05 +00:00
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:
parent
c79e6bceae
commit
9f97915163
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue