You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
The Task tool (used to dispatch subagents like explore and general) has no timeout parameter. Subagents can hang for 5–15+ minutes on tasks that should complete in 15–30 seconds, blocking the entire conversation with no way for the caller to recover programmatically.
The Bash tool already supports an optional timeout parameter (in milliseconds). The Task tool should have the same capability.
Proposed changes:
Add an optional timeout parameter to the Task tool schema (milliseconds, consistent with Bash tool).
Set a reasonable default timeout (e.g., 120,000 ms / 2 minutes) when none is specified.
On timeout, return a structured timeout error so the calling agent can fall back — retry with a smaller scope, do the work directly, or inform the user.
Why this matters:
There is currently no workaround. The caller agent waits indefinitely and the user must manually abort.
Codebases with AI rules (e.g., "set explicit timeout per request," "never wait indefinitely") cannot enforce those rules on Task tool calls because the parameter doesn't exist.
Feature hasn't been suggested before.
Describe the enhancement you want to request
The Task tool (used to dispatch subagents like
exploreandgeneral) has no timeout parameter. Subagents can hang for 5–15+ minutes on tasks that should complete in 15–30 seconds, blocking the entire conversation with no way for the caller to recover programmatically.The Bash tool already supports an optional
timeoutparameter (in milliseconds). The Task tool should have the same capability.Proposed changes:
timeoutparameter to the Task tool schema (milliseconds, consistent with Bash tool).Why this matters:
Note: Supersedes #15072, which was not created using the required feature request template.