From a8dd8dbf987a3c7f4d6aa7c102e4e9cb158c4f5a Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Thu, 15 Oct 2026 19:22:13 -0400 Subject: [PATCH] fix: a model can switch off every Default Feature the admin turned on (#32500) The model editor dropped meta.defaultFeatureIds when the list was empty. When Admin Settings > Models > Model Defaults turns a default feature on, the backend fills in that default for any model without the key, so switching the last feature off on a model saved nothing and the admin default came back on reopen and in new chats. Keep the empty list when the admin default is not empty, so the model's choice is stored and overrides it. --- src/lib/components/workspace/Models/ModelEditor.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/workspace/Models/ModelEditor.svelte b/src/lib/components/workspace/Models/ModelEditor.svelte index 5c9237ee68..9f4999d396 100644 --- a/src/lib/components/workspace/Models/ModelEditor.svelte +++ b/src/lib/components/workspace/Models/ModelEditor.svelte @@ -450,7 +450,7 @@ } } - if (defaultFeatureIds.length > 0) { + if (defaultFeatureIds.length > 0 || defaultMeta.defaultFeatureIds?.length > 0) { modelInfo.meta.defaultFeatureIds = defaultFeatureIds; } else { if (modelInfo.meta.defaultFeatureIds) {