mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-04 15:30:27 +00:00
fix(app): improve agent selection logic passing in configured models and variants correctly (#16072)
This commit is contained in:
parent
161734fb95
commit
a60e715fc6
2 changed files with 24 additions and 11 deletions
|
|
@ -416,7 +416,10 @@ export default function Page() {
|
|||
() => {
|
||||
const msg = lastUserMessage()
|
||||
if (!msg) return
|
||||
if (msg.agent) local.agent.set(msg.agent)
|
||||
if (msg.agent) {
|
||||
local.agent.set(msg.agent)
|
||||
if (local.agent.current()?.model) return
|
||||
}
|
||||
if (msg.model) local.model.set(msg.model)
|
||||
},
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue