Repository navigation
Commit 27d7d7c
committed
fix(navigate): raise on timeout instead of returning a soft error dict
navigate's docstring promised "Raises on timeout" but the body returned
{"error": ..., "_timeout": true}. MCP clients saw a successful tool call
carrying an error payload, so agents kept driving a tab that had never
loaded — one burned its whole budget looping extract_markdown on a blank
page after a 30s timeout.
Raise TimeoutError so the failure surfaces as a real tool error, and say
in the message that the tab is alive but unusable, with the recovery
options. Matches the raise ValueError convention used elsewhere in the
module. No other caller consumed the _timeout sentinel.1 parent 1f7f4f8 commit 27d7d7c
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
776 | 776 | | |
777 | 777 | | |
778 | 778 | | |
779 | | - | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
780 | 784 | | |
781 | 785 | | |
782 | 786 | | |
| |||
0 commit comments