Skip to content

Commit 287cd5d

Browse files
Joey Barkleyclaude
andcommitted
fix(opencode): inherit thinking level (variant) in task tool subtasks
The task tool was not passing the parent session's thinking level to spawned subtasks. The variant field was available on the assistant message but was not forwarded to SessionPrompt.prompt(), causing all subtasks to use the default thinking level. Fixes #20810 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 8daeacc commit 287cd5d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/opencode/src/tool/task.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ export const TaskTool = Tool.define("task", async (ctx) => {
135135
providerID: model.providerID,
136136
},
137137
agent: agent.name,
138+
variant: msg.info.variant,
138139
tools: {
139140
...(hasTodoWritePermission ? {} : { todowrite: false }),
140141
...(hasTaskPermission ? {} : { task: false }),

0 commit comments

Comments
 (0)