opencode icon indicating copy to clipboard operation
opencode copied to clipboard

fix: prevent subagent model changes from persisting to parent

Open elithrar opened this issue 2 weeks ago • 1 comments

When viewing a subagent session, the model sync was persisting to the parent session's model store, causing model "bleed" back to the main agent.

This PR has OpenCode skip the model/agent sync for sessions with parentID (subagent sessions)

Note: Resolved conflict with #6528 which added a partial fix for agent sync only; this PR extends it to also skip model/variant sync.

Fixes #6636

elithrar avatar Jan 02 '26 18:01 elithrar