Repository navigation
fix(harness): separate subagent wait tools from ordinary tool timeouts - #4278
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
xzxiaoshan
approved these changes
Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
task_outputandwait_async_resultsastimeoutManaged.Fixes #1451.
Background
task_output(block=true)accepts a wait timeout up to 600 seconds, while the default ordinary tool timeout is 5 minutes. As a result, a validtask_outputwait could be interrupted by the outerExecutionConfig.TOOL_DEFAULTStimeout before its own deadline.agent_spawnandagent_sendalready use the existingtimeoutManagedmechanism introduced by #3879. This change applies the same semantics to the two SubAgent result-waiting tools:task_output(block=true)owns its bounded wait timeout.wait_async_resultsowns its existing 60-second default / 120-second maximum wait budget.wait_async_resultsis not affected by the default 5-minute ordinary timeout, but a shorter application-configured tool timeout can currently interrupt its own bounded wait. Marking it as timeout-managed makes the behavior consistent.Behavior
task_output(block=true)continues to use its existing timeout parameter, default, and 600-second cap.wait_async_resultscontinues to use its existing timeout parameter, default, 120-second cap, and consecutive-empty-wait guardrails.task_output(block=false),task_cancel, andtask_listare unchanged.ExecutionConfigtimeout.