Problem
When using the Task tool to launch subagents (explore, general), there is no way to set a timeout. Subagents frequently hang for 5-15+ minutes on tasks that should take 15-30 seconds, blocking the entire conversation.
Context
The host repo has AI rules (AI_RULES.md §16) that explicitly require:
- "Set explicit timeout per request: 2 min (simple), 5 min (larger)"
- "On timeout: cancel, then re-issue with smaller scope or do it directly"
- "Never wait indefinitely"
But the Task tool schema has no timeout parameter, so these rules are unenforceable. The Bash tool has a timeout parameter — Task should too.
Expected behavior
- Task tool should accept an optional
timeout parameter (milliseconds, like Bash tool)
- Reasonable default timeout (e.g., 120s) if none specified
- On timeout: return a timeout error so the caller can fall back to doing the work directly
Current workaround
None. The caller agent just waits indefinitely, and the user has to manually abort.
Problem
When using the Task tool to launch subagents (explore, general), there is no way to set a timeout. Subagents frequently hang for 5-15+ minutes on tasks that should take 15-30 seconds, blocking the entire conversation.
Context
The host repo has AI rules (AI_RULES.md §16) that explicitly require:
But the Task tool schema has no
timeoutparameter, so these rules are unenforceable. The Bash tool has atimeoutparameter — Task should too.Expected behavior
timeoutparameter (milliseconds, like Bash tool)Current workaround
None. The caller agent just waits indefinitely, and the user has to manually abort.