Subagent ignores reasoningEffort setting from agent config #6135

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

Originally created by @johnnyapu15 on GitHub (Jan 15, 2026).

Originally assigned to: @thdxr on GitHub.

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.

Originally created by @johnnyapu15 on GitHub (Jan 15, 2026). Originally assigned to: @thdxr on GitHub. 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 closed this issue 2026-02-16 18:00:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6135