[PR #7681] fix: stop changing main model/agent from subtasks invocation #12478

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

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

State: closed
Merged: Yes


What does this PR do?

Currently /review, even having in the prompt to not make changes, very often it decides to go ahead and do the changes.

image

This PR changes to use plan agent.

Also, i noticed that currently even with subtasks, when you run a command with a different agent, it's changing the main session agent to that, this PR also fixes it.

How did you verify your code works?

image
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7681 **State:** closed **Merged:** Yes --- ### What does this PR do? Currently `/review`, even having in the prompt to not make changes, very often it decides to go ahead and do the changes. <img width="877" height="728" alt="image" src="https://github.com/user-attachments/assets/3287520f-2ef7-4322-8b56-bcd568870083" /> This PR changes to use plan agent. Also, i noticed that currently even with subtasks, when you run a command with a different agent, it's changing the main session agent to that, this PR also fixes it. ### How did you verify your code works? <img width="1551" height="1004" alt="image" src="https://github.com/user-attachments/assets/2c8ffb70-b829-488c-a2ab-322f244499d4" />
yindo added the pull-request label 2026-02-16 18:17:23 -05:00
yindo closed this issue 2026-02-16 18:17:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12478