Preserve imported persona provider

This commit is contained in:
klopez4212
2026-06-20 11:18:58 +01:00
parent bee5314c90
commit 91074011ef

View File

@@ -310,7 +310,9 @@ export function PersonaDialog({
const trimmedRuntime = runtime.trim();
const initialRuntime = initialValues.runtime ?? "";
const preservedProvider =
trimmedRuntime === initialRuntime ? initialValues.provider : undefined;
"id" in initialValues && trimmedRuntime !== initialRuntime
? undefined
: initialValues.provider;
const preservedNamePool =
"namePool" in initialValues ? initialValues.namePool : undefined;
const preservedEnvVars =