[PR #8646] fix:subagent reasoningEffort not being applied #12821

Closed
opened 2026-02-16 18:17:42 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/8646

State: closed
Merged: Yes


Fixes #8643

Using GPT 5.2, primary agents (build, plan) respect reasoningEffort config, but subagents (explore, general) ignore it.

Root cause
In task.ts:145-160, when calling SessionPrompt.prompt() for subagents, agent.options (which contains reasoningEffort) is not passed.

Primary agents work because llm.ts:106 merges input.agent.options into LLM options.

Fix
Add options: agent.options to the SessionPrompt.prompt() call in task.ts.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8646 **State:** closed **Merged:** Yes --- Fixes #8643 Using GPT 5.2, primary agents (build, plan) respect reasoningEffort config, but subagents (explore, general) ignore it. **Root cause** In task.ts:145-160, when calling SessionPrompt.prompt() for subagents, agent.options (which contains reasoningEffort) is not passed. Primary agents work because llm.ts:106 merges input.agent.options into LLM options. **Fix** Add options: agent.options to the SessionPrompt.prompt() call in task.ts.
yindo added the pull-request label 2026-02-16 18:17:42 -05:00
yindo closed this issue 2026-02-16 18:17:43 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12821