fix: agent tools follow Settings Queue timeout

The hidden 600s agent_tool_timeout_sec never appeared in Settings, so tool calls still died after Queue timeout was set to wait forever.
This commit is contained in:
Benjiyaya
2026-09-27 04:23:57 +08:00
parent 18bedfc394
commit 4a74b4c8f9
11 changed files with 39 additions and 38 deletions
@@ -308,9 +308,9 @@ def register(registry: ToolRegistry) -> None:
executor=t_wait_for_jobs,
category="video",
requires_project=False,
# Owns its own wait contract (timeout_sec → queue_poll_timeout_sec):
# exempt from the per-tool wall-clock cap, which would otherwise
# cut a legitimate long render wait short.
# Owns its own wait (timeout_sec → queue_poll_timeout_sec, 0 = until
# done): exempt from the same Queue timeout wrapping every other
# tool, so a long render wait is not cut short by a second clock.
long_running=True,
)
)