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
{{ message }}
Repository navigation
Task tool accepts parent session ID as task_id, causing silent deadlock #37506
The task tool does not validate whether the provided task_id references the caller's own session. When the current session's own ID is passed as task_id, the tool "succeeds" and spawns a subagent, but that subagent is actually a self-reference — creating a circular deadlock where the subagent waits for the parent and the parent waits for the subagent, resulting in an infinite hang.
Suggested Fixes
Add a validation at the Task tool entry point: reject if task_id equals the current session ID
Activity
github-actions commentedon Sep 17, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.