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
Task tool does not inherit parent session's thinking level (variant) #20810
When a parent session has a non-default thinking level selected (e.g., "high"), subtasks spawned via the task tool always use the default variant. The parent's variant field is available on the assistant message (msg.info.variant) but is not passed to SessionPrompt.prompt() in task.ts.
The PromptInput schema already accepts an optional variant field, and the internal subtask path in prompt.ts correctly inherits variant from the parent user message (line 572: variant: lastUser.variant). Only the external task tool path is missing this propagation.
Steps to reproduce
Start a session and select a non-default thinking level (e.g., "high")
Prompt the model to spawn a subtask via the task tool
Observe the subtask runs with the default thinking level instead of "high"
Activity
fix(opencode): inherit thinking level (variant) in task tool subtasks
github-actions commentedon Apr 3, 2026
This issue might be a duplicate of an existing issue. Please check:
github-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.