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: choose where the background image shows (new chat page, chats, or all pages) (#16297)
Michael Han576951bcfeb4
diff --git a/studio/frontend/smoke-chat-background-main.tsx b/studio/frontend/smoke-chat-background-main.tsxindex 11484f28ba8..6fe32529fb7 100644--- a/studio/frontend/smoke-chat-background-main.tsx+++ b/studio/frontend/smoke-chat-background-main.tsx@@ -3,12 +3,12 @@ import { WindowTitlebar } from "./src/components/tauri/window-titlebar";import { StrictMode, useState } from "react";import { createRoot } from "react-dom/client";import { ChatBackground } from "./src/features/chat-background/background";-import { BACKGROUND_ON_ALL_PAGES } from "./src/features/chat-background/model";import { ChatBackgroundControls } from "./src/features/chat-background/controls";import {resetChatBackground,patchBackground,useBackgroundStore,+ useChatBackground,} from "./src/features/chat-background/storage";import { TooltipProvider } from "./src/components/ui/tooltip";import "./src/index.css";@@ -30,6 +30,7 @@ function App() {[sidebar, setSidebar] = useState(false),[otherPage, setOtherPage] = useState(false),[dark, setDark] = useState(false);+ const scope = useChatBackground().value?.scope ?? "chats";return (<TooltipProvider><div className="p-4 text-foreground">@@ -60,7 +61,14 @@ function App() {data-wallpaper-route={otherPage ? "page" : "chat"}className="relative h-[700px] overflow-hidden rounded-xl border bg-background">- <ChatBackground active={active && (!otherPage || BACKGROUND_ON_ALL_PAGES)} />+ <ChatBackground+ active={+ active &&+ (otherPage+ ? scope === "all"+ : !(conversation && scope === "newChat"))+ }+ /><WindowTitlebar showSidebarSurface />{sidebar && <aside data-slot="sidebar" className="absolute inset-y-0 left-0 z-50 w-40 bg-sidebar p-4">Unsloth<br />New chat<br />Model hub</aside>}<main data-slot="sidebar-inset" className="relative h-full" style={{marginLeft: sidebar ? 160 : 0}}>diff --git a/studio/frontend/src/app/routes/__root.tsx b/studio/frontend/src/app/routes/__root.tsxindex a7fa996a55a..09443d95dea 100644--- a/studio/frontend/src/app/routes/__root.tsx+++ b/studio/frontend/src/app/routes/__root.tsx@@ -1,7 +1,7 @@// 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 { BACKGROUND_ON_ALL_PAGES, ChatBackground } from "@/features/chat-background";+import { ChatBackground } from "@/features/chat-background";import { ImageViewer } from "@/components/image-viewer";import { useAppShellReadySignal } from "@/components/app-readiness";import { LazyImportFailure } from "@/components/lazy-import-boundary";@@ -726,7 +726,7 @@ function RootLayout() {data-wallpaper-route={isChatRoute ? "chat" : "page"}className="relative !min-h-0 h-[calc(100dvh-var(--studio-titlebar-height,0px))] overflow-hidden">- <ChatBackground active={isChatRoute || BACKGROUND_ON_ALL_PAGES} />+ <ChatBackground route={isChatRoute ? "chat" : "page"} /><AppSidebar /><SidebarEdgeTrigger /><SidebarInsetdiff --git a/studio/frontend/src/components/assistant-ui/thread.tsx b/studio/frontend/src/components/assistant-ui/thread.tsxindex 594f12166e8..9f6805130f7 100644--- a/studio/frontend/src/components/assistant-ui/thread.tsx+++ b/studio/frontend/src/components/assistant-ui/thread.tsx@@ -14,6 +14,7 @@ import {type QueuedPrompt,} from "@/features/chat/utils/queued-text-attachments";import { getAuthSessionEpoch } from "@/features/auth";+import { useMarkChatWelcome } from "@/features/chat-background";import {ComposerAttachments,@@ -2758,6 +2759,7 @@ const ThreadWelcome: FC<{(s) => s.newChatComposerAtBottom,);const spooky = useSpookyGreetings();+ useMarkChatWelcome();const [welcome, setWelcome] = useState<Welcome>(DEFAULT_WELCOME);const t = useT();diff --git a/studio/frontend/src/features/chat-background/controls.tsx b/studio/frontend/src/features/chat-background/controls.tsxindex 0768a1162ab..0a946249394 100644--- a/studio/frontend/src/features/chat-background/controls.tsx+++ b/studio/frontend/src/features/chat-background/controls.tsx@@ -29,6 +29,8 @@ import {IMAGE_SIZING,type ImageSizing,POSITIONS,+ SCOPES,+ type BackgroundScope,normalizedSize,parsePosition,validUpload,@@ -51,6 +53,11 @@ const labels: Record<BackgroundEffect, TranslationKey> = {Halftone: "chatBackground.halftone",Scanlines: "chatBackground.scanlines",};+const scopeLabels: Record<BackgroundScope, TranslationKey> = {+ newChat: "chatBackground.scopeNewChat",+ chats: "chatBackground.scopeChats",+ all: "chatBackground.scopeAll",+};const sizingLabels: Record<ImageSizing, TranslationKey> = {cover: "chatBackground.fill",contain: "chatBackground.fit",@@ -199,7 +206,9 @@ export function ChatBackgroundControls() {className="wallpaper-preview relative h-48 overflow-hidden rounded-xl border border-border bg-background"data-wallpaper-conversation={conversation || undefined}>- <ChatBackground />+ <ChatBackground+ active={!(conversation && adjustments.scope === "newChat")}+ />{!value && (<p className="absolute inset-x-4 top-4 text-center text-xs text-muted-foreground">{t("chatBackground.noBackground")}@@ -221,7 +230,30 @@ export function ChatBackgroundControls() {</div>{value && (<>- <SettingsRow label={t("chatBackground.effect")} className="mt-3 items-start">+ <SettingsRow label={t("chatBackground.scope")} className="mt-3 items-start">+ <Select+ disabled={busy}+ value={adjustments.scope}+ onValueChange={(scope) =>+ patchBackground({ scope: scope as BackgroundScope })+ }+ >+ <SelectTrigger+ aria-label={t("chatBackground.scope")}+ className="w-52"+ >+ <SelectValue />+ </SelectTrigger>+ <SelectContent>+ {SCOPES.map((scope) => (+ <SelectItem key={scope} value={scope}>+ {t(scopeLabels[scope])}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ </SettingsRow>+ <SettingsRow label={t("chatBackground.effect")} className="items-start"><Selectdisabled={!value || busy}value={adjustments.effect}diff --git a/studio/frontend/src/features/chat-background/index.ts b/studio/frontend/src/features/chat-background/index.tsindex 74a8f04cf3b..9cace617f01 100644--- a/studio/frontend/src/features/chat-background/index.ts+++ b/studio/frontend/src/features/chat-background/index.ts@@ -1,4 +1,4 @@// SPDX-License-Identifier: AGPL-3.0-onlyexport { ChatBackground } from "./mount";-export { BACKGROUND_ON_ALL_PAGES } from "./model";+export { useChatWelcomeShown, useMarkChatWelcome } from "./welcome";export { resetChatBackground, useBackgroundStore } from "./storage";diff --git a/studio/frontend/src/features/chat-background/model.ts b/studio/frontend/src/features/chat-background/model.tsindex 20e2beb9335..ee2daf9c64c 100644--- a/studio/frontend/src/features/chat-background/model.ts+++ b/studio/frontend/src/features/chat-background/model.ts@@ -1,8 +1,9 @@// SPDX-License-Identifier: AGPL-3.0-only// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved.-// Enable to restore wallpaper on every main workspace page. The sidebar stays solid.-export const BACKGROUND_ON_ALL_PAGES = false;+// On "all" the sidebar stays solid.+export const SCOPES = ["newChat", "chats", "all"] as const;+export type BackgroundScope = (typeof SCOPES)[number];export const EFFECTS = ["None",@@ -33,6 +34,7 @@ export const POSITIONS = ["100% 100%",] as const;export const DEFAULT_ADJUSTMENTS = {+ scope: "chats" as BackgroundScope,effect: "None" as BackgroundEffect,visibility: 70,blur: 0,@@ -61,6 +63,9 @@ export function sanitizeAdjustments(? Math.max(0, Math.min(max, Math.round(v))): fallback;return {+ scope: SCOPES.includes(input.scope as BackgroundScope)+ ? input.scope!+ : "chats",effect: EFFECTS.includes(input.effect as BackgroundEffect)? input.effect!: "None",diff --git a/studio/frontend/src/features/chat-background/mount.tsx b/studio/frontend/src/features/chat-background/mount.tsxindex 3e007ebf00d..752a03ccba8 100644--- a/studio/frontend/src/features/chat-background/mount.tsx+++ b/studio/frontend/src/features/chat-background/mount.tsx@@ -1,14 +1,28 @@// SPDX-License-Identifier: AGPL-3.0-onlyimport { lazy, Suspense } from "react";+import type { BackgroundScope } from "./model";import { useChatBackground } from "./storage";+import { useChatWelcomeShown } from "./welcome";+function inScope(+ scope: BackgroundScope,+ route: "newChat" | "chat" | "page",+): boolean {+ if (scope === "all") return true;+ if (scope === "chats") return route !== "page";+ return route === "newChat";+}const Renderer = lazy(() =>import("./background").then((module) => ({ default: module.ChatBackground })),);export function ChatBackground({active = true,-}: { active?: boolean }) {+ route,+}: { active?: boolean; route?: "newChat" | "chat" | "page" }) {const { value } = useChatBackground();+ const welcome = useChatWelcomeShown();if (!active || !value) return null;+ if (route && !inScope(value.scope, route === "chat" && welcome ? "newChat" : route))+ return null;return (<Suspense fallback={null}><Renderer active={active} />diff --git a/studio/frontend/src/features/chat-background/welcome.ts b/studio/frontend/src/features/chat-background/welcome.tsnew file mode 100644index 00000000000..7fc516942fc--- /dev/null+++ b/studio/frontend/src/features/chat-background/welcome.ts@@ -0,0 +1,35 @@+// 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 { useEffect, useSyncExternalStore } from "react";++// Counted, not a flag: Compare mounts one welcome per pane.+let shown = 0;+const listeners = new Set<() => void>();+function emit() {+ for (const listener of listeners) listener();+}+function subscribe(listener: () => void) {+ listeners.add(listener);+ return () => {+ listeners.delete(listener);+ };+}++export function useMarkChatWelcome(): void {+ useEffect(() => {+ shown++;+ emit();+ return () => {+ shown--;+ emit();+ };+ }, []);+}++export function useChatWelcomeShown(): boolean {+ return useSyncExternalStore(+ subscribe,+ () => shown > 0,+ () => false,+ );+}diff --git a/studio/frontend/src/i18n/locales/ar.ts b/studio/frontend/src/i18n/locales/ar.tsindex 3ba68ec1800..387e19d7e74 100644--- a/studio/frontend/src/i18n/locales/ar.ts+++ b/studio/frontend/src/i18n/locales/ar.ts@@ -35,6 +35,10 @@ export const ar = {position: "الموضع",horizontal: "الموضع الأفقي",vertical: "الموضع العمودي",+ scope: "الإظهار في",+ scopeNewChat: "صفحة المحادثة الجديدة",+ scopeChats: "المحادثات",+ scopeAll: "كل الصفحات",positionValue: "أفقي {x}%، عمودي {y}%",newChat: "دردشة جديدة",conversation: "محادثة",diff --git a/studio/frontend/src/i18n/locales/cs.ts b/studio/frontend/src/i18n/locales/cs.tsindex b506392eec1..335428a53dd 100644--- a/studio/frontend/src/i18n/locales/cs.ts+++ b/studio/frontend/src/i18n/locales/cs.ts@@ -35,6 +35,10 @@ export const cs = {position: "Pozice",horizontal: "Vodorovná pozice",vertical: "Svislá pozice",+ scope: "Zobrazit na",+ scopeNewChat: "Stránka nového chatu",+ scopeChats: "Chaty",+ scopeAll: "Všechny stránky",positionValue: "Vodorovně {x} %, svisle {y} %",newChat: "Nový chat",conversation: "Konverzace",diff --git a/studio/frontend/src/i18n/locales/de.ts b/studio/frontend/src/i18n/locales/de.tsindex bb593108c8e..02287383897 100644--- a/studio/frontend/src/i18n/locales/de.ts+++ b/studio/frontend/src/i18n/locales/de.ts@@ -35,6 +35,10 @@ export const de = {position: "Position",horizontal: "Horizontale Position",vertical: "Vertikale Position",+ scope: "Anzeigen auf",+ scopeNewChat: "Seite „Neuer Chat“",+ scopeChats: "Chats",+ scopeAll: "Allen Seiten",positionValue: "Horizontal {x} %, vertikal {y} %",newChat: "Neuer Chat",conversation: "Unterhaltung",diff --git a/studio/frontend/src/i18n/locales/en.ts b/studio/frontend/src/i18n/locales/en.tsindex 025ca3ad13d..79317074b8c 100644--- a/studio/frontend/src/i18n/locales/en.ts+++ b/studio/frontend/src/i18n/locales/en.ts@@ -32,6 +32,10 @@ export const en = {position: "Position",horizontal: "Horizontal position",vertical: "Vertical position",+ scope: "Show on",+ scopeNewChat: "New chat page",+ scopeChats: "Chats",+ scopeAll: "All pages",positionValue: "Horizontal {x}%, vertical {y}%",newChat: "New chat",conversation: "Conversation",diff --git a/studio/frontend/src/i18n/locales/es-419.ts b/studio/frontend/src/i18n/locales/es-419.tsindex e07c2a02c2e..45786efae4d 100644--- a/studio/frontend/src/i18n/locales/es-419.ts+++ b/studio/frontend/src/i18n/locales/es-419.ts@@ -35,6 +35,10 @@ export const es419 = {position: "Posición",horizontal: "Posición horizontal",vertical: "Posición vertical",+ scope: "Mostrar en",+ scopeNewChat: "Página de chat nuevo",+ scopeChats: "Chats",+ scopeAll: "Todas las páginas",positionValue: "Horizontal {x} %, vertical {y} %",newChat: "Nuevo chat",conversation: "Conversación",diff --git a/studio/frontend/src/i18n/locales/es.ts b/studio/frontend/src/i18n/locales/es.tsindex 1f9de98d394..fad368decee 100644--- a/studio/frontend/src/i18n/locales/es.ts+++ b/studio/frontend/src/i18n/locales/es.ts@@ -35,6 +35,10 @@ export const es = {position: "Posición",horizontal: "Posición horizontal",vertical: "Posición vertical",+ scope: "Mostrar en",+ scopeNewChat: "Página de chat nuevo",+ scopeChats: "Chats",+ scopeAll: "Todas las páginas",positionValue: "Horizontal {x} %, vertical {y} %",newChat: "Nuevo chat",conversation: "Conversación",diff --git a/studio/frontend/src/i18n/locales/fa.ts b/studio/frontend/src/i18n/locales/fa.tsindex e59ec17e6ff..53c529f0e62 100644--- a/studio/frontend/src/i18n/locales/fa.ts+++ b/studio/frontend/src/i18n/locales/fa.ts@@ -35,6 +35,10 @@ export const fa = {position: "موقعیت",horizontal: "موقعیت افقی",vertical: "موقعیت عمودی",+ scope: "نمایش در",+ scopeNewChat: "صفحهٔ گفتگوی جدید",+ scopeChats: "گفتگوها",+ scopeAll: "همهٔ صفحهها",positionValue: "افقی {x}٪، عمودی {y}٪",newChat: "گفتگوی جدید",conversation: "گفتگو",diff --git a/studio/frontend/src/i18n/locales/fr.ts b/studio/frontend/src/i18n/locales/fr.tsindex 9457dd3bb97..b1e572241fc 100644--- a/studio/frontend/src/i18n/locales/fr.ts+++ b/studio/frontend/src/i18n/locales/fr.ts@@ -35,6 +35,10 @@ export const fr = {position: "Position",horizontal: "Position horizontale",vertical: "Position verticale",+ scope: "Afficher sur",+ scopeNewChat: "Page de nouvelle discussion",+ scopeChats: "Discussions",+ scopeAll: "Toutes les pages",positionValue: "Horizontal {x} %, vertical {y} %",newChat: "Nouveau chat",conversation: "Conversation",diff --git a/studio/frontend/src/i18n/locales/he.ts b/studio/frontend/src/i18n/locales/he.tsindex 0adac6bafa6..d7513130b41 100644--- a/studio/frontend/src/i18n/locales/he.ts+++ b/studio/frontend/src/i18n/locales/he.ts@@ -35,6 +35,10 @@ export const he = {position: "מיקום",horizontal: "מיקום אופקי",vertical: "מיקום אנכי",+ scope: "הצגה ב",+ scopeNewChat: "דף צ׳אט חדש",+ scopeChats: "צ׳אטים",+ scopeAll: "כל הדפים",positionValue: "אופקי {x}%, אנכי {y}%",newChat: "צ׳אט חדש",conversation: "שיחה",diff --git a/studio/frontend/src/i18n/locales/hi.ts b/studio/frontend/src/i18n/locales/hi.tsindex 8b79042de2f..5fd51153802 100644--- a/studio/frontend/src/i18n/locales/hi.ts+++ b/studio/frontend/src/i18n/locales/hi.ts@@ -35,6 +35,10 @@ export const hi = {position: "स्थिति",horizontal: "क्षैतिज स्थिति",vertical: "लंबवत स्थिति",+ scope: "यहाँ दिखाएँ",+ scopeNewChat: "नई चैट का पेज",+ scopeChats: "चैट",+ scopeAll: "सभी पेज",positionValue: "क्षैतिज {x}%, लंबवत {y}%",newChat: "नई चैट",conversation: "बातचीत",diff --git a/studio/frontend/src/i18n/locales/id.ts b/studio/frontend/src/i18n/locales/id.tsindex 620b9047394..e2cef0a3415 100644--- a/studio/frontend/src/i18n/locales/id.ts+++ b/studio/frontend/src/i18n/locales/id.ts@@ -35,6 +35,10 @@ export const id = {position: "Posisi",horizontal: "Posisi horizontal",vertical: "Posisi vertikal",+ scope: "Tampilkan di",+ scopeNewChat: "Halaman chat baru",+ scopeChats: "Chat",+ scopeAll: "Semua halaman",positionValue: "Horizontal {x}%, vertikal {y}%",newChat: "Chat baru",conversation: "Percakapan",diff --git a/studio/frontend/src/i18n/locales/it.ts b/studio/frontend/src/i18n/locales/it.tsindex 5c45882b6a7..d196802341f 100644--- a/studio/frontend/src/i18n/locales/it.ts+++ b/studio/frontend/src/i18n/locales/it.ts@@ -32,6 +32,10 @@ export const it = {position: "Posizione",horizontal: "Posizione orizzontale",vertical: "Posizione verticale",+ scope: "Mostra in",+ scopeNewChat: "Pagina nuova chat",+ scopeChats: "Chat",+ scopeAll: "Tutte le pagine",positionValue: "Orizzontale {x}%, verticale {y}%",newChat: "Nuova chat",conversation: "Conversazione",diff --git a/studio/frontend/src/i18n/locales/ja.ts b/studio/frontend/src/i18n/locales/ja.tsindex a65ed16acc3..f58226619e6 100644--- a/studio/frontend/src/i18n/locales/ja.ts+++ b/studio/frontend/src/i18n/locales/ja.ts@@ -36,6 +36,10 @@ export const ja = {position: "位置",horizontal: "水平位置",vertical: "垂直位置",+ scope: "表示する場所",+ scopeNewChat: "新規チャットページ",+ scopeChats: "チャット",+ scopeAll: "すべてのページ",positionValue: "横 {x}%、縦 {y}%",newChat: "新しいチャット",conversation: "会話",diff --git a/studio/frontend/src/i18n/locales/ko.ts b/studio/frontend/src/i18n/locales/ko.tsindex 3377a362b23..48e9fff139b 100644--- a/studio/frontend/src/i18n/locales/ko.ts+++ b/studio/frontend/src/i18n/locales/ko.ts@@ -35,6 +35,10 @@ export const ko = {position: "위치",horizontal: "가로 위치",vertical: "세로 위치",+ scope: "표시 위치",+ scopeNewChat: "새 채팅 페이지",+ scopeChats: "채팅",+ scopeAll: "모든 페이지",positionValue: "가로 {x}%, 세로 {y}%",newChat: "새 채팅",conversation: "대화",diff --git a/studio/frontend/src/i18n/locales/nl.ts b/studio/frontend/src/i18n/locales/nl.tsindex 4fe69b7a8f6..1c316794900 100644--- a/studio/frontend/src/i18n/locales/nl.ts+++ b/studio/frontend/src/i18n/locales/nl.ts@@ -35,6 +35,10 @@ export const nl = {position: "Positie",horizontal: "Horizontale positie",vertical: "Verticale positie",+ scope: "Tonen op",+ scopeNewChat: "Pagina nieuwe chat",+ scopeChats: "Chats",+ scopeAll: "Alle pagina’s",positionValue: "Horizontaal {x}%, verticaal {y}%",newChat: "Nieuwe chat",conversation: "Gesprek",diff --git a/studio/frontend/src/i18n/locales/pl.ts b/studio/frontend/src/i18n/locales/pl.tsindex 1b6ae56904e..639774fdd87 100644--- a/studio/frontend/src/i18n/locales/pl.ts+++ b/studio/frontend/src/i18n/locales/pl.ts@@ -35,6 +35,10 @@ export const pl = {position: "Pozycja",horizontal: "Pozycja w poziomie",vertical: "Pozycja w pionie",+ scope: "Pokazuj na",+ scopeNewChat: "Stronie nowego czatu",+ scopeChats: "Czatach",+ scopeAll: "Wszystkich stronach",positionValue: "Poziomo {x}%, pionowo {y}%",newChat: "Nowy czat",conversation: "Rozmowa",diff --git a/studio/frontend/src/i18n/locales/pt-br.ts b/studio/frontend/src/i18n/locales/pt-br.tsindex ae4ea7a5599..00d2a26b216 100644--- a/studio/frontend/src/i18n/locales/pt-br.ts+++ b/studio/frontend/src/i18n/locales/pt-br.ts@@ -35,6 +35,10 @@ export const ptBR = {position: "Posição",horizontal: "Posição horizontal",vertical: "Posição vertical",+ scope: "Mostrar em",+ scopeNewChat: "Página de novo chat",+ scopeChats: "Chats",+ scopeAll: "Todas as páginas",positionValue: "Horizontal {x}%, vertical {y}%",newChat: "Novo chat",conversation: "Conversa",diff --git a/studio/frontend/src/i18n/locales/ru.ts b/studio/frontend/src/i18n/locales/ru.tsindex 674876f2657..37ebb716ed9 100644--- a/studio/frontend/src/i18n/locales/ru.ts+++ b/studio/frontend/src/i18n/locales/ru.ts@@ -35,6 +35,10 @@ export const ru = {position: "Положение",horizontal: "Положение по горизонтали",vertical: "Положение по вертикали",+ scope: "Показывать",+ scopeNewChat: "На странице нового чата",+ scopeChats: "В чатах",+ scopeAll: "На всех страницах",positionValue: "По горизонтали {x}%, по вертикали {y}%",newChat: "Новый чат",conversation: "Переписка",diff --git a/studio/frontend/src/i18n/locales/sv.ts b/studio/frontend/src/i18n/locales/sv.tsindex 08dd59b5af1..0fde1ed3293 100644--- a/studio/frontend/src/i18n/locales/sv.ts+++ b/studio/frontend/src/i18n/locales/sv.ts@@ -32,6 +32,10 @@ export const sv = {position: "Position",horizontal: "Horisontell position",vertical: "Vertikal position",+ scope: "Visa på",+ scopeNewChat: "Sidan för ny chatt",+ scopeChats: "Chattar",+ scopeAll: "Alla sidor",positionValue: "Horisontellt {x} %, vertikalt {y} %",newChat: "Ny chatt",conversation: "Konversation",diff --git a/studio/frontend/src/i18n/locales/th.ts b/studio/frontend/src/i18n/locales/th.tsindex 99d7faeb056..4685031cedb 100644--- a/studio/frontend/src/i18n/locales/th.ts+++ b/studio/frontend/src/i18n/locales/th.ts@@ -35,6 +35,10 @@ export const th = {position: "ตำแหน่ง",horizontal: "ตำแหน่งแนวนอน",vertical: "ตำแหน่งแนวตั้ง",+ scope: "แสดงบน",+ scopeNewChat: "หน้าแชทใหม่",+ scopeChats: "แชท",+ scopeAll: "ทุกหน้า",positionValue: "แนวนอน {x}% แนวตั้ง {y}%",newChat: "แชทใหม่",conversation: "การสนทนา",diff --git a/studio/frontend/src/i18n/locales/tr.ts b/studio/frontend/src/i18n/locales/tr.tsindex 325c937037f..a1595db62f2 100644--- a/studio/frontend/src/i18n/locales/tr.ts+++ b/studio/frontend/src/i18n/locales/tr.ts@@ -35,6 +35,10 @@ export const tr = {position: "Konum",horizontal: "Yatay konum",vertical: "Dikey konum",+ scope: "Gösterileceği yer",+ scopeNewChat: "Yeni sohbet sayfası",+ scopeChats: "Sohbetler",+ scopeAll: "Tüm sayfalar",positionValue: "Yatay %{x}, dikey %{y}",newChat: "Yeni sohbet",conversation: "Sohbet",diff --git a/studio/frontend/src/i18n/locales/uk.ts b/studio/frontend/src/i18n/locales/uk.tsindex d1f7df52590..65623a95ea1 100644--- a/studio/frontend/src/i18n/locales/uk.ts+++ b/studio/frontend/src/i18n/locales/uk.ts@@ -35,6 +35,10 @@ export const uk = {position: "Позиція",horizontal: "Положення по горизонталі",vertical: "Положення по вертикалі",+ scope: "Показувати",+ scopeNewChat: "На сторінці нового чату",+ scopeChats: "У чатах",+ scopeAll: "На всіх сторінках",positionValue: "По горизонталі {x}%, по вертикалі {y}%",newChat: "Новий чат",conversation: "Розмова",diff --git a/studio/frontend/src/i18n/locales/vi.ts b/studio/frontend/src/i18n/locales/vi.tsindex 5052df7b602..7ed72e8b119 100644--- a/studio/frontend/src/i18n/locales/vi.ts+++ b/studio/frontend/src/i18n/locales/vi.ts@@ -35,6 +35,10 @@ export const vi = {position: "Vị trí",horizontal: "Vị trí ngang",vertical: "Vị trí dọc",+ scope: "Hiển thị trên",+ scopeNewChat: "Trang trò chuyện mới",+ scopeChats: "Trò chuyện",+ scopeAll: "Mọi trang",positionValue: "Ngang {x}%, dọc {y}%",newChat: "Cuộc trò chuyện mới",conversation: "Cuộc trò chuyện",diff --git a/studio/frontend/src/i18n/locales/zh-CN.ts b/studio/frontend/src/i18n/locales/zh-CN.tsindex 3ad73e4396d..f6916e5d873 100644--- a/studio/frontend/src/i18n/locales/zh-CN.ts+++ b/studio/frontend/src/i18n/locales/zh-CN.ts@@ -35,6 +35,10 @@ export const zhCN = {position: "位置",horizontal: "水平位置",vertical: "垂直位置",+ scope: "显示位置",+ scopeNewChat: "新聊天页面",+ scopeChats: "聊天",+ scopeAll: "所有页面",positionValue: "水平 {x}%,垂直 {y}%",newChat: "新聊天",conversation: "对话",diff --git a/studio/frontend/src/i18n/locales/zh-TW.ts b/studio/frontend/src/i18n/locales/zh-TW.tsindex c95beae4c2e..7fd06145c2b 100644--- a/studio/frontend/src/i18n/locales/zh-TW.ts+++ b/studio/frontend/src/i18n/locales/zh-TW.ts@@ -35,6 +35,10 @@ export const zhTW = {position: "位置",horizontal: "水平位置",vertical: "垂直位置",+ scope: "顯示位置",+ scopeNewChat: "新聊天頁面",+ scopeChats: "聊天",+ scopeAll: "所有頁面",positionValue: "水平 {x}%,垂直 {y}%",newChat: "新對話",conversation: "對話",diff --git a/studio/frontend/tests/chat-background.test.ts b/studio/frontend/tests/chat-background.test.tsindex 9b10f3374d9..4a99eeae522 100644--- a/studio/frontend/tests/chat-background.test.ts+++ b/studio/frontend/tests/chat-background.test.ts@@ -35,6 +35,10 @@ test("background preferences repair malformed persisted data", () => {assert.equal(sanitizeAdjustments({ position: "101% 0%" }).position, "50% 50%");assert.equal(sanitizeAdjustments({ sizing: "width" }).sizing, "width");assert.equal(sanitizeAdjustments({ sizing: "contain" }).sizing, "contain");+ assert.equal(sanitizeAdjustments({}).scope, "chats");+ assert.equal(sanitizeAdjustments({ scope: "all" }).scope, "all");+ assert.equal(sanitizeAdjustments({ scope: "newChat" }).scope, "newChat");+ assert.equal(sanitizeAdjustments({ scope: "everywhere" as never }).scope, "chats");assert.equal(sanitizeAdjustments({ sizing: "invalid" as never }).sizing, "cover");assert.equal(sanitizeAdjustments({ zoom: 500 }).zoom, 300);assert.equal(sanitizeAdjustments({ zoom: 0 }).zoom, 100);