fix(core): respect v2 default agents (#30969)
This commit is contained in:
parent
fff36b70bc
commit
02a5ae6585
11 changed files with 155 additions and 18 deletions
|
|
@ -18,7 +18,6 @@ const keys = new Set([
|
|||
"disabled_providers",
|
||||
"enabled_providers",
|
||||
"small_model",
|
||||
"default_agent",
|
||||
"mode",
|
||||
"agent",
|
||||
"provider",
|
||||
|
|
@ -38,6 +37,7 @@ export function migrate(info: typeof ConfigV1.Info.Type) {
|
|||
$schema: info.$schema,
|
||||
shell: info.shell,
|
||||
model: info.model,
|
||||
default_agent: info.default_agent,
|
||||
autoupdate: info.autoupdate,
|
||||
share: info.share ?? (info.autoshare ? "auto" : undefined),
|
||||
enterprise: info.enterprise,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue