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
Subagent dispatch fails with session ID validation error: must start with "ses" #21745
```
2. Reference it in `config.json` under `agent.cluster-debugger`
3. Trigger the agent from the TUI
4. Observe the validation error — the subagent never spawns
Expected Behavior
Subagents should spawn and execute tasks in parallel.
Actual Behavior
Session ID validation fails before subagent creation. The error comes from Zod schema validation expecting a string prefixed with `ses`, but the session ID appears to be empty or malformed at dispatch time.
Environment
OpenCode version: 1.4.1
OS: macOS (darwin, Apple Silicon)
Node version: (bundled with OpenCode)
Shell: zsh
Additional Context
This affects ALL subagent mode agents, not just one specific config
Primary agents (`mode: "primary"`) work without issue
The error format matches Zod validation (`code: "invalid_format"`, `format: "starts_with"`)
Subagents are never created, so built-in TUI subagent navigation (`Ctrl+X ↓`) has nothing to show
No relevant plugins installed — only `@opencode-ai/plugin` core
This appears to be a regression in the session ID generation/dispatch pipeline for subagents.
Activity
humb1t commentedon Apr 15, 2026
also face this issues on new versions of opencode
1.4.1at the momentgithub-actions commentedon Jul 3, 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.