fix(delegate-task): pass variant as top-level field in prompt body

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
justsisyphus 2026-01-27 17:54:58 +09:00
parent e47ab084fd
commit aa1646f82c

View File

@ -936,7 +936,8 @@ To continue this session: session_id="${task.sessionID}"`
question: false,
},
parts: [{ type: "text", text: args.prompt }],
...(categoryModel ? { model: categoryModel } : {}),
...(categoryModel ? { model: { providerID: categoryModel.providerID, modelID: categoryModel.modelID } } : {}),
...(categoryModel?.variant ? { variant: categoryModel.variant } : {}),
},
})
} catch (promptError) {