From 1f737b894827d19b1b1b4e9dfd5eea23992a3a96 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Fri, 23 Oct 2026 03:48:38 +0200 Subject: [PATCH] fix: context compaction threshold shows while context compaction is off (#32962) Admins saw the Context Compaction Threshold under Advanced Params, in the model editor, the model defaults and the chat settings, even with context compaction turned off, which is the default, and the value did nothing. It is now hidden while context compaction is off. A threshold already saved on a model is kept and applies again once compaction is turned on. Refs #32830 --- .../components/chat/Settings/Advanced/AdvancedParams.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte b/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte index 612d42cc81..8f7404b115 100644 --- a/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte +++ b/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte @@ -7,6 +7,7 @@ import type { i18n as i18nType } from 'i18next'; import { getContext } from 'svelte'; import type { Writable } from 'svelte/store'; + import { config } from '$lib/stores'; const i18n = getContext>('i18n'); @@ -201,7 +202,9 @@ )} {/if} + {/if} + {#if admin && $config?.features?.enable_context_compaction}