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
Self-referential subagent IDs are rejected instead of creating a new child #45356
Some models echo the calling session's ID in subagent.sessionID while requesting a new subagent. The continuation path treats that ID as an existing session and rejects it because a session is not its own child.
Plugins
None
OpenCode version
V2
Steps to reproduce
Start a session.
Call subagent with a valid subagent agent, prompt, and description, but set sessionID to the calling session's ID.
The call fails with Session <id> is not a child of the current session instead of creating a child session.
changed the title [-]Nested subagent sessions cannot be continued by their root session[/-][+]Self-referential subagent IDs are rejected instead of creating a new child[/+]on Aug 26, 2026
Activity
[-]Nested subagent sessions cannot be continued by their root session[/-][+]Self-referential subagent IDs are rejected instead of creating a new child[/+]pedropombeiro commentedon Sep 26, 2026
See investigation in #51464