fix(opencode): switch the OpenCode V2 session model along with the approved agent (#1569)
OpenCode stores the session agent and model independently, so approving a plan switched to Build while leaving Plan's model active when the two agents are configured differently. The V2 adapter now keeps the model from agent discovery and applies switchAgent followed by switchModel, matching OpenCode's own clients; a host that cannot apply both leaves the session alone, and failures still leave plan approval intact.
R
Robert Dailey committed
c24c026b93f1527d0a3965f79cba9e4e1560999a
Parent: 01eb347
Committed by GitHub <noreply@github.com>
on 9/18/2026, 11:44:37 PM