[PR #7428] feat: add config setting to avoid subagents models overriding session model #12398

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

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

State: open
Merged: No


What does this PR do?

Adds a new config setting which, when enabled, stops models used in subagents and commands from bubbling up and overriding the main session model on completion.

I am unsure if this is a bug or intended behaviour. It seems like odd behaviour to me that running subagents would modify the parent session's model (and I'd very much not like to have to add a config setting) but I couldn't really be certain based on the comment above it.

How did you verify your code works?

Ran it locally and confirmed behaviour was fixed. Ran tests.

Fixes #7430

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7428 **State:** open **Merged:** No --- ### What does this PR do? Adds a new config setting which, when enabled, stops models used in subagents and commands from bubbling up and overriding the main session model on completion. I am unsure if this is a bug or intended behaviour. It seems like odd behaviour to me that running subagents would modify the parent session's model (and I'd very much not like to have to add a config setting) but I couldn't really be certain based on the comment above it. ### How did you verify your code works? Ran it locally and confirmed behaviour was fixed. Ran tests. Fixes #7430
yindo added the pull-request label 2026-02-16 18:17:18 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12398