[PR #6668] fix: prevent subagent model changes from persisting to parent #12030

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

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

State: closed
Merged: No


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

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6668 **State:** closed **Merged:** No --- 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
yindo added the pull-request label 2026-02-16 18:16:58 -05:00
yindo closed this issue 2026-02-16 18:16:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12030