Files
browser-use/tests/ci
Saurav Panda 32416bb48c address codex review: validate tools.act(action_timeout=...) override
P2 codex comment on 9a09c4d7: the public `action_timeout` parameter on
tools.act() skipped the same defensive validation that the env-var path
already had. Passing nan made every action time out instantly; inf /
<=0 disabled the guard entirely. Either mode silently defeats the safety
this module exists to provide, especially for callers sourcing timeouts
from runtime config.

Extracted _coerce_valid_action_timeout() (pairs with _parse_env_action_
timeout) and routed the override through it. None / nan / inf /
non-positive all fall back to the env-derived default with a warning.

New test_act_rejects_invalid_action_timeout_override asserts the
fallback by passing bad values and verifying the fast handler actually
executes to completion (which wouldn't happen if nan → immediate
timeout or if inf → hang would leak through).
2026-04-20 17:55:59 -07:00
..
2026-02-25 12:26:10 -08:00
2026-03-17 03:48:54 +00:00
2025-10-25 18:00:18 -07:00
2026-03-11 12:57:50 -07:00
2025-12-12 14:37:24 -08:00
2025-11-22 00:16:09 -08:00
2026-02-19 16:04:06 -08:00