Conversation
|
This was generated by AI during triage. Summary: Problems:
Solution: Evidenceno deterministic fact backs this claim — model belief, not executed or read evidence Checked against |
… fix/84491-silent-tool-watchdog
Addressed in 227686e |
fix(gateway): keep silent in-flight tools alive
|
… fix/84491-silent-tool-watchdog
|
Hey @Enough1122, thanks for catching these edge cases. Addressed on the latest head:
Validation:
|
|
Thanks @Zeraphim — a separate 420s wall-time ceiling reusing |
What does this PR do?
Prevents the gateway turn-inactivity watchdog from abandoning turns while a tool is still executing silently.
The watchdog now treats an active tool as in-flight activity in both timeout paths. Concurrent tool execution keeps the activity marker set until the final worker exits, while genuinely idle turns retain the existing timeout behavior.
Related Issue
Fixes #84491
Type of Change
Changes Made
gateway/run.pyto skip inactivity timeout handling whilecurrent_toolis active.agent/tool_executor.pyto preserve activity state across concurrent tool workers.How to Test
scripts/run_tests.sh tests/gateway/test_abandoned_turn_process_cleanup.py tests/run_agent/test_run_agent.py -q.Execution timed out (inactivity).Validation completed:
python -m py_compile agent/tool_executor.py gateway/run.py tests/run_agent/test_run_agent.py tests/gateway/test_abandoned_turn_process_cleanup.pygit diff --checkThe targeted pytest command was blocked because no available virtualenv contains
pytest.Checklist
pytest tests/ -qand all tests passScreenshots / Logs
Not applicable for this backend behavior fix.