mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-15 03:03:22 +00:00
fix: keep primary model after subagent runs (#8951)
This commit is contained in:
parent
8cddc9ea55
commit
08b94a6890
1 changed files with 2 additions and 2 deletions
|
|
@ -145,9 +145,9 @@ export function Prompt(props: PromptProps) {
|
|||
const isPrimaryAgent = local.agent.list().some((x) => x.name === msg.agent)
|
||||
if (msg.agent && isPrimaryAgent) {
|
||||
local.agent.set(msg.agent)
|
||||
if (msg.model) local.model.set(msg.model)
|
||||
if (msg.variant) local.model.variant.set(msg.variant)
|
||||
}
|
||||
if (msg.model) local.model.set(msg.model)
|
||||
if (msg.variant) local.model.variant.set(msg.variant)
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue