Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Studio: greeting setting hides the whole greeting, composer at the bottom option, no model disclaimer (#15904)
Michael Hana7c424217406
diff --git a/studio/frontend/src/app/routes/__root.tsx b/studio/frontend/src/app/routes/__root.tsxindex 130a2adb02b..9d7fff8806f 100644--- a/studio/frontend/src/app/routes/__root.tsx+++ b/studio/frontend/src/app/routes/__root.tsx@@ -23,7 +23,6 @@ import {import {ChatPage,type ChatSearch,- hydrateModelDisclaimerPreference,openFolderAsProject,startLlamaCppAutoReload,StopRunningChatsDialog,@@ -204,7 +203,6 @@ function ChatSettingsHydrationMount() {);useEffect(() => {void hydratePersistedSettings();- hydrateModelDisclaimerPreference().catch(() => undefined);}, [hydratePersistedSettings]);return null;}diff --git a/studio/frontend/src/components/assistant-ui/thread.tsx b/studio/frontend/src/components/assistant-ui/thread.tsxindex 67e644514bc..fbdab254043 100644--- a/studio/frontend/src/components/assistant-ui/thread.tsx+++ b/studio/frontend/src/components/assistant-ui/thread.tsx@@ -2064,6 +2064,9 @@ export const Thread: FC<{useEffect(() => {startGrammarPrewarm();}, []);+ const composerAtBottom = useChatPreferencesStore(+ (s) => s.newChatComposerAtBottom,+ );// Intent-aware autoscroll replaces assistant-ui's built-in autoscroll to// prevent the streaming-mutation race that snaps the viewport back to the// bottom while the user scrolls up (see the hook for the full explanation).@@ -2395,7 +2398,11 @@ export const Thread: FC<{/>{!hideComposer && (- <AuiIf condition={({ thread }) => hideWelcome || !thread.isEmpty}>+ <AuiIf+ condition={({ thread }) =>+ hideWelcome || !thread.isEmpty || composerAtBottom+ }+ ><ThreadComposerDockdisabled={isComposerAttachPending}threadId={threadId}@@ -2560,10 +2567,6 @@ const ThreadComposerDock: FC<{);},);- const showModelDisclaimer = useChatPreferencesStore(- (s) => s.showModelDisclaimer,- );-const dockRef = useRef<HTMLDivElement | null>(null);useEffect(() => {const el = dockRef.current;@@ -2656,11 +2659,6 @@ const ThreadComposerDock: FC<{menuSide="top"/></div>- {showModelDisclaimer && (- <p className="composer-footer-note">- LLMs can make mistakes. Double-check responses.- </p>- )}</div></div>);@@ -2752,6 +2750,10 @@ const ThreadWelcome: FC<{const displayName = useUserProfileStore((s) => s.displayName);const nickname = useUserProfileStore((s) => s.nickname);const showGreetingSloth = useUserProfileStore((s) => s.showGreetingSloth);+ // At the bottom, Thread docks the composer and the greeting centres in the space above it.+ const composerAtBottom = useChatPreferencesStore(+ (s) => s.newChatComposerAtBottom,+ );const spooky = useSpookyGreetings();const [welcome, setWelcome] = useState<Welcome>(DEFAULT_WELCOME);const t = useT();@@ -2771,31 +2773,43 @@ const ThreadWelcome: FC<{return (<div className="aui-thread-welcome-root mx-auto my-auto flex w-full max-w-(--thread-max-width) grow flex-col">{/* With a files panel showing (chat with files, or project sources), center the whole block. */}- <div className="aui-thread-welcome-center flex w-full grow flex-col items-center justify-start pt-[27.5dvh] has-[.unsloth-files-panel]:justify-center has-[.unsloth-files-panel]:pt-0 has-[.unsloth-files-panel]:pb-[6dvh]">+ <div+ className={cn(+ "aui-thread-welcome-center flex w-full grow flex-col items-center",+ composerAtBottom+ ? "justify-center pb-[calc(160px*var(--ui-space-scale,1))]"+ : "justify-start pt-[27.5dvh] has-[.unsloth-files-panel]:justify-center has-[.unsloth-files-panel]:pt-0 has-[.unsloth-files-panel]:pb-[6dvh]",+ )}+ >{/* No padding, so the composer here is as wide as once it docks. */}<div className="aui-thread-welcome-message flex w-full flex-col justify-center gap-9">- <div className="unsloth-welcome-greeting flex flex-row items-center justify-center gap-[calc(15px*var(--ui-space-scale,1))]">- {showGreetingSloth && !incognito && (- <MascotImg- src={currentEmojiSrc}- className={cn(- "unsloth-welcome-sloth size-[calc(44px*var(--ui-space-scale,1))] -translate-y-[2px]",- welcome.enlarge && "scale-[1.15]",- )}- />- )}- <h1 className="aui-thread-welcome-message-inner unsloth-welcome-title fade-in slide-in-from-bottom-1 animate-in text-3xl tracking-[-0.02em] duration-200">- {incognito- ? t("welcome.temporaryChat")- : t(welcome.key, welcome.name ? { name: welcome.name } : undefined)}- </h1>- </div>+ {/* The setting hides the whole greeting; the incognito title is a status, so it stays. */}+ {(showGreetingSloth || incognito) && (+ <div className="unsloth-welcome-greeting flex flex-row items-center justify-center gap-[calc(15px*var(--ui-space-scale,1))]">+ {!incognito && (+ <MascotImg+ src={currentEmojiSrc}+ className={cn(+ "unsloth-welcome-sloth size-[calc(44px*var(--ui-space-scale,1))] -translate-y-[2px]",+ welcome.enlarge && "scale-[1.15]",+ )}+ />+ )}+ <h1 className="aui-thread-welcome-message-inner unsloth-welcome-title fade-in slide-in-from-bottom-1 animate-in text-3xl tracking-[-0.02em] duration-200">+ {incognito+ ? t("welcome.temporaryChat")+ : t(welcome.key, welcome.name ? { name: welcome.name } : undefined)}+ </h1>+ </div>+ )}{incognito && (<p className="aui-thread-welcome-message-inner fade-in -mt-2 animate-in text-center font-heading font-normal text-muted-foreground text-sm duration-200">{t("welcome.temporaryChatDescription")}</p>)}- {!hideComposer && <ComposerAnimated threadId={threadId} />}+ {!hideComposer && !composerAtBottom && (+ <ComposerAnimated threadId={threadId} />+ )}</div></div></div>diff --git a/studio/frontend/src/features/chat/api/chat-preferences.ts b/studio/frontend/src/features/chat/api/chat-preferences.tsdeleted file mode 100644index 5be66a106f6..00000000000--- a/studio/frontend/src/features/chat/api/chat-preferences.ts+++ /dev/null@@ -1,70 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-only-// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0--import { authFetch } from "@/features/auth";-import { readFastApiError } from "@/lib/format-fastapi-error";--interface ApiChatPreferences {- // biome-ignore lint/style/useNamingConvention: API schema- show_model_disclaimer: boolean;-}--export interface ChatPreferences {- showModelDisclaimer: boolean;-}--function fromApi(settings: unknown): ChatPreferences {- const value = (settings as Partial<ApiChatPreferences> | null)- ?.show_model_disclaimer;- if (typeof value !== "boolean") {- throw new Error("Invalid chat preferences response");- }- return { showModelDisclaimer: value };-}--async function requestPreferences(- path: string,- init?: RequestInit,-): Promise<ChatPreferences> {- const res = await authFetch(path, init);- if (!res.ok) {- throw new Error(- await readFastApiError(res, "Could not load chat preferences"),- );- }- return fromApi(await res.json());-}--export function loadChatPreferences(): Promise<ChatPreferences> {- return requestPreferences("/api/settings/chat-preferences");-}--export function migrateChatPreferences(- showModelDisclaimer: boolean | undefined,-): Promise<ChatPreferences> {- return requestPreferences("/api/settings/chat-preferences/migrate", {- method: "POST",- headers: { "Content-Type": "application/json" },- body: JSON.stringify(- showModelDisclaimer === undefined- ? {}- : {- // biome-ignore lint/style/useNamingConvention: API schema- show_model_disclaimer: showModelDisclaimer,- },- ),- });-}--export function updateChatPreferences(- showModelDisclaimer: boolean,-): Promise<ChatPreferences> {- return requestPreferences("/api/settings/chat-preferences", {- method: "PUT",- headers: { "Content-Type": "application/json" },- body: JSON.stringify({- // biome-ignore lint/style/useNamingConvention: API schema- show_model_disclaimer: showModelDisclaimer,- }),- });-}diff --git a/studio/frontend/src/features/chat/chat-page.tsx b/studio/frontend/src/features/chat/chat-page.tsxindex 75251e12423..6e80ef7f23b 100644--- a/studio/frontend/src/features/chat/chat-page.tsx+++ b/studio/frontend/src/features/chat/chat-page.tsx@@ -1281,9 +1281,6 @@ function CompareShell({children: ReactElement;composer: ReactElement;}): ReactElement {- const showModelDisclaimer = useChatPreferencesStore(- (s) => s.showModelDisclaimer,- );return (<CompareHandlesProvider handlesRef={handlesRef}><div className="flex min-h-0 min-w-0 flex-1 basis-0 flex-col">@@ -1296,11 +1293,6 @@ function CompareShell({<div className="shrink-0 bg-background pl-5 pr-5 md:px-[calc(30px*var(--ui-space-scale,1))] pb-2 pt-1">{/* unsloth-composer-shell: the size container the single composer's narrow layout queries. */}<div className="unsloth-composer-shell mx-auto w-full max-w-[var(--custom-chat-max-width,48rem)]">{composer}</div>- {showModelDisclaimer && (- <p className="composer-footer-note">- LLMs can make mistakes. Double-check responses.- </p>- )}</div></div></CompareHandlesProvider>diff --git a/studio/frontend/src/features/chat/index.ts b/studio/frontend/src/features/chat/index.tsindex 61171505c41..f37492b13d4 100644--- a/studio/frontend/src/features/chat/index.ts+++ b/studio/frontend/src/features/chat/index.ts@@ -65,11 +65,6 @@ export { openFolderAsProject, useOpeningFolder } from "./utils/open-folder-as-prexport { requestReplyFinishedPermission } from "./utils/reply-finished-notification";export { forgetAgentsMd } from "./utils/agents-md";export { refreshContextUsage } from "./utils/refresh-context-usage";-export {- hydrateModelDisclaimerPreference,- refreshModelDisclaimerPreference,- saveModelDisclaimerPreference,-} from "./sync-model-disclaimer-preference";export {ChatComposerFocusableContext,pythonToolRunsInStudio,diff --git a/studio/frontend/src/features/chat/stores/chat-preferences-store.ts b/studio/frontend/src/features/chat/stores/chat-preferences-store.tsindex b4f2d3bb3bd..6ed46c112f0 100644--- a/studio/frontend/src/features/chat/stores/chat-preferences-store.ts+++ b/studio/frontend/src/features/chat/stores/chat-preferences-store.ts@@ -21,7 +21,7 @@ import {// Client-side chat UI prefs kept in localStorage, not the chat DB. confirmDeleteChats: off skips// the delete confirm dialog. alwaysDeleteChatFiles: on also removes the sandbox folder.-// showModelDisclaimer: off hides the "LLMs can make mistakes" footer. showResponseModel: on shows+// showResponseModel: on shows// the producing model on responses. thinkingVisibility / toolVisibility: collapsed, auto or// expanded, see display-visibility.ts. foldToolActivityIntoThinking: on hides a round's tool calls// until its thinking block is opened, and has no effect while toolVisibility is "expanded".@@ -32,7 +32,8 @@ import {// showGenerationDetails: on shows live prefill / decode figures while a reply streams and where// a local model's layers ended up after it loads.// filesPanelCollapsed: on shrinks Chat with files to a header and-// a row of pills.+// a row of pills. newChatComposerAtBottom: on docks a new chat's composer at the bottom, as once+// the chat has messages, instead of under the greeting mid-page.export interface ChatPreferencesState {plainTextComposer: boolean;setPlainTextComposer: (value: boolean) => void;@@ -46,8 +47,6 @@ export interface ChatPreferencesState {setConfirmDeleteChats: (value: boolean) => void;alwaysDeleteChatFiles: boolean;setAlwaysDeleteChatFiles: (value: boolean) => void;- showModelDisclaimer: boolean;- setShowModelDisclaimer: (value: boolean) => void;showResponseModel: boolean;setShowResponseModel: (value: boolean) => void;showReplyTimes: boolean;@@ -70,6 +69,8 @@ export interface ChatPreferencesState {setNotifyWhenReplyFinishes: (value: boolean) => void;filesPanelCollapsed: boolean;setFilesPanelCollapsed: (value: boolean) => void;+ newChatComposerAtBottom: boolean;+ setNewChatComposerAtBottom: (value: boolean) => void;}// A stale stored value would leave the dropdown blank and unfixable.@@ -96,9 +97,6 @@ export const useChatPreferencesStore = create<ChatPreferencesState>()(alwaysDeleteChatFiles: false,setAlwaysDeleteChatFiles: (alwaysDeleteChatFiles) =>set({ alwaysDeleteChatFiles }),- showModelDisclaimer: false,- setShowModelDisclaimer: (showModelDisclaimer) =>- set({ showModelDisclaimer }),showResponseModel: false,setShowResponseModel: (showResponseModel) => set({ showResponseModel }),// Off by default: it adds text under every reply, so it stays opt in.@@ -132,6 +130,9 @@ export const useChatPreferencesStore = create<ChatPreferencesState>()(filesPanelCollapsed: false,setFilesPanelCollapsed: (filesPanelCollapsed) =>set({ filesPanelCollapsed }),+ newChatComposerAtBottom: false,+ setNewChatComposerAtBottom: (newChatComposerAtBottom) =>+ set({ newChatComposerAtBottom }),}),{name: "unsloth_chat_preferences",@@ -155,7 +156,6 @@ export const useChatPreferencesStore = create<ChatPreferencesState>()(...normalizeComposerPreferences(saved),confirmDeleteChats: saved?.confirmDeleteChats ?? true,alwaysDeleteChatFiles: saved?.alwaysDeleteChatFiles ?? false,- showModelDisclaimer: saved?.showModelDisclaimer ?? false,showResponseModel: saved?.showResponseModel ?? false,showReplyTimes: saved?.showReplyTimes === true,showGenerationDetails: saved?.showGenerationDetails === true,@@ -178,6 +178,7 @@ export const useChatPreferencesStore = create<ChatPreferencesState>()(autoScrollWhileGenerating: saved?.autoScrollWhileGenerating ?? true,notifyWhenReplyFinishes: saved?.notifyWhenReplyFinishes === true,filesPanelCollapsed: saved?.filesPanelCollapsed === true,+ newChatComposerAtBottom: saved?.newChatComposerAtBottom === true,};},},diff --git a/studio/frontend/src/features/chat/sync-model-disclaimer-preference.ts b/studio/frontend/src/features/chat/sync-model-disclaimer-preference.tsdeleted file mode 100644index e1f33a1d8fa..00000000000--- a/studio/frontend/src/features/chat/sync-model-disclaimer-preference.ts+++ /dev/null@@ -1,97 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-only-// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0--import {- loadChatPreferences,- migrateChatPreferences,- updateChatPreferences,-} from "./api/chat-preferences";-import { useChatPreferencesStore } from "./stores/chat-preferences-store";--const STORAGE_KEY = "unsloth_chat_preferences";--let mutationRevision = 0;-// Preserve request order across hydration, refreshes, and writes.-let operationQueue: Promise<void> = Promise.resolve();--function enqueue(operation: () => Promise<void>): Promise<void> {- const next = operationQueue.then(operation, operation);- operationQueue = next.catch(() => undefined);- return next;-}--export function readLegacyModelDisclaimer(): boolean | undefined {- if (typeof window === "undefined") {- return undefined;- }- try {- const raw = JSON.parse(- window.localStorage.getItem(STORAGE_KEY) ?? "null",- ) as {- state?: { showModelDisclaimer?: unknown };- } | null;- const value = raw?.state?.showModelDisclaimer;- return value === true ? true : undefined;- } catch {- return undefined;- }-}--async function hydrate(- migrateLegacy: boolean,- expectedMutation: number,-): Promise<void> {- const settings = migrateLegacy- ? await migrateChatPreferences(readLegacyModelDisclaimer())- : await loadChatPreferences();- if (expectedMutation !== mutationRevision) {- return;- }- useChatPreferencesStore- .getState()- .setShowModelDisclaimer(settings.showModelDisclaimer);-}--function enqueueHydration(migrateLegacy: boolean): Promise<void> {- const expectedMutation = mutationRevision;- return enqueue(() => hydrate(migrateLegacy, expectedMutation));-}--export async function hydrateModelDisclaimerPreference(): Promise<void> {- await enqueueHydration(true);-}--export async function refreshModelDisclaimerPreference(): Promise<void> {- await enqueueHydration(false);-}--export async function saveModelDisclaimerPreference(- showModelDisclaimer: boolean,-): Promise<void> {- const previous = useChatPreferencesStore.getState().showModelDisclaimer;- const mutation = ++mutationRevision;- useChatPreferencesStore- .getState()- .setShowModelDisclaimer(showModelDisclaimer);-- await enqueue(async () => {- try {- const saved = await updateChatPreferences(showModelDisclaimer);- if (mutation !== mutationRevision) {- return;- }- useChatPreferencesStore- .getState()- .setShowModelDisclaimer(saved.showModelDisclaimer);- } catch (error) {- if (mutation === mutationRevision) {- try {- await hydrate(false, mutation);- } catch {- useChatPreferencesStore.getState().setShowModelDisclaimer(previous);- }- }- throw error;- }- });-}diff --git a/studio/frontend/src/features/settings/settings-search.ts b/studio/frontend/src/features/settings/settings-search.tsindex fb5c1ca3c03..785e8bdbb74 100644--- a/studio/frontend/src/features/settings/settings-search.ts+++ b/studio/frontend/src/features/settings/settings-search.ts@@ -134,11 +134,11 @@ export const SETTINGS_SEARCH_INDEX: Record<SettingsTab, TranslationKey[]> = {"settings.chat.autoScroll","settings.chat.replyNotification","settings.profile.greetingSloth",+ "settings.chat.composerAtBottom","settings.chat.thinking.visibility","settings.chat.tools.visibility","settings.chat.tools.foldIntoThinking","settings.chat.webSearch.images",- "settings.chat.modelDisclaimer","settings.chat.inlineEditResponse","settings.chat.showReplyTimes","settings.chat.showGenerationDetails",diff --git a/studio/frontend/src/features/settings/tabs/chat-tab.tsx b/studio/frontend/src/features/settings/tabs/chat-tab.tsxindex 6025a841206..7c631049bc8 100644--- a/studio/frontend/src/features/settings/tabs/chat-tab.tsx+++ b/studio/frontend/src/features/settings/tabs/chat-tab.tsx@@ -17,9 +17,7 @@ import {DEFAULT_TOOL_VISIBILITY,type PlusMenuItemId,normaliseDisplayVisibility,- refreshModelDisclaimerPreference,requestReplyFinishedPermission,- saveModelDisclaimerPreference,useChatPreferencesStore,useChatRuntimeStore,usePlusMenuPrefsStore,@@ -320,6 +318,12 @@ export function ChatTab() {(state) => state.setKeepRunningWhenTabClosed,);const showGreetingSloth = useUserProfileStore((s) => s.showGreetingSloth);+ const composerAtBottom = useChatPreferencesStore(+ (s) => s.newChatComposerAtBottom,+ );+ const setComposerAtBottom = useChatPreferencesStore(+ (s) => s.setNewChatComposerAtBottom,+ );const setShowGreetingSloth = useUserProfileStore((s) => s.setShowGreetingSloth,);@@ -348,9 +352,6 @@ export function ChatTab() {const setFitOnDeviceOnly = useChatRuntimeStore((state) => state.setFitOnDeviceOnly,);- const showModelDisclaimer = useChatPreferencesStore(- (state) => state.showModelDisclaimer,- );const showResponseModel = useChatPreferencesStore((state) => state.showResponseModel,);@@ -429,7 +430,6 @@ export function ChatTab() {useEffect(() => {void hydratePersistedSettings();- refreshModelDisclaimerPreference().catch(() => undefined);}, [hydratePersistedSettings]);useEffect(() => {@@ -802,20 +802,6 @@ export function ChatTab() {onCheckedChange={setShowInlineEditResponse}/></SettingsRow>- <SettingsRow- label={t("settings.chat.modelDisclaimer")}- description={t("settings.chat.modelDisclaimerDescription")}- >- <Switch- aria-label={t("settings.chat.modelDisclaimer")}- checked={showModelDisclaimer}- onCheckedChange={(checked) => {- return saveModelDisclaimerPreference(checked).catch(() => {- toast.error("Could not save the model disclaimer setting.");- });- }}- />- </SettingsRow><SettingsRowlabel={t("settings.profile.greetingSloth")}description={t("settings.profile.greetingSlothDescription")}@@ -827,6 +813,16 @@ export function ChatTab() {onCheckedChange={setShowGreetingSloth}/></SettingsRow>+ <SettingsRow+ label={t("settings.chat.composerAtBottom")}+ description={t("settings.chat.composerAtBottomDescription")}+ >+ <Switch+ aria-label={t("settings.chat.composerAtBottom")}+ checked={composerAtBottom}+ onCheckedChange={setComposerAtBottom}+ />+ </SettingsRow></SettingsSection><SettingsSection title={t("settings.chat.modelSelection.title")}>diff --git a/studio/frontend/src/i18n/locales/ar.ts b/studio/frontend/src/i18n/locales/ar.tsindex 8e59fb62075..654347e2680 100644--- a/studio/frontend/src/i18n/locales/ar.ts+++ b/studio/frontend/src/i18n/locales/ar.ts@@ -2127,8 +2127,8 @@ export const ar = {uploadPhoto: "رفع صورة",removePhoto: "إزالة",pictureOptions: "خيارات صورة الملف الشخصي",- greetingSloth: "الكسلان في التحية",- greetingSlothDescription: "إظهار الكسلان في تحية المحادثة.",+ greetingSloth: "التحية",+ greetingSlothDescription: "إظهار التحية في المحادثات الجديدة.",noPicture: "لا توجد صورة ملف شخصي",noneLabel: "بلا",stats: {@@ -2817,9 +2817,8 @@ export const ar = {"تفاصيل سرعة رموز إحصاءات طبقات ذاكرة verbose developer stats speed tok/s prefill decode layers offload vram experts",inlineEditResponse: "تعديل الرد في الردود",inlineEditResponseDescription: "إبقاء تعديل الرد على كل رد بدلًا من قائمة المزيد.",- modelDisclaimer: "إظهار إخلاء مسؤولية النموذج",- modelDisclaimerDescription:- 'إظهار عبارة "LLMs can make mistakes" أسفل مربع المحادثة.',+ composerAtBottom: "حقل الكتابة في الأسفل",+ composerAtBottomDescription: "ابدأ المحادثات الجديدة وحقل الكتابة أسفل الصفحة بدلًا من منتصفها.",projectAttachments: "مشاركة الملفات عبر المشروع",projectAttachmentsDescription:"أتِح مرفقات الدردشة الجديدة لكل دردشة في المشروع.",diff --git a/studio/frontend/src/i18n/locales/de.ts b/studio/frontend/src/i18n/locales/de.tsindex 141316d146a..3352b9efc0a 100644--- a/studio/frontend/src/i18n/locales/de.ts+++ b/studio/frontend/src/i18n/locales/de.ts@@ -2157,8 +2157,8 @@ export const de = {uploadPhoto: "Foto hochladen",removePhoto: "Entfernen",pictureOptions: "Optionen für das Profilbild",- greetingSloth: "Faultier in der Begrüßung",- greetingSlothDescription: "Das Faultier in der Chat-Begrüßung anzeigen.",+ greetingSloth: "Begrüßung",+ greetingSlothDescription: "Die Begrüßung in neuen Chats anzeigen.",noPicture: "Kein Profilbild",noneLabel: "Keines",stats: {@@ -2859,9 +2859,8 @@ export const de = {"Details Geschwindigkeit Token Statistik Schichten Auslagerung verbose developer stats speed tok/s prefill decode layers offload vram experts",inlineEditResponse: "Antwort bearbeiten bei Antworten",inlineEditResponseDescription: "Antwort bearbeiten bei jeder Antwort anzeigen statt im Menü „Mehr“.",- modelDisclaimer: "Modell-Hinweis anzeigen",- modelDisclaimerDescription:- "Zeigt „LLMs können Fehler machen“ unter dem Chatfeld an.",+ composerAtBottom: "Eingabefeld unten",+ composerAtBottomDescription: "Neue Chats mit dem Eingabefeld unten auf der Seite statt in der Mitte beginnen.",projectAttachments: "Dateien projektweit teilen",projectAttachmentsDescription:"Stellt neue Chat-Anhänge allen Chats im Projekt zur Verfügung.",diff --git a/studio/frontend/src/i18n/locales/en.ts b/studio/frontend/src/i18n/locales/en.tsindex 135e9d59541..f8e82de1e44 100644--- a/studio/frontend/src/i18n/locales/en.ts+++ b/studio/frontend/src/i18n/locales/en.ts@@ -2180,8 +2180,8 @@ export const en = {avatarShape: "Avatar shape",avatarShapeCircle: "Circle",avatarShapeRounded: "Rounded",- greetingSloth: "Sloth in greeting",- greetingSlothDescription: "Show the sloth in the chat greeting.",+ greetingSloth: "Greeting",+ greetingSlothDescription: "Show the greeting on new chats.",chooseSloth: "Or pick a sloth",noPicture: "No profile picture",noneLabel: "None",@@ -2881,9 +2881,8 @@ export const en = {inlineEditResponse: "Edit response on responses",inlineEditResponseDescription:"Keep Edit response on every response, instead of in the More menu.",- modelDisclaimer: "Model disclaimer",- modelDisclaimerDescription:- 'Show "LLMs can make mistakes" under the chat box.',+ composerAtBottom: "Composer at the bottom",+ composerAtBottomDescription: "Start new chats with the composer at the bottom of the page instead of the middle.",projectAttachments: "Share files across a project",projectAttachmentsDescription:"Make new chat attachments available to every chat in the project.",diff --git a/studio/frontend/src/i18n/locales/es.ts b/studio/frontend/src/i18n/locales/es.tsindex 2a3f4a9cfae..c53d863b1e8 100644--- a/studio/frontend/src/i18n/locales/es.ts+++ b/studio/frontend/src/i18n/locales/es.ts@@ -2152,8 +2152,8 @@ export const es = {uploadPhoto: "Subir foto",removePhoto: "Quitar",pictureOptions: "Opciones de la foto de perfil",- greetingSloth: "Perezoso en el saludo",- greetingSlothDescription: "Muestra el perezoso en el saludo del chat.",+ greetingSloth: "Saludo",+ greetingSlothDescription: "Mostrar el saludo en los chats nuevos.",noPicture: "Sin foto de perfil",noneLabel: "Ninguno",stats: {@@ -2850,9 +2850,8 @@ export const es = {"detalles velocidad tokens estadísticas capas descarga verbose developer stats speed tok/s prefill decode layers offload vram experts",inlineEditResponse: "Editar respuesta en las respuestas",inlineEditResponseDescription: "Mostrar Editar respuesta en cada respuesta, en lugar de en el menú Más.",- modelDisclaimer: "Mostrar aviso del modelo",- modelDisclaimerDescription:- 'Muestra "Los LLM pueden cometer errores" bajo el cuadro de chat.',+ composerAtBottom: "Cuadro de texto abajo",+ composerAtBottomDescription: "Empieza los chats nuevos con el cuadro de texto abajo en lugar de en el centro.",projectAttachments: "Compartir archivos en todo el proyecto",projectAttachmentsDescription:"Comparte los nuevos archivos adjuntos con todos los chats del proyecto.",diff --git a/studio/frontend/src/i18n/locales/fr.ts b/studio/frontend/src/i18n/locales/fr.tsindex be42370c427..f33f736c53c 100644--- a/studio/frontend/src/i18n/locales/fr.ts+++ b/studio/frontend/src/i18n/locales/fr.ts@@ -2155,9 +2155,8 @@ export const fr = {uploadPhoto: "Importer une photo",removePhoto: "Retirer",pictureOptions: "Options de la photo de profil",- greetingSloth: "Paresseux dans le message d'accueil",- greetingSlothDescription:- "Afficher le paresseux dans le message d'accueil de la discussion.",+ greetingSloth: "Message d'accueil",+ greetingSlothDescription: "Afficher le message d'accueil dans les nouvelles discussions.",noPicture: "Aucune photo de profil",noneLabel: "Aucun",stats: {@@ -2856,9 +2855,8 @@ export const fr = {"détails vitesse jetons statistiques couches déchargement verbose developer stats speed tok/s prefill decode layers offload vram experts",inlineEditResponse: "Modifier la réponse sur les réponses",inlineEditResponseDescription: "Afficher Modifier la réponse sur chaque réponse, plutôt que dans le menu Plus.",- modelDisclaimer: "Afficher l'avertissement du modèle",- modelDisclaimerDescription:- 'Afficher "Les LLM peuvent faire des erreurs" sous la zone de discussion.',+ composerAtBottom: "Zone de saisie en bas",+ composerAtBottomDescription: "Commencer les nouvelles discussions avec la zone de saisie en bas de la page plutôt qu'au centre.",projectAttachments: "Partager les fichiers dans tout le projet",projectAttachmentsDescription:"Rend les nouvelles pièces jointes accessibles à toutes les discussions du projet.",diff --git a/studio/frontend/src/i18n/locales/he.ts b/studio/frontend/src/i18n/locales/he.tsindex 8aa52d20452..d511ca702cf 100644--- a/studio/frontend/src/i18n/locales/he.ts+++ b/studio/frontend/src/i18n/locales/he.ts@@ -2220,8 +2220,8 @@ export const he = {avatarShape: "צורת תמונת פרופיל",avatarShapeCircle: "עיגול",avatarShapeRounded: "פינות מעוגלות",- greetingSloth: "עצלן בברכת השלום",- greetingSlothDescription: "הצג את העצלן בברכת הפתיחה של הצ'אט.",+ greetingSloth: "ברכה",+ greetingSlothDescription: "הצגת הברכה בצ'אטים חדשים.",chooseSloth: "או בחר עצלן",noPicture: "ללא תמונת פרופיל",noneLabel: "ללא",@@ -2946,9 +2946,8 @@ export const he = {inlineEditResponse: "עריכת תגובה על גבי התגובות",inlineEditResponseDescription:"הצג את 'עריכת תגובה' בכל תגובה, במקום בתפריט 'עוד'.",- modelDisclaimer: "הבהרה לגבי המודל",- modelDisclaimerDescription:- 'הצג את הכיתוב "מודלי שפה עלולים לטעות" מתחת לתיבת הצ\'אט.',+ composerAtBottom: "תיבת הכתיבה למטה",+ composerAtBottomDescription: "התחלת צ'אטים חדשים עם תיבת הכתיבה בתחתית הדף במקום באמצע.",projectAttachments: "שתף קבצים בכל הפרויקט",projectAttachmentsDescription:"הפוך קבצים מצורפים חדשים לזמינים לכל צ'אט בפרויקט.",diff --git a/studio/frontend/src/i18n/locales/hi.ts b/studio/frontend/src/i18n/locales/hi.tsindex 645287819eb..0c35aac1712 100644--- a/studio/frontend/src/i18n/locales/hi.ts+++ b/studio/frontend/src/i18n/locales/hi.ts@@ -2133,8 +2133,8 @@ export const hi = {uploadPhoto: "फ़ोटो अपलोड करें",removePhoto: "हटाएं",pictureOptions: "प्रोफ़ाइल फ़ोटो विकल्प",- greetingSloth: "अभिवादन में स्लॉथ",- greetingSlothDescription: "चैट के अभिवादन में स्लॉथ दिखाएं।",+ greetingSloth: "अभिवादन",+ greetingSlothDescription: "नई चैट में अभिवादन दिखाएँ।",noPicture: "कोई प्रोफ़ाइल फ़ोटो नहीं",noneLabel: "कोई नहीं",stats: {@@ -2826,9 +2826,8 @@ export const hi = {"विवरण गति टोकन आँकड़े परतें verbose developer stats speed tok/s prefill decode layers offload vram experts",inlineEditResponse: "जवाबों पर जवाब संपादित करें",inlineEditResponseDescription: "जवाब संपादित करें को More मेन्यू के बजाय हर जवाब पर दिखाएँ।",- modelDisclaimer: "मॉडल अस्वीकरण दिखाएं",- modelDisclaimerDescription:- 'चैट बॉक्स के नीचे "LLMs can make mistakes" दिखाएं।',+ composerAtBottom: "कंपोज़र नीचे",+ composerAtBottomDescription: "नई चैट में कंपोज़र को पेज के बीच के बजाय नीचे दिखाएँ।",projectAttachments: "प्रोजेक्ट भर में फ़ाइलें साझा करें",projectAttachmentsDescription:"नए चैट अटैचमेंट प्रोजेक्ट की हर चैट में उपलब्ध कराएँ।",diff --git a/studio/frontend/src/i18n/locales/it.ts b/studio/frontend/src/i18n/locales/it.tsindex ba85818d277..7c1117c1e6f 100644--- a/studio/frontend/src/i18n/locales/it.ts+++ b/studio/frontend/src/i18n/locales/it.ts@@ -2016,8 +2016,8 @@ export const it = {avatarShape: "Forma dell'avatar",avatarShapeCircle: "Circolare",avatarShapeRounded: "Arrotondata",- greetingSloth: "Bradipo nel saluto",- greetingSlothDescription: "Mostra il bradipo nel saluto della chat.",+ greetingSloth: "Saluto",+ greetingSlothDescription: "Mostra il saluto nelle nuove chat.",chooseSloth: "Oppure scegli un bradipo",noPicture: "Nessuna immagine del profilo",noneLabel: "Nessuna",@@ -2729,9 +2729,8 @@ export const it = {"dettagli velocità token statistiche livelli scaricamento verbose developer stats speed tok/s prefill decode layers offload vram experts",inlineEditResponse: "Modifica risposta nelle risposte",inlineEditResponseDescription: "Mostra Modifica risposta su ogni risposta, invece che nel menu Altro.",- modelDisclaimer: "Mostra l'avviso sul modello",- modelDisclaimerDescription:- "Mostra «Gli LLM possono commettere errori» sotto il campo della chat.",+ composerAtBottom: "Casella di testo in basso",+ composerAtBottomDescription: "Avvia le nuove chat con la casella di testo in fondo alla pagina invece che al centro.",projectAttachments: "Condividi i file nel progetto",projectAttachmentsDescription:"Rende i nuovi allegati disponibili in tutte le chat del progetto.",diff --git a/studio/frontend/src/i18n/locales/ja.ts b/studio/frontend/src/i18n/locales/ja.tsindex 68b02448591..c1ef51becaf 100644--- a/studio/frontend/src/i18n/locales/ja.ts+++ b/studio/frontend/src/i18n/locales/ja.ts@@ -2097,8 +2097,8 @@ export const ja = {avatarShape: "プロフィール写真の形状",avatarShapeCircle: "円形",avatarShapeRounded: "角丸",- greetingSloth: "挨拶にナマケモノを表示",- greetingSlothDescription: "チャットの挨拶にナマケモノを表示します。",+ greetingSloth: "あいさつ",+ greetingSlothDescription: "新しいチャットにあいさつを表示します。",chooseSloth: "またはナマケモノのプロフィール画像を選択",noPicture: "プロフィール画像なし",noneLabel: "なし",@@ -2802,8 +2802,8 @@ export const ja = {"詳細 速度 トークン 統計 レイヤー オフロード verbose developer stats speed tok/s prefill decode layers offload vram experts",inlineEditResponse: "応答に応答の編集を表示",inlineEditResponseDescription: "応答の編集を「その他」メニューではなく、各応答に表示します。",- modelDisclaimer: "モデルの免責事項を表示",- modelDisclaimerDescription: 'チャットボックスの下に "LLMs can make mistakes" と表示します。',+ composerAtBottom: "入力欄を下に表示",+ composerAtBottomDescription: "新しいチャットで入力欄を中央ではなくページ下部に表示します。",projectAttachments: "プロジェクト全体でファイルを共有",projectAttachmentsDescription:"新しく添付したファイルをプロジェクト内のすべてのチャットで利用できるようにします。",diff --git a/studio/frontend/src/i18n/locales/ko.ts b/studio/frontend/src/i18n/locales/ko.tsindex 7a67512db4b..d523b5cd931 100644--- a/studio/frontend/src/i18n/locales/ko.ts+++ b/studio/frontend/src/i18n/locales/ko.ts@@ -2120,8 +2120,8 @@ export const ko = {uploadPhoto: "사진 업로드",removePhoto: "제거",pictureOptions: "프로필 사진 옵션",- greetingSloth: "인사말에 나무늘보 표시",- greetingSlothDescription: "채팅 인사말에 나무늘보를 표시합니다.",+ greetingSloth: "인사말",+ greetingSlothDescription: "새 채팅에 인사말을 표시합니다.",noPicture: "프로필 사진 없음",noneLabel: "없음",stats: {@@ -2809,9 +2809,8 @@ export const ko = {"세부 속도 토큰 통계 레이어 오프로드 verbose developer stats speed tok/s prefill decode layers offload vram experts",inlineEditResponse: "응답에 응답 편집 표시",inlineEditResponseDescription: "응답 편집을 더보기 메뉴 대신 모든 응답에 표시합니다.",- modelDisclaimer: "모델 고지 표시",- modelDisclaimerDescription:- '채팅 상자 아래에 "LLMs can make mistakes" 문구를 표시합니다.',+ composerAtBottom: "입력창을 아래에",+ composerAtBottomDescription: "새 채팅에서 입력창을 가운데가 아닌 페이지 아래쪽에 표시합니다.",projectAttachments: "프로젝트 전체에서 파일 공유",projectAttachmentsDescription:"새 채팅 첨부 파일을 프로젝트의 모든 채팅에서 사용할 수 있게 합니다.",diff --git a/studio/frontend/src/i18n/locales/pt-br.ts b/studio/frontend/src/i18n/locales/pt-br.tsindex 7406c1a9421..32073f6a679 100644--- a/studio/frontend/src/i18n/locales/pt-br.ts+++ b/studio/frontend/src/i18n/locales/pt-br.ts@@ -2130,8 +2130,8 @@ export const ptBR = {avatarShape: "Formato da foto de perfil",avatarShapeCircle: "Círculo",avatarShapeRounded: "Arredondado",- greetingSloth: "Bicho-preguiça na saudação",- greetingSlothDescription: "Mostra o bicho-preguiça na saudação do chat.",+ greetingSloth: "Saudação",+ greetingSlothDescription: "Mostrar a saudação nas novas conversas.",chooseSloth: "Ou escolha um bicho-preguiça",noPicture: "Sem foto de perfil",noneLabel: "Nenhuma",@@ -2837,9 +2837,8 @@ export const ptBR = {"detalhes geração velocidade tokens estatísticas camadas especialistas desenvolvedor verbose developer stats speed tok/s prefill decode layers offload vram experts",inlineEditResponse: "Editar resposta nas respostas",inlineEditResponseDescription: "Mostrar Editar resposta em cada resposta, em vez de no menu Mais.",- modelDisclaimer: "Mostrar aviso do modelo",- modelDisclaimerDescription:- 'Mostra "LLMs podem cometer erros" abaixo da caixa de chat.',+ composerAtBottom: "Caixa de texto embaixo",+ composerAtBottomDescription: "Comece novas conversas com a caixa de texto na parte de baixo da página, não no meio.",projectAttachments: "Compartilhar arquivos em todo o projeto",projectAttachmentsDescription:"Disponibiliza novos anexos para todos os chats do projeto.",diff --git a/studio/frontend/src/i18n/locales/ru.ts b/studio/frontend/src/i18n/locales/ru.tsindex b3c187df6ce..4b61fad032c 100644--- a/studio/frontend/src/i18n/locales/ru.ts+++ b/studio/frontend/src/i18n/locales/ru.ts@@ -2137,8 +2137,8 @@ export const ru = {uploadPhoto: "Загрузить фото",removePhoto: "Удалить",pictureOptions: "Параметры фото профиля",- greetingSloth: "Ленивец в приветствии",- greetingSlothDescription: "Показывать ленивца в приветствии чата.",+ greetingSloth: "Приветствие",+ greetingSlothDescription: "Показывать приветствие в новых чатах.",noPicture: "Нет фото профиля",noneLabel: "Нет",stats: {@@ -2834,9 +2834,8 @@ export const ru = {"подробности скорость токены статистика слои выгрузка verbose developer stats speed tok/s prefill decode layers offload vram experts",inlineEditResponse: "Изменение ответа в ответах",inlineEditResponseDescription: "Показывать «Изменить ответ» у каждого ответа, а не в меню «Ещё».",- modelDisclaimer: "Показывать предупреждение о модели",- modelDisclaimerDescription:- "Показывать сообщение «LLM могут ошибаться» под полем ввода.",+ composerAtBottom: "Поле ввода внизу",+ composerAtBottomDescription: "Начинать новые чаты с полем ввода внизу страницы, а не посередине.",projectAttachments: "Общий доступ к файлам в проекте",projectAttachmentsDescription:"Делает новые вложения доступными во всех чатах проекта.",diff --git a/studio/frontend/src/i18n/locales/sv.ts b/studio/frontend/src/i18n/locales/sv.tsindex 9efea7d7a46..7f85a459bd4 100644--- a/studio/frontend/src/i18n/locales/sv.ts+++ b/studio/frontend/src/i18n/locales/sv.ts@@ -2293,8 +2293,8 @@ export const sv = {avatarShape: "Avatarform",avatarShapeCircle: "Cirkel",avatarShapeRounded: "Avrundad",- greetingSloth: "Sengångare i hälsning",- greetingSlothDescription: "Visa sengångaren i chatthälsningen.",+ greetingSloth: "Hälsning",+ greetingSlothDescription: "Visa hälsningen i nya chattar.",chooseSloth: "Eller välj en sengångare",noPicture: "Ingen profilbild",noneLabel: "Ingen",@@ -3031,9 +3031,8 @@ export const sv = {inlineEditResponse: "Redigera svar på svaren",inlineEditResponseDescription:"Visa Redigera svar på varje svar i stället för i menyn Mer.",- modelDisclaimer: "Modellfriskrivning",- modelDisclaimerDescription:- "Visa ”LLM:er kan göra misstag” under chattrutan.",+ composerAtBottom: "Inmatningsfält längst ned",+ composerAtBottomDescription: "Starta nya chattar med inmatningsfältet längst ned på sidan i stället för i mitten.",projectAttachments: "Dela filer i ett projekt",projectAttachmentsDescription:"Gör nya chattbilagor tillgängliga för alla chattar i projektet.",diff --git a/studio/frontend/src/i18n/locales/zh-CN.ts b/studio/frontend/src/i18n/locales/zh-CN.tsindex 4aeede0bfcc..f428e4441b9 100644--- a/studio/frontend/src/i18n/locales/zh-CN.ts+++ b/studio/frontend/src/i18n/locales/zh-CN.ts@@ -2089,8 +2089,8 @@ export const zhCN = {avatarShape: "头像形状",avatarShapeCircle: "圆形",avatarShapeRounded: "圆角矩形",- greetingSloth: "问候语中显示树懒",- greetingSlothDescription: "在对话问候语中显示树懒。",+ greetingSloth: "问候语",+ greetingSlothDescription: "在新聊天中显示问候语。",chooseSloth: "或选择一只树懒作为头像",noPicture: "无头像",noneLabel: "无",@@ -2773,9 +2773,8 @@ export const zhCN = {"详情 速度 统计 层 卸载 verbose developer stats speed tok/s prefill decode layers offload vram experts",inlineEditResponse: "在回复上显示编辑回复",inlineEditResponseDescription: "在每条回复上显示编辑回复,而不是放在“更多”菜单中。",- modelDisclaimer: "显示模型免责声明",- modelDisclaimerDescription:- "在聊天框下方显示“LLM 可能会出错”。",+ composerAtBottom: "输入框置底",+ composerAtBottomDescription: "新聊天时将输入框放在页面底部,而不是中间。",projectAttachments: "在项目内共享文件",projectAttachmentsDescription:"让项目内的所有聊天都能使用新添加的聊天附件。",diff --git a/studio/frontend/tests/model-disclaimer-preference.test.ts b/studio/frontend/tests/model-disclaimer-preference.test.tsdeleted file mode 100644index 1af691bc43f..00000000000--- a/studio/frontend/tests/model-disclaimer-preference.test.ts+++ /dev/null@@ -1,170 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-only-// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0--import assert from "node:assert/strict";-import { register } from "node:module";-import test from "node:test";--import { installLocalStorageFake, readSrcAsync } from "./helpers/kit.ts";--register("./helpers/settings-api-resolver.mjs", import.meta.url);-const { store: localStorage } = installLocalStorageFake();--let serverValue: boolean | undefined;-const requests: Array<{ method: string; path: string; body: unknown }> = [];-const API_KEY = "show_model_disclaimer";--type ResponseGate = {- method: string;- reached: Promise<void>;- wait: Promise<void>;- markReached: () => void;- release: () => void;-};--let responseGate: ResponseGate | null = null;--function holdNextResponse(method: string): ResponseGate {- let markReached: () => void = () => undefined;- let release: () => void = () => undefined;- const reached = new Promise<void>((resolve) => {- markReached = resolve;- });- const wait = new Promise<void>((resolve) => {- release = resolve;- });- responseGate = { method, reached, wait, markReached, release };- return responseGate;-}--globalThis.fetch = (async (input: RequestInfo | URL, init?: RequestInit) => {- const path = String(input);- const method = init?.method ?? "GET";- const body = init?.body ? JSON.parse(String(init.body)) : undefined;- requests.push({ method, path, body });-- if (method === "POST" && path.endsWith("/migrate")) {- const legacy = (body as Record<string, unknown> | undefined)?.[API_KEY];- if (serverValue === undefined && typeof legacy === "boolean") {- serverValue = legacy;- }- } else if (method === "PUT") {- serverValue = (body as Record<string, boolean>)[API_KEY];- }-- const responseValue = serverValue ?? false;- const gate = responseGate?.method === method ? responseGate : null;- if (gate) {- responseGate = null;- gate.markReached();- await gate.wait;- }-- return new Response(JSON.stringify({ [API_KEY]: responseValue }), {- status: 200,- headers: { "Content-Type": "application/json" },- });-}) as typeof fetch;--const { useChatPreferencesStore } = await import(- "../src/features/chat/stores/chat-preferences-store.ts"-);-const {- hydrateModelDisclaimerPreference,- readLegacyModelDisclaimer,- refreshModelDisclaimerPreference,- saveModelDisclaimerPreference,-} = await import("../src/features/chat/sync-model-disclaimer-preference.ts");-const MISSING_DISCLAIMER_DEFAULT_PATTERN =- /showModelDisclaimer: saved\?\.showModelDisclaimer \?\? false/;--test("the model disclaimer is hidden by default", () => {- const fresh = useChatPreferencesStore.getInitialState();- assert.equal(fresh.showModelDisclaimer, false);-});--test("a saved payload without the model disclaimer key defaults to hidden", async () => {- const source = await readSrcAsync(- "features/chat/stores/chat-preferences-store.ts",- );- assert.match(source, MISSING_DISCLAIMER_DEFAULT_PATTERN);-});--test("the legacy browser value seeds the installation setting once", async () => {- serverValue = undefined;- requests.length = 0;- localStorage.set(- "unsloth_chat_preferences",- JSON.stringify({ state: { showModelDisclaimer: true }, version: 0 }),- );-- assert.equal(readLegacyModelDisclaimer(), true);- await Promise.all([- hydrateModelDisclaimerPreference(),- refreshModelDisclaimerPreference(),- ]);- assert.equal(serverValue, true);- assert.equal(useChatPreferencesStore.getState().showModelDisclaimer, true);- assert.deepEqual(requests[0], {- method: "POST",- path: "/api/settings/chat-preferences/migrate",- body: { [API_KEY]: true },- });- assert.equal(requests[1]?.method, "GET");-- localStorage.delete("unsloth_chat_preferences");- useChatPreferencesStore.getState().setShowModelDisclaimer(false);- localStorage.delete("unsloth_chat_preferences");- await hydrateModelDisclaimerPreference();- assert.equal(useChatPreferencesStore.getState().showModelDisclaimer, true);-});--test("a legacy disabled default does not claim the installation setting", () => {- localStorage.set(- "unsloth_chat_preferences",- JSON.stringify({ state: { showModelDisclaimer: false }, version: 0 }),- );- assert.equal(readLegacyModelDisclaimer(), undefined);-});--test("a queued refresh cannot revert a newer toggle", async () => {- serverValue = false;- requests.length = 0;- localStorage.delete("unsloth_chat_preferences");- useChatPreferencesStore.getState().setShowModelDisclaimer(false);- localStorage.delete("unsloth_chat_preferences");-- const migrationGate = holdNextResponse("POST");- const migration = hydrateModelDisclaimerPreference();- await migrationGate.reached;-- const refresh = refreshModelDisclaimerPreference();- const saveGate = holdNextResponse("PUT");- const save = saveModelDisclaimerPreference(true);- migrationGate.release();- await saveGate.reached;-- assert.equal(useChatPreferencesStore.getState().showModelDisclaimer, true);- assert.deepEqual(- requests.map(({ method }) => method),- ["POST", "GET", "PUT"],- );- saveGate.release();- await Promise.all([migration, refresh, save]);- assert.equal(serverValue, true);-});--test("saving the switch updates both the browser and installation", async () => {- serverValue = false;- requests.length = 0;-- await saveModelDisclaimerPreference(true);-- assert.equal(serverValue, true);- assert.equal(useChatPreferencesStore.getState().showModelDisclaimer, true);- assert.deepEqual(requests[0], {- method: "PUT",- path: "/api/settings/chat-preferences",- body: { [API_KEY]: true },- });-});diff --git a/studio/frontend/tests/tool-activity-preference.test.ts b/studio/frontend/tests/tool-activity-preference.test.tsindex cbd92c25970..886fc415220 100644--- a/studio/frontend/tests/tool-activity-preference.test.ts+++ b/studio/frontend/tests/tool-activity-preference.test.ts@@ -24,7 +24,6 @@ const PREFERENCES_KEY = "unsloth_chat_preferences";const LEGACY_STATE = {confirmDeleteChats: false,alwaysDeleteChatFiles: true,- showModelDisclaimer: true,showResponseModel: true,collapseThinkingByDefault: true,pastedTextMinChars: 8000,@@ -105,7 +104,6 @@ test("hydrating the new keys leaves the older preferences alone", () => {const state = useChatPreferencesStore.getState();assert.equal(state.confirmDeleteChats, false);assert.equal(state.alwaysDeleteChatFiles, true);- assert.equal(state.showModelDisclaimer, true);assert.equal(state.showResponseModel, true);assert.equal(state.pastedTextMinChars, 8000);assert.equal(typeof state.setToolVisibility, "function");