fix(app): improve agent selection logic passing in configured models and variants correctly (#16072)

This commit is contained in:
OpeOginni
2026-03-05 13:26:20 +01:00
committed by GitHub
parent 161734fb95
commit a60e715fc6
2 changed files with 24 additions and 11 deletions

View File

@@ -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)
},
),