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
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
Description
Description
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
Plugins
opencode-subagent-magazine@latest
OpenCode version
1.18.3
Steps to reproduce
Steps to Reproduce
Screenshot and/or share link
Share link
opencode share
Operating System
windows11
Terminal
powershell