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 sessions created with model=undefined causing ProviderModelNotFoundError #33043
All built-in subagent types (general, explore, code-reviewer, etc.) fail with ProviderModelNotFoundError when spawned via the task tool. The subagent session is created with model=undefined instead of inheriting the agent's configured model.
Steps to Reproduce
Use any built-in subagent type via the task tool:
task(description="test", subagent_type="general", prompt="read a file")
Observe the error: ProviderModelNotFoundError
Check the opencode log at ~/.local/share/opencode/log/opencode.log
The model=undefined is visible in every subagent session creation log entry. The agent config correctly shows the model (e.g. deepseek/deepseek-v4-flash), but it is not passed to the spawned subagent session.
Subagent spawn should record the model resolution chain before creating the child session: requested agent type, explicit override, parent model, agent config default, global default, final provider/model, and resolution source.
If the chain resolves to undefined, fail before child creation with an actionable config error. Regression cases should cover built-in subagents inheriting the parent model, explicit per-agent overrides, missing provider config, and resume/continuation of a spawned child.
Activity
github-actions commentedon Jun 20, 2026
This issue might be a duplicate of existing issues. Please check:
Necmttn commentedon Jun 21, 2026
Subagent spawn should record the model resolution chain before creating the child session: requested agent type, explicit override, parent model, agent config default, global default, final provider/model, and resolution source.
If the chain resolves to undefined, fail before child creation with an actionable config error. Regression cases should cover built-in subagents inheriting the parent model, explicit per-agent overrides, missing provider config, and resume/continuation of a spawned child.
Generated with ax.
github-actions commentedon Aug 21, 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.