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
[opencode2] subagent: required sessionID prevents spawning first child session #43619
The subagent tool cannot spawn an initial child session because its documentation says to omit sessionID for a new session, while the exposed tool schema requires sessionID. This blocks all coding delegation workflows that need to create their first child agent.
Active plugins: None found in workspace or user config
Reproduction
Start a task that requires delegating work to a subagent.
Attempt to invoke subagent without sessionID, as directed by the tool documentation: “Calls without a sessionID start a new conversation.”
Observe that the exposed schema defines sessionID as a required string, so a valid new-child invocation cannot be constructed.
As a workaround attempt, pass the current conversation session ID.
Observe the error: Session <redacted> is not a child of the current session.
Expected Behavior
sessionID should be optional. Omitting it should create a fresh child session and return its new session ID. Supplying an existing child session ID should continue that session.
Actual Behavior
The tool schema requires sessionID, contradicting the documented new-session behavior. Passing the parent session ID fails because it is not a child:
Session <redacted> is not a child of the current session
An empty invocation also terminates with:
Tool execution interrupted
As a result, the first child session cannot be created and coding delegation is blocked.
Additional Context
The issue occurred while trying to delegate a coding task to pro-coder.
Both the tool description and orchestration instructions expect calls without a session ID to start a new child.
No active OpenCode plugins were found, so this does not appear plugin-related.
GitHub CLI is installed and authenticated.
Secrets and project-specific details have been omitted.
changed the title [-]subagent: required sessionID prevents spawning first child session[/-][+][opencode2] subagent: required sessionID prevents spawning first child session[/+]on Aug 20, 2026
You right, I got this new issue when i changed my vpn/proxy to windscribe, so it's ok now when i switch back to my v2ray.( I know it's weird )
sorry for taking your time!
Thanks
# Global agent instructions
## Subagent tool — critical
- When spawning a NEW subagent with the `subagent` tool, **omit `sessionID` entirely**. It is optional.
- NEVER set `sessionID` to the current session's own ID, and never invent values like `ses_new`. Both fail with `Session ... is not a child of the current session` / `Subagent session not found`.
- Only pass `sessionID` when resuming a previous subagent, using the exact ID that appeared in an earlier `subagent` tool result (`<subagent sessionID="..." ...>`).
Activity
[-]subagent: required sessionID prevents spawning first child session[/-][+][opencode2] subagent: required sessionID prevents spawning first child session[/+]neriousy commentedon Aug 20, 2026
What model are you using? It seems your agent is trying to add a fabricated session ID to the
sessionidfieldamirrezasalimi commentedon Aug 20, 2026
I used gpt-sol and sonnet-5
I think it's a new version bug, it wasn't like this before last update
neriousy commentedon Aug 20, 2026
any plugins / additional wrappers etc?
amirrezasalimi commentedon Aug 20, 2026
neriousy commentedon Aug 20, 2026
I think it's highly likely it's due to the orchestrator stuff
amirrezasalimi commentedon Aug 20, 2026
is there a way so i can share full log of session?
amirrezasalimi commentedon Aug 20, 2026
neriousy commentedon Aug 20, 2026
Have you tried with another provider than
9routerI believe its because of thatamirrezasalimi commentedon Aug 20, 2026
You right, I got this new issue when i changed my vpn/proxy to windscribe, so it's ok now when i switch back to my v2ray.( I know it's weird )
sorry for taking your time!
Thanks
BlacKSnowDot0 commentedon Aug 25, 2026
i've added this to .config/opencode/AGENTS.md