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: Decision tab loads at once, System and settings polish, main-theme borders restored (#15919)
Michael Han4d345ab3157d
diff --git a/studio/backend/tests/test_decision_native.py b/studio/backend/tests/test_decision_native.pyindex 1e1baac297c..dd459326e2f 100644--- a/studio/backend/tests/test_decision_native.py+++ b/studio/backend/tests/test_decision_native.py@@ -8,6 +8,7 @@ import jsonimport osimport statimport sys+import threadingimport timefrom pathlib import Pathfrom types import SimpleNamespace@@ -1382,3 +1383,32 @@ def test_a_no_torch_install_asks_llama_cpp_for_gpus(monkeypatch, tmp_path, devic# A reinstalled build (new mtime) is probed again.os.utime(binary, ns = (0, 10**9))assert systemone_settings.gpu_available() is expected and len(calls) == 2+++def test_an_expired_llama_cpp_gpu_answer_is_served_while_it_refreshes(monkeypatch, tmp_path):+ from utils import systemone_settings++ binary = tmp_path / "llama-server"+ binary.write_bytes(b"x")+ key = (str(binary), os.stat(binary).st_mtime_ns)+ release = threading.Event()+ calls = []++ def slow_probe(*_):+ calls.append(1)+ release.wait(5)+ return []++ monkeypatch.setattr(native_worker, "resolve_binary", lambda: str(binary))+ monkeypatch.setattr(LlamaCppBackend, "_llama_server_env_for_binary", staticmethod(lambda _: {}))+ monkeypatch.setattr(LlamaCppBackend, "_enumerated_gpu_devices", staticmethod(slow_probe))+ monkeypatch.setattr(+ systemone_settings, "_LLAMA_GPU_CACHE", [(time.monotonic() - 120, key, True)]+ )+ assert systemone_settings._llama_cpp_has_gpu() is True+ assert systemone_settings._llama_cpp_has_gpu() is True+ release.set()+ assert systemone_settings._LLAMA_GPU_REFRESH.acquire(timeout = 5)+ systemone_settings._LLAMA_GPU_REFRESH.release()+ assert len(calls) == 1+ assert systemone_settings._llama_cpp_has_gpu() is Falsediff --git a/studio/backend/utils/systemone_settings.py b/studio/backend/utils/systemone_settings.pyindex 81eee0b343e..a50cf5a84e2 100644--- a/studio/backend/utils/systemone_settings.py+++ b/studio/backend/utils/systemone_settings.py@@ -7,6 +7,7 @@ from __future__ import annotationsimport osimport sys+import threadingimport timefrom typing import Any@@ -215,31 +216,45 @@ def gpu_available() -> bool:_LLAMA_GPU_CACHE: list = [] # [(monotonic time, (binary, mtime), answer)]+_LLAMA_GPU_REFRESH = threading.Lock()def _llama_cpp_has_gpu() -> bool:- """Without torch, asks llama-server for its GPUs; cached 60 s per binary path and mtime."""+ """Asks llama-server for its GPUs without torch; past 60 s, answers from cache and re-probes in the background."""try:- from core.inference.llama_cpp import LlamaCppBackendfrom core.systemone.native_worker import resolve_binarybinary = resolve_binary()if not binary:return Falsekey = (binary, os.stat(binary).st_mtime_ns)- if (- _LLAMA_GPU_CACHE- and _LLAMA_GPU_CACHE[0][1] == key- and time.monotonic() - _LLAMA_GPU_CACHE[0][0] < 60- ):- return _LLAMA_GPU_CACHE[0][2]- # The binary's own devices: a CPU-only build exposes none even with a GPU present.- answer = bool(- LlamaCppBackend._enumerated_gpu_devices(- binary, LlamaCppBackend._llama_server_env_for_binary(binary)- )- )+ if _LLAMA_GPU_CACHE and _LLAMA_GPU_CACHE[0][1] == key:+ checked, _, answer = _LLAMA_GPU_CACHE[0]+ if time.monotonic() - checked >= 60 and _LLAMA_GPU_REFRESH.acquire(blocking = False):+ threading.Thread(target = _refresh_llama_gpu, args = (binary, key), daemon = True).start()+ return answer+ return _probe_llama_gpu(binary, key)except Exception:return False+++def _probe_llama_gpu(binary: str, key: tuple) -> bool:+ from core.inference.llama_cpp import LlamaCppBackend++ # The binary's own devices: a CPU-only build exposes none even with a GPU present.+ answer = bool(+ LlamaCppBackend._enumerated_gpu_devices(+ binary, LlamaCppBackend._llama_server_env_for_binary(binary)+ )+ )_LLAMA_GPU_CACHE[:] = [(time.monotonic(), key, answer)]return answer+++def _refresh_llama_gpu(binary: str, key: tuple) -> None:+ try:+ _probe_llama_gpu(binary, key)+ except Exception:+ pass+ finally:+ _LLAMA_GPU_REFRESH.release()diff --git a/studio/frontend/src/components/assistant-ui/thread.tsx b/studio/frontend/src/components/assistant-ui/thread.tsxindex 4a2a50b078d..80378c564cb 100644--- a/studio/frontend/src/components/assistant-ui/thread.tsx+++ b/studio/frontend/src/components/assistant-ui/thread.tsx@@ -2,7 +2,7 @@// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0import { ChevronDownStandardIcon } from "@/lib/chevron-icons";-import { AiSpeechIcon } from "@/lib/hugeicons-derived";+import { AiSpeechIcon, FileSearchIcon } from "@/lib/hugeicons-derived";import { createPortal } from "react-dom";import {canQueueTextAttachment,@@ -432,7 +432,6 @@ import {Delete02Icon,Download01Icon,Edit03Icon,- FileSearchIcon,FolderAttachmentIcon,Folder01Icon,FolderAddIcon,@@ -2671,9 +2670,6 @@ const ThreadScrollToBottom: FC = () => {// unmounting would trip the hook's MutationObserver as a content change.const isAtBottom = useIsThreadAtBottom();const scrollToBottom = useScrollThreadToBottom();- const enabled = useChatPreferencesStore(- (state) => state.showScrollToBottomButton,- );return (<TooltipIconButtontooltip="Scroll to bottom"@@ -2681,7 +2677,7 @@ const ThreadScrollToBottom: FC = () => {onClick={() => scrollToBottom("auto")}className={cn("aui-thread-scroll-to-bottom pointer-events-auto rounded-full p-0 size-[calc(28px*var(--ui-space-scale,1))] bg-background shadow-[0_0_0_0.5px_rgb(0_0_0/0.15)] hover:bg-accent dark:shadow-[0_0_0_0.5px_rgb(255_255_255/0.2)] dark:bg-muted dark:hover:bg-accent",- (isAtBottom || !enabled) && "invisible pointer-events-none",+ isAtBottom && "invisible pointer-events-none",)}><ArrowDownIcondiff --git a/studio/frontend/src/components/media-header-actions.tsx b/studio/frontend/src/components/media-header-actions.tsxnew file mode 100644index 00000000000..d1c5a075088--- /dev/null+++ b/studio/frontend/src/components/media-header-actions.tsx@@ -0,0 +1,102 @@+// 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 { cn } from "@/lib/utils";+import { type ReactNode, useLayoutEffect, useRef, useState } from "react";++export const MEDIA_HEADER_TIGHT_ATTR = "data-media-header-tight";++function pickStep(need: (number | undefined)[], room: number): 0 | 1 | 2 {+ for (const step of [0, 1] as const) {+ const width = need[step];+ if (width === undefined || width <= room) {+ return step;+ }+ }+ return 2;+}++// Steps down as space runs short: pill off centre, then compact, then links hidden.+export function MediaHeaderActions({+ className,+ groupClassName,+ children,+}: {+ className?: string;+ groupClassName?: string;+ children: ReactNode;+}) {+ const slotRef = useRef<HTMLDivElement>(null);+ const groupRef = useRef<HTMLDivElement>(null);+ const need = useRef<(number | undefined)[]>([]);+ const [step, setStep] = useState<0 | 1 | 2>(0);+ const stepRef = useRef(step);+ stepRef.current = step;++ useLayoutEffect(() => {+ const slot = slotRef.current;+ const group = groupRef.current;+ const grid = slot?.parentElement;+ if (!(slot && group && grid)) {+ return;+ }+ grid.toggleAttribute(MEDIA_HEADER_TIGHT_ATTR, step > 0);+ }, [step]);++ useLayoutEffect(() => {+ const slot = slotRef.current;+ const group = groupRef.current;+ const grid = slot?.parentElement;+ if (!(slot && group && grid)) {+ return;+ }+ const centre = grid.querySelector<HTMLElement>(+ "[data-media-header-centre]",+ );+ const check = () => {+ const current = stepRef.current;+ if (current < 2 && group.offsetWidth > 0) {+ const style = getComputedStyle(slot);+ need.current[current] =+ (centre?.offsetWidth ?? 0) ++ group.scrollWidth ++ Number.parseFloat(style.paddingLeft) ++ Number.parseFloat(style.paddingRight);+ }+ const next = pickStep(need.current, grid.clientWidth);+ if (next !== current) {+ setStep(next);+ }+ };+ check();+ const observer = new ResizeObserver(check);+ observer.observe(grid);+ observer.observe(group);+ if (centre) {+ observer.observe(centre);+ }+ return () => observer.disconnect();+ }, []);++ return (+ <div+ ref={slotRef}+ className={cn(+ "pointer-events-none col-start-3 row-start-1 flex min-w-0 items-start justify-end overflow-hidden pl-3 pt-[var(--studio-chat-header-padding-top,11px)] @max-[40rem]:hidden",+ className,+ )}+ >+ <div+ ref={groupRef}+ data-fits={step < 2}+ className={cn(+ "pointer-events-auto flex shrink-0 items-center gap-1",+ groupClassName,+ step === 2 && "hidden",+ )}+ >+ {children}+ </div>+ </div>+ );+}diff --git a/studio/frontend/src/components/media-page-link.tsx b/studio/frontend/src/components/media-page-link.tsxindex dafd4d3b984..cd045eafae7 100644--- a/studio/frontend/src/components/media-page-link.tsx+++ b/studio/frontend/src/components/media-page-link.tsx@@ -79,7 +79,7 @@ export function MediaPageLink({/>{iconArrow && (<>- <span className="hidden min-w-0 truncate text-ui-13 font-medium @[50rem]:inline">+ <span className="hidden min-w-0 truncate text-ui-13 font-medium @[50rem]:inline [[data-media-header-tight]_&]:hidden">{label}</span><ArrowRightIcon className="size-3.5 shrink-0 opacity-60" />diff --git a/studio/frontend/src/features/audio/audio-page.tsx b/studio/frontend/src/features/audio/audio-page.tsxindex 7c8358cdc7d..72769e4b273 100644--- a/studio/frontend/src/features/audio/audio-page.tsx+++ b/studio/frontend/src/features/audio/audio-page.tsx@@ -6,6 +6,7 @@import { TestTubeOutlineIcon } from "@/lib/hugeicons-derived";import { SparklesIcon } from "@hugeicons/core-free-icons";import { HugeiconsIcon } from "@hugeicons/react";+import { MediaHeaderActions } from "@/components/media-header-actions";import { LibraryPageLink } from "@/components/media-page-link";import { useCallback, useEffect, useMemo, useRef, useState } from "react";@@ -1950,8 +1951,8 @@ export function AudioPage({/></div></div>- <div className="grid h-full min-w-0 grid-cols-[1fr_auto_auto] gap-2 @[50rem]:grid-cols-[1fr_auto_1fr] @[50rem]:gap-0">- <div className="pointer-events-auto col-start-2 justify-self-end pt-[var(--studio-chat-header-padding-top,11px)] @[50rem]:justify-self-center">+ <div className="grid h-full min-w-0 grid-cols-[minmax(0,1fr)_auto_minmax(max-content,1fr)]">+ <div data-media-header-centre className="pointer-events-auto col-start-2 justify-self-center pt-[var(--studio-chat-header-padding-top,11px)]">{workflowTab.createTrain ? (<PillTabsariaLabel="Page mode"@@ -1966,7 +1967,7 @@ export function AudioPage({void navigateSelf({ to: "/studio" });}}fit={true}- className="h-[calc(34px*var(--ui-space-scale,1))] [&>button]:h-[calc(34px*var(--ui-space-scale,1))] [&>button]:px-3 @[68rem]:[&>button]:px-11 @max-[30rem]:[&>button]:px-2.5 @max-[30rem]:[&>button>[data-pill-tab-label]]:sr-only"+ className="h-[calc(34px*var(--ui-space-scale,1))] [&>button]:h-[calc(34px*var(--ui-space-scale,1))] [&>button]:px-3 @[68rem]:[&>button]:px-11 [[data-media-header-tight]_&]:[&>button]:px-3 @max-[30rem]:[&>button]:px-2.5 @max-[30rem]:[&>button>[data-pill-tab-label]]:sr-only"tabs={[{value: "create",@@ -1989,21 +1990,19 @@ export function AudioPage({/>) : null}</div>- <div className="pointer-events-none col-start-3 flex min-w-0 items-start justify-end pr-2 pt-[var(--studio-chat-header-padding-top,11px)]">- <div className="pointer-events-auto flex min-w-0 items-center gap-2">- {connection || (mode === "transcribe" && transcribeConnection) ? null : (- <UseViaApiButton- workflow={pageWorkflow}- model={selectorValue ?? null}- />- )}- <LibraryPageLink- tab="audio"- labelClassName="hidden @[50rem]:inline"- arrowClassName="hidden @[50rem]:block"+ <MediaHeaderActions className="pr-2" groupClassName="gap-2">+ {connection || (mode === "transcribe" && transcribeConnection) ? null : (+ <UseViaApiButton+ workflow={pageWorkflow}+ model={selectorValue ?? null}/>- </div>- </div>+ )}+ <LibraryPageLink+ tab="audio"+ labelClassName="hidden @[50rem]:inline [[data-media-header-tight]_&]:hidden"+ arrowClassName="hidden @[50rem]:block [[data-media-header-tight]_&]:hidden"+ />+ </MediaHeaderActions></div></div>{/* Below 50rem the panes stack and the page scrolls as one column, as on Images and Video. */}diff --git a/studio/frontend/src/features/chat/chat-providers-dialog.tsx b/studio/frontend/src/features/chat/chat-providers-dialog.tsxindex 871dfdde122..b910b94a361 100644--- a/studio/frontend/src/features/chat/chat-providers-dialog.tsx+++ b/studio/frontend/src/features/chat/chat-providers-dialog.tsx@@ -2320,19 +2320,15 @@ export function ChatProvidersSettings({<section className="flex max-w-[calc(760px*var(--ui-space-scale,1))] flex-col gap-2"><div className="overflow-hidden rounded-xl border border-border/70 bg-muted/[0.12]">- <button- type="button"- onClick={openAddProvider}- className="group/add flex w-full items-center justify-between gap-3 border-border/60 border-b px-3 py-2.5 text-left text-sm font-medium text-muted-foreground transition-colors hover:bg-muted/35 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset"- >- <span className="flex min-w-0 items-center gap-2 rounded-full border border-border bg-background/50 px-3 py-1.5 transition-colors group-hover/add:border-control-accent/25 group-hover/add:text-control-accent">- <HugeiconsIcon icon={PlusSignIcon} className="size-4 shrink-0" />- <span>Add connection</span>- </span>+ <div className="flex w-full items-center justify-between gap-3 border-border/60 border-b px-3 py-2.5"><span className="shrink-0 text-xs tabular-nums text-muted-foreground/90">{providers.length} connections · {totalModels} models</span>- </button>+ <Button variant="dark" size="sm" onClick={openAddProvider}>+ <HugeiconsIcon icon={PlusSignIcon} data-icon="inline-start" />+ Add connection+ </Button>+ </div>{providers.length === 0 ? (<div className="px-3 py-4"><div className="flex min-w-0 flex-col gap-0.5">diff --git a/studio/frontend/src/features/chat/shared-composer.tsx b/studio/frontend/src/features/chat/shared-composer.tsxindex 76e8192d05e..3163053876d 100644--- a/studio/frontend/src/features/chat/shared-composer.tsx+++ b/studio/frontend/src/features/chat/shared-composer.tsx@@ -33,7 +33,7 @@ import {import { Button } from "@/components/ui/button";import { Spinner } from "@/components/ui/spinner";import { BulbIcon } from "@/lib/bulb-icon";-import { AiSpeechIcon } from "@/lib/hugeicons-derived";+import { AiSpeechIcon, FileSearchIcon } from "@/lib/hugeicons-derived";import { InternetGlyph } from "@/lib/internet-icon";import { MicIcon } from "@/lib/mic-icon";import { MenuTickIcon, Tick02Icon } from "@/lib/tick-icon";@@ -118,7 +118,6 @@ import {Bookmark02Icon,CodeIcon,Download01Icon,- FileSearchIcon,Folder01Icon,FolderAddIcon,Image03Icon,diff --git a/studio/frontend/src/features/chat/stores/chat-preferences-store.ts b/studio/frontend/src/features/chat/stores/chat-preferences-store.tsindex 100ede7b176..b4f2d3bb3bd 100644--- a/studio/frontend/src/features/chat/stores/chat-preferences-store.ts+++ b/studio/frontend/src/features/chat/stores/chat-preferences-store.ts@@ -66,8 +66,6 @@ export interface ChatPreferencesState {setPastedTextMinChars: (value: number) => void;autoScrollWhileGenerating: boolean;setAutoScrollWhileGenerating: (value: boolean) => void;- showScrollToBottomButton: boolean;- setShowScrollToBottomButton: (value: boolean) => void;notifyWhenReplyFinishes: boolean;setNotifyWhenReplyFinishes: (value: boolean) => void;filesPanelCollapsed: boolean;@@ -127,9 +125,6 @@ export const useChatPreferencesStore = create<ChatPreferencesState>()(autoScrollWhileGenerating: true,setAutoScrollWhileGenerating: (autoScrollWhileGenerating) =>set({ autoScrollWhileGenerating }),- showScrollToBottomButton: true,- setShowScrollToBottomButton: (showScrollToBottomButton) =>- set({ showScrollToBottomButton }),// Off by default: it asks for notification permission, so it stays opt in.notifyWhenReplyFinishes: false,setNotifyWhenReplyFinishes: (notifyWhenReplyFinishes) =>@@ -181,7 +176,6 @@ export const useChatPreferencesStore = create<ChatPreferencesState>()(saved?.pastedTextMinChars,),autoScrollWhileGenerating: saved?.autoScrollWhileGenerating ?? true,- showScrollToBottomButton: saved?.showScrollToBottomButton ?? true,notifyWhenReplyFinishes: saved?.notifyWhenReplyFinishes === true,filesPanelCollapsed: saved?.filesPanelCollapsed === true,};diff --git a/studio/frontend/src/features/images/images-page.tsx b/studio/frontend/src/features/images/images-page.tsxindex cda5c5b20a4..1255cfd7db2 100644--- a/studio/frontend/src/features/images/images-page.tsx+++ b/studio/frontend/src/features/images/images-page.tsx@@ -191,6 +191,7 @@ import {matchAspect,} from "@/components/media-size-controls";import { cn } from "@/lib/utils";+import { MediaHeaderActions } from "@/components/media-header-actions";import { isTauri } from "@/lib/api-base";import { BlobUrlCache } from "@/lib/blob-url-cache";import {@@ -5949,15 +5950,15 @@ export function ImagesPage({)}</div></div>- <div className="grid h-full min-w-0 grid-cols-[1fr_auto_auto] gap-2 @[50rem]:grid-cols-[1fr_auto_1fr] @[50rem]:gap-0">- <div className="pointer-events-auto col-start-2 justify-self-center pt-[var(--studio-chat-header-padding-top,11px)]">+ <div className="grid h-full min-w-0 grid-cols-[minmax(0,1fr)_auto_minmax(max-content,1fr)]">+ <div data-media-header-centre className="pointer-events-auto col-start-2 justify-self-center pt-[var(--studio-chat-header-padding-top,11px)]"><PillTabsdataTour="images-mode"ariaLabel="Page mode"value={pageMode}onValueChange={(v) => setPageMode(v as "create" | "train")}fit={true}- className="h-[calc(34px*var(--ui-space-scale,1))] [&>button]:h-[calc(34px*var(--ui-space-scale,1))] [&>button]:px-7 @[68rem]:[&>button]:px-14 @max-[30rem]:[&>button]:px-2.5 @max-[30rem]:[&>button>[data-pill-tab-label]]:sr-only"+ className="h-[calc(34px*var(--ui-space-scale,1))] [&>button]:h-[calc(34px*var(--ui-space-scale,1))] [&>button]:px-7 @[68rem]:[&>button]:px-14 [[data-media-header-tight]_&]:[&>button]:px-4 @max-[30rem]:[&>button]:px-2.5 @max-[30rem]:[&>button>[data-pill-tab-label]]:sr-only"tabs={[{ value: "create", label: "Create", icon: <HugeiconsIcon icon={SparklesIcon} className="size-3.5" /> },{ value: "train", label: "Train", icon: <HugeiconsIcon icon={TestTubeOutlineIcon} className="size-3.5" /> },@@ -5965,16 +5966,14 @@ export function ImagesPage({/></div>{/* The chat header's right inset. */}- <div className="pointer-events-none col-start-3 flex min-w-0 items-start justify-end pr-[calc(var(--thread-scrollbar-gutter,10px)+0.5rem*var(--ui-space-scale,1)+var(--studio-chat-header-right-inset,var(--studio-window-control-inset,0px)))] pt-[var(--studio-chat-header-padding-top,11px)]">- <div className="pointer-events-auto flex min-w-0 items-center gap-1">- <MediaApiButton- kind="images"- model={status?.loaded ? (status.repo_id ?? null) : null}- />- <LibraryPageLink tab="images" iconOnly={true} />- <SiblingMediaPageLink to="/video" />- </div>- </div>+ <MediaHeaderActions className="pr-[calc(var(--thread-scrollbar-gutter,10px)+0.5rem*var(--ui-space-scale,1)+var(--studio-chat-header-right-inset,var(--studio-window-control-inset,0px)))]">+ <MediaApiButton+ kind="images"+ model={status?.loaded ? (status.repo_id ?? null) : null}+ />+ <LibraryPageLink tab="images" iconOnly={true} />+ <SiblingMediaPageLink to="/video" />+ </MediaHeaderActions></div></div>{trainMounted && (diff --git a/studio/frontend/src/features/rag/components/knowledge-base-composer-button.tsx b/studio/frontend/src/features/rag/components/knowledge-base-composer-button.tsxindex 1e42141697c..d98d195eaa8 100644--- a/studio/frontend/src/features/rag/components/knowledge-base-composer-button.tsx+++ b/studio/frontend/src/features/rag/components/knowledge-base-composer-button.tsx@@ -4,7 +4,8 @@import { ChevronDownStandardIcon } from "@/lib/chevron-icons";import { Tick02Icon } from "@/lib/tick-icon";import { HugeiconsIcon } from "@hugeicons/react";-import { Cancel01Icon, FileSearchIcon } from "@hugeicons/core-free-icons";+import { FileSearchIcon } from "@/lib/hugeicons-derived";+import { Cancel01Icon } from "@hugeicons/core-free-icons";import { FileGlyph } from "@/lib/file-icon";import { useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";diff --git a/studio/frontend/src/features/rag/components/thread-documents-bar.tsx b/studio/frontend/src/features/rag/components/thread-documents-bar.tsxindex fe2367cc8c0..02e77f93175 100644--- a/studio/frontend/src/features/rag/components/thread-documents-bar.tsx+++ b/studio/frontend/src/features/rag/components/thread-documents-bar.tsx@@ -16,12 +16,12 @@ import {import { HugeiconsIcon } from "@hugeicons/react";import {AttachmentIcon,- FileSearchIcon,Folder02Icon,FolderAttachmentIcon,PlusSignIcon,Cancel01Icon,} from "@hugeicons/core-free-icons";+import { FileSearchIcon } from "@/lib/hugeicons-derived";import {AttachmentKindIcon,CARD_EDGE,diff --git a/studio/frontend/src/features/settings/components/decision-api-section.tsx b/studio/frontend/src/features/settings/components/decision-api-section.tsxindex e10e13aa67a..8f06aa00d33 100644--- a/studio/frontend/src/features/settings/components/decision-api-section.tsx+++ b/studio/frontend/src/features/settings/components/decision-api-section.tsx@@ -417,17 +417,25 @@ export function DecisionApiSection({) : null;if (!settings) {- return error ? (+ return (<sectiondata-settings-label={t("settings.apiKeys.decisionApi.title")}className="flex min-w-0 max-w-full flex-col gap-4">{header}<div>- {errorLine}+ {errorLine ?? (+ <p+ role="status"+ className="flex items-center gap-2 py-3 text-xs text-muted-foreground"+ >+ <Spinner />+ {t("settings.apiKeys.decisionApi.loading")}+ </p>+ )}</div></section>- ) : null;+ );}const current = settings.models.find((m) => m.name === settings.model);@@ -750,17 +758,18 @@ export function DecisionApiSection({{connections?.length === 0 && !settings.modelLocked ? (<p className="pb-3 text-xs text-muted-foreground">- {t("settings.apiKeys.decisionApi.addConnection")}{" "}+ {t("settings.apiKeys.decisionApi.addConnection")}<buttontype="button"- className="font-medium text-foreground underline underline-offset-2 hover:text-primary"+ className="text-foreground underline underline-offset-2 hover:text-primary"// openDialog, not setActiveTab: the API page shows this card with no dialog open.onClick={() =>useSettingsDialogStore.getState().openDialog("connections")}>- {t("settings.apiKeys.decisionApi.openConnections")}+ {t("settings.apiKeys.decisionApi.connectionsLink")}</button>+ {t("settings.apiKeys.decisionApi.addConnectionSuffix")}</p>) : null}</div>diff --git a/studio/frontend/src/features/settings/settings-dialog.tsx b/studio/frontend/src/features/settings/settings-dialog.tsxindex 29a1154da4e..15ff28c8ef7 100644--- a/studio/frontend/src/features/settings/settings-dialog.tsx+++ b/studio/frontend/src/features/settings/settings-dialog.tsx@@ -549,7 +549,7 @@ export function SettingsDialog() {)}</div>{results ? (- <div className="hover-scrollbar flex min-h-0 flex-1 flex-col gap-1 overflow-y-auto px-1 py-1 group-data-stacked/settings:hidden">+ <div className="hover-scrollbar -mr-2 flex min-h-0 flex-1 flex-col gap-1 overflow-y-auto py-1 pl-1 pr-0.5 group-data-stacked/settings:hidden">{results.length === 0 ? (<p className="px-3 py-2 text-sm text-muted-foreground">{t("settings.dialog.searchNoResults")}@@ -593,7 +593,7 @@ export function SettingsDialog() {onScroll={onRailScroll}className={cn(// A short window leaves the list taller than the clipped sidebar, so scroll it.- "hover-scrollbar settings-rail-fade flex min-h-0 flex-1 flex-col gap-0.5 overflow-y-auto px-1 py-1",+ "hover-scrollbar settings-rail-fade -mr-2 flex min-h-0 flex-1 flex-col gap-0.5 overflow-y-auto py-1 pl-1 pr-0.5 group-data-stacked/settings:mr-0",railFadeClass,"group-data-stacked/settings:flex-none group-data-stacked/settings:flex-row group-data-stacked/settings:overflow-x-auto group-data-stacked/settings:py-0",results !== null && "group-data-stacked/settings:flex hidden",diff --git a/studio/frontend/src/features/settings/settings-search.ts b/studio/frontend/src/features/settings/settings-search.tsindex 06cb2967cbd..fb5c1ca3c03 100644--- a/studio/frontend/src/features/settings/settings-search.ts+++ b/studio/frontend/src/features/settings/settings-search.ts@@ -132,7 +132,6 @@ export const SETTINGS_SEARCH_INDEX: Record<SettingsTab, TranslationKey[]> = {"settings.chat.toolResultLimit","settings.chat.firstTokenLabel","settings.chat.autoScroll",- "settings.chat.scrollToBottomButton","settings.chat.replyNotification","settings.profile.greetingSloth","settings.chat.thinking.visibility",@@ -465,7 +464,6 @@ export const SETTINGS_SEARCH_KEYWORDS: Partial<"settings.chat.tools.visibility": "settings.chat.visibilityKeywords","settings.chat.tools.foldIntoThinking": "settings.chat.visibilityKeywords","settings.chat.autoScroll": "settings.chat.autoScrollKeywords",- "settings.chat.scrollToBottomButton": "settings.chat.scrollToBottomButtonKeywords","settings.chat.replyNotification": "settings.chat.replyNotificationKeywords","settings.chat.showReplyTimes": "settings.chat.showReplyTimesKeywords","settings.chat.showGenerationDetails": "settings.chat.showGenerationDetailsKeywords",diff --git a/studio/frontend/src/features/settings/tabs/appearance-tab.tsx b/studio/frontend/src/features/settings/tabs/appearance-tab.tsxindex 932edc4ccb6..819551fa220 100644--- a/studio/frontend/src/features/settings/tabs/appearance-tab.tsx+++ b/studio/frontend/src/features/settings/tabs/appearance-tab.tsx@@ -162,14 +162,6 @@ export function AppearanceTab() {><FontSmoothingSwitch /></SettingsRow>- <SettingsRow- label={t("settings.appearance.layout.compactSidebar")}- description={t(- "settings.appearance.layout.compactSidebarDescription",- )}- >- <Switch checked={pinned} onCheckedChange={setPinned} />- </SettingsRow></SettingsSection><div ref={sidebarNavSectionRef} className="scroll-mt-4">@@ -177,6 +169,14 @@ export function AppearanceTab() {title={t("settings.appearance.sidebarNav.title")}description={t("settings.appearance.sidebarNav.description")}>+ <SettingsRow+ label={t("settings.appearance.layout.compactSidebar")}+ description={t(+ "settings.appearance.layout.compactSidebarDescription",+ )}+ >+ <Switch checked={pinned} onCheckedChange={setPinned} />+ </SettingsRow><div className="pt-3"><SidebarNavCustomizer /></div>diff --git a/studio/frontend/src/features/settings/tabs/chat-tab.tsx b/studio/frontend/src/features/settings/tabs/chat-tab.tsxindex 99a702d7c62..6025a841206 100644--- a/studio/frontend/src/features/settings/tabs/chat-tab.tsx+++ b/studio/frontend/src/features/settings/tabs/chat-tab.tsx@@ -35,13 +35,13 @@ import { cn } from "@/lib/utils";import {Bookmark02Icon,Download01Icon,- FileSearchIcon,Folder01Icon,LibrariesIcon,McpServerIcon,Scroll01Icon,Telescope02Icon,} from "@hugeicons/core-free-icons";+import { FileSearchIcon } from "@/lib/hugeicons-derived";import { HugeiconsIcon } from "@hugeicons/react";import { CursorInWindowIcon } from "@/lib/browser-use-icon";import { useNavigate } from "@tanstack/react-router";@@ -381,12 +381,6 @@ export function ChatTab() {const setAutoScrollWhileGenerating = useChatPreferencesStore((state) => state.setAutoScrollWhileGenerating,);- const showScrollToBottomButton = useChatPreferencesStore(- (state) => state.showScrollToBottomButton,- );- const setShowScrollToBottomButton = useChatPreferencesStore(- (state) => state.setShowScrollToBottomButton,- );const notifyWhenReplyFinishes = useChatPreferencesStore((state) => state.notifyWhenReplyFinishes,);@@ -600,16 +594,6 @@ export function ChatTab() {))}</div></SettingsRow>- <SettingsRow- label={t("settings.chat.scrollToBottomButton")}- description={t("settings.chat.scrollToBottomButtonDescription")}- >- <Switch- aria-label={t("settings.chat.scrollToBottomButton")}- checked={showScrollToBottomButton}- onCheckedChange={setShowScrollToBottomButton}- />- </SettingsRow><SettingsRowlabel={t("settings.chat.replyNotification")}description={t("settings.chat.replyNotificationDescription")}diff --git a/studio/frontend/src/features/settings/tabs/debugging-tab.tsx b/studio/frontend/src/features/settings/tabs/debugging-tab.tsxindex b8b2fa8eb25..6c1886a888d 100644--- a/studio/frontend/src/features/settings/tabs/debugging-tab.tsx+++ b/studio/frontend/src/features/settings/tabs/debugging-tab.tsx@@ -581,6 +581,15 @@ export function DebuggingTab() {return (<div className="settings-page">+ <header className="flex min-w-0 flex-col gap-1 pr-6">+ <h1 className="text-xl font-semibold font-heading">+ {t("settings.tabs.debugging")}+ </h1>+ <p className="text-xs text-muted-foreground">+ {t("settings.debugging.description")}+ </p>+ </header>+<SettingsSectiontitle={t("settings.debugging.logSection")}description={t("settings.debugging.sourceHint")}diff --git a/studio/frontend/src/features/settings/tabs/resources-tab.tsx b/studio/frontend/src/features/settings/tabs/resources-tab.tsxindex 4e8ae1f4bd3..16b6b469158 100644--- a/studio/frontend/src/features/settings/tabs/resources-tab.tsx+++ b/studio/frontend/src/features/settings/tabs/resources-tab.tsx@@ -73,7 +73,6 @@ import { useMonitorOverlayStore } from "../stores/monitor-overlay-store";import { useSettingsPanelPrefsStore } from "../stores/settings-panel-prefs-store";import { ArrowUpRight01Icon } from "@hugeicons/core-free-icons";import { HugeiconsIcon } from "@hugeicons/react";-import { LayersIcon } from "lucide-react";const POLL_MS = 3000;@@ -102,13 +101,6 @@ function usagePillClass(percent: number | null): string {return "bg-control-accent/10 text-control-accent";}-function usageValueClass(percent: number | null): string {- if (!isFiniteNumber(percent)) return "text-muted-foreground/70";- if (percent >= 90) return "text-[#df4530] dark:text-[#ef5b40]";- if (percent >= 70) return "text-amber-600 dark:text-amber-400";- return "text-foreground";-}-function formatGb(value: number | null | undefined): string {const safe = isFiniteNumber(value) ? Math.max(0, value) : 0;const digits = safe >= 10 ? 1 : 2;@@ -168,20 +160,18 @@ function MetricTile({const percentKnown = isFiniteNumber(percent);const safePercent = clampPercent(percent);return (- <div className="flex min-w-0 flex-col gap-3 rounded-xl border border-border/60 bg-card px-6 py-5 dark:border-transparent">+ <div className="flex min-w-0 flex-col gap-3 rounded-xl border border-border/60 bg-card px-6 pt-5 pb-6 dark:border-transparent"><div className="flex min-w-0 flex-col gap-0.5"><div className="flex min-w-0 items-center justify-between gap-3"><span className="text-ui-12 text-muted-foreground">{label}</span>- {showUsage ? (+ {showUsage && percentKnown ? (<spanclassName={cn(- "shrink-0 rounded-full px-2 py-1 font-mono text-ui-12 leading-none font-semibold tabular-nums",- percentKnown- ? usagePillClass(safePercent)- : "bg-muted text-muted-foreground",+ "-my-1 shrink-0 rounded-full px-2 py-1 font-mono text-ui-12 leading-none tabular-nums",+ usagePillClass(safePercent),)}>- {percentKnown ? formatPercent(safePercent) : "--"}+ {formatPercent(safePercent)}</span>) : null}</div>@@ -189,8 +179,8 @@ function MetricTile({title={value}className={cn("truncate font-mono text-ui-14 font-medium leading-tight tabular-nums",- showUsage- ? usageValueClass(percentKnown ? safePercent : null)+ showUsage && !percentKnown+ ? "text-muted-foreground/70": "text-foreground",)}>@@ -663,26 +653,15 @@ export function ResourcesTab() {</div>{/* Top edge on the h1's cap top (text-xl at leading 1.4; Hellix: 0.322em). */}<div className="mt-[calc(var(--text-xl)*0.322)] flex min-w-0 flex-wrap items-center gap-2">- <Button- variant={isOpen ? "secondary" : "outline"}- size="sm"- className="gap-1.5 h-8 text-xs rounded-full px-3"- onClick={() => setIsOpen(!isOpen)}- >- <LayersIcon className="size-3.5" />- {isOpen- ? t("settings.resources.disableOverlay")- : t("settings.resources.floatingWindow")}- </Button>-- <div className="flex h-8 shrink-0 items-center gap-2 rounded-full border border-border/60 px-2.5 text-xs font-medium text-foreground">+ <label className="flex h-9 shrink-0 items-center gap-2 rounded-full border border-border/60 px-3.5 text-xs font-medium text-foreground"><span>{t("settings.resources.liveUpdates")}</span><Switch+ className="scale-[0.88]"aria-label={t("settings.resources.liveUpdates")}checked={liveUpdates}onCheckedChange={setLiveUpdates}/>- </div>+ </label></div></header>@@ -799,40 +778,6 @@ export function ResourcesTab() {percent={metrics.vramUsageKnown ? metrics.vramPercent : null}/></div>- <SettingsRow- label={t("settings.resources.liveMonitor.detailedView")}- description={t(- "settings.resources.liveMonitor.detailedViewDescription",- )}- >- <Switch- aria-label={t("settings.resources.liveMonitor.detailedView")}- checked={showDetails}- onCheckedChange={setShowDetails}- />- </SettingsRow>- {showDetails && (- <div className="flex flex-wrap gap-x-5 gap-y-2 pb-3">- {MONITOR_DETAIL_METRICS.map((metric) => {- const label = t(`settings.resources.liveMonitor.${metric}`);- return (- <label- key={metric}- className="flex cursor-pointer items-center gap-2 text-xs font-medium text-foreground"- >- <Checkbox- checked={detailMetrics.has(metric)}- onCheckedChange={(checked) =>- setDetailMetric(metric, checked === true)- }- aria-label={label}- />- {label}- </label>- );- })}- </div>- )}</SettingsSection><SettingsSection title={t("settings.resources.gpu.title")}>@@ -1156,6 +1101,53 @@ export function ResourcesTab() {)}</SettingsSection>+ <SettingsSection title={t("settings.resources.floatingWindow")}>+ <SettingsRow+ label={t("settings.resources.showFloatingWindow")}+ description={t("settings.resources.showFloatingWindowDescription")}+ >+ <Switch+ aria-label={t("settings.resources.showFloatingWindow")}+ checked={isOpen}+ onCheckedChange={setIsOpen}+ />+ </SettingsRow>+ <SettingsRow+ label={t("settings.resources.liveMonitor.detailedView")}+ description={t(+ "settings.resources.liveMonitor.detailedViewDescription",+ )}+ >+ <Switch+ aria-label={t("settings.resources.liveMonitor.detailedView")}+ checked={showDetails}+ onCheckedChange={setShowDetails}+ />+ </SettingsRow>+ {showDetails && (+ <div className="flex flex-wrap gap-x-5 gap-y-2 pb-3">+ {MONITOR_DETAIL_METRICS.map((metric) => {+ const label = t(`settings.resources.liveMonitor.${metric}`);+ return (+ <label+ key={metric}+ className="flex cursor-pointer items-center gap-2 text-xs font-medium text-foreground"+ >+ <Checkbox+ checked={detailMetrics.has(metric)}+ onCheckedChange={(checked) =>+ setDetailMetric(metric, checked === true)+ }+ aria-label={label}+ />+ {label}+ </label>+ );+ })}+ </div>+ )}+ </SettingsSection>+<ModelMemorySection ref={modelMemoryRef} /><LlamaBackendSection />diff --git a/studio/frontend/src/features/studio/wizard/training-wizard.tsx b/studio/frontend/src/features/studio/wizard/training-wizard.tsxindex ff27a18e925..6259dd13dea 100644--- a/studio/frontend/src/features/studio/wizard/training-wizard.tsx+++ b/studio/frontend/src/features/studio/wizard/training-wizard.tsx@@ -36,7 +36,7 @@ import type { TrainingMethod } from "@/types/training";import {ChipIcon,Database02Icon,- PencilEdit02Icon,+ PencilEdit01Icon,Settings02Icon,} from "@hugeicons/core-free-icons";import type { ReactNode } from "react";@@ -389,7 +389,7 @@ export function TrainingWizard({<SectionBoxtitle={t("studio.wizard.configTitle")}description={t("studio.wizard.configDescription")}- icon={PencilEdit02Icon}+ icon={PencilEdit01Icon}chipTint="var(--chart-1)"><ConfigActions />diff --git a/studio/frontend/src/features/video/video-page.tsx b/studio/frontend/src/features/video/video-page.tsxindex 5b2630a1f7f..e72d71330bd 100644--- a/studio/frontend/src/features/video/video-page.tsx+++ b/studio/frontend/src/features/video/video-page.tsx@@ -177,6 +177,7 @@ import { formatBytes, formatEta } from "@/features/hub/lib/format";import { generatePhaseLabel, sameGenerateProgress } from "@/lib/media-generate-phase";import { useNavigate, useSearch } from "@tanstack/react-router";import { useStagedDownload } from "@/features/hub/download-manager";+import { MediaHeaderActions } from "@/components/media-header-actions";import { isTauri } from "@/lib/api-base";import { cn } from "@/lib/utils";import { useIsMobileShell } from "@/hooks/use-mobile";@@ -3834,7 +3835,7 @@ function VideoGenerator({)}</div></div>- <div className="grid h-full min-w-0 grid-cols-[1fr_auto_auto] gap-2 @[50rem]:grid-cols-[1fr_auto_1fr] @[50rem]:gap-0">+ <div className="grid h-full min-w-0 grid-cols-[minmax(0,1fr)_auto_minmax(max-content,1fr)]">{pageMode !== "train" && status?.loaded && (<div className="pointer-events-auto col-start-1 mt-[var(--studio-chat-header-padding-top,11px)] flex h-[var(--studio-chat-control-height,34px)] min-w-0 flex-wrap content-start gap-x-3 overflow-hidden pl-4 text-ui-11 leading-[var(--studio-chat-control-height,34px)]">{status.family && <StatusChip label="Family" value={status.family} />}@@ -3846,14 +3847,14 @@ function VideoGenerator({{status.speed_mode && <StatusChip label="Speed" value={status.speed_mode} />}</div>)}- <div className="pointer-events-auto col-start-2 row-start-1 justify-self-center pt-[var(--studio-chat-header-padding-top,11px)]">+ <div data-media-header-centre className="pointer-events-auto col-start-2 row-start-1 justify-self-center pt-[var(--studio-chat-header-padding-top,11px)]"><PillTabsdataTour="video-mode"ariaLabel="Page mode"value={pageMode}onValueChange={(v) => setPageMode(v as "create" | "train")}fit={true}- className="h-[calc(34px*var(--ui-space-scale,1))] [&>button]:h-[calc(34px*var(--ui-space-scale,1))] [&>button]:px-7 @[68rem]:[&>button]:px-14 @max-[30rem]:[&>button]:px-2.5 @max-[30rem]:[&>button>[data-pill-tab-label]]:sr-only"+ className="h-[calc(34px*var(--ui-space-scale,1))] [&>button]:h-[calc(34px*var(--ui-space-scale,1))] [&>button]:px-7 @[68rem]:[&>button]:px-14 [[data-media-header-tight]_&]:[&>button]:px-4 @max-[30rem]:[&>button]:px-2.5 @max-[30rem]:[&>button>[data-pill-tab-label]]:sr-only"tabs={[{ value: "create", label: "Create", icon: <HugeiconsIcon icon={SparklesIcon} className="size-3.5" /> },{ value: "train", label: "Train", icon: <HugeiconsIcon icon={TestTubeOutlineIcon} className="size-3.5" /> },@@ -3861,16 +3862,14 @@ function VideoGenerator({/></div>{/* The chat header's right inset. */}- <div className="pointer-events-none col-start-3 row-start-1 flex min-w-0 items-start justify-end pr-[calc(var(--thread-scrollbar-gutter,10px)+0.5rem*var(--ui-space-scale,1)+var(--studio-chat-header-right-inset,var(--studio-window-control-inset,0px)))] pt-[var(--studio-chat-header-padding-top,11px)]">- <div className="pointer-events-auto flex min-w-0 items-center gap-1">- <MediaApiButton- kind="video"- model={status?.loaded ? (status.repo_id ?? null) : null}- />- <LibraryPageLink tab="videos" iconOnly={true} />- <SiblingMediaPageLink to="/images" />- </div>- </div>+ <MediaHeaderActions className="pr-[calc(var(--thread-scrollbar-gutter,10px)+0.5rem*var(--ui-space-scale,1)+var(--studio-chat-header-right-inset,var(--studio-window-control-inset,0px)))]">+ <MediaApiButton+ kind="video"+ model={status?.loaded ? (status.repo_id ?? null) : null}+ />+ <LibraryPageLink tab="videos" iconOnly={true} />+ <SiblingMediaPageLink to="/images" />+ </MediaHeaderActions></div></div>diff --git a/studio/frontend/src/i18n/locales/ar.ts b/studio/frontend/src/i18n/locales/ar.tsindex 9df06237ca9..8e59fb62075 100644--- a/studio/frontend/src/i18n/locales/ar.ts+++ b/studio/frontend/src/i18n/locales/ar.ts@@ -1111,7 +1111,7 @@ export const ar = {lastVisited: "آخر ما تمت زيارته",},tabs: {- sandbox: "وضع الحماية",+ sandbox: "الأمان",accounts: "الحسابات",general: "عام",profile: "الملف الشخصي",@@ -1395,7 +1395,7 @@ export const ar = {},},sandbox: {- title: "وضع الحماية",+ title: "الأمان",description: "ما إذا كانت استدعاءات أدوات Python والطرفية تعمل داخل وضع حماية نظام التشغيل على هذا الكمبيوتر.",docs: "التوثيق",docsLabel: "فتح توثيق وضع الحماية",@@ -1471,6 +1471,7 @@ export const ar = {managedNote: "يُعدّ مالك خادم Unsloth هذا وضع حماية نظام التشغيل.",},debugging: {+ description: "اقرأ سجلات Unsloth دون مغادرة التطبيق.",logSection: "ملف السجل",source: "ملف السجل",sourceHint: "تكتب مشغّلات النماذج سجلاتها الخاصة، لذا غالبًا ما يكون سبب فشل التحميل أو التوليد موضّحًا فيها لا في سجل الخادم.",@@ -2355,7 +2356,8 @@ export const ar = {description: "راقب عتاد خادم Unsloth هذا ومساحة تخزينه.",liveUpdates: "التحديثات المباشرة",floatingWindow: "نافذة عائمة",- disableOverlay: "تعطيل التراكب",+ showFloatingWindow: "إظهار النافذة العائمة",+ showFloatingWindowDescription: "أبقِ استخدام المعالج والذاكرة ووحدة الرسوميات ظاهرًا فوق Unsloth.",liveMonitor: {title: "المراقبة المباشرة",apiTitle: "مراقبة API",@@ -2794,11 +2796,6 @@ export const ar = {autoScrollManual: "يدوي",autoScrollKeywords:"تمرير تلقائي متابعة أسفل قفز بث إنشاء تثبيت scroll autoscroll follow",- scrollToBottomButton: "زر التمرير إلى الأسفل",- scrollToBottomButtonDescription:- "إظهار زر للعودة إلى أحدث رسالة بعد التمرير لأعلى.",- scrollToBottomButtonKeywords:- "تمرير أسفل أحدث سهم زر إخفاء scroll bottom button",replyNotification: "الإشعار عند انتهاء الرد",replyNotificationDescription:"إظهار إشعار من النظام عند انتهاء الرد بينما يكون Unsloth مصغرًا أو في الخلفية.",@@ -3329,8 +3326,9 @@ export const ar = {loadError: "تعذّر تحميل إعدادات واجهة القرارات.",sendsTo: "تُرسَل الطلبات إلى {provider}.",connectionMissing: "هذا الاتصال لم يعد موجودًا أو لا يحتوي على نماذج قرارات. اختر نموذجًا آخر.",- addConnection: "لاستخدام نموذج قرارات مستضاف، أضف TypeSafe أو Liquid AI أو OpenRouter في الاتصالات.",- openConnections: "فتح الاتصالات",+ addConnection: "لاستخدام نموذج قرارات مستضاف، أضفه في ",+ connectionsLink: "الاتصالات",+ addConnectionSuffix: ".",},mcp: {title: "وصول الوكلاء (MCP)",diff --git a/studio/frontend/src/i18n/locales/de.ts b/studio/frontend/src/i18n/locales/de.tsindex ea608011648..141316d146a 100644--- a/studio/frontend/src/i18n/locales/de.ts+++ b/studio/frontend/src/i18n/locales/de.ts@@ -1117,7 +1117,7 @@ export const de = {lastVisited: "Zuletzt besucht",},tabs: {- sandbox: "Sandbox",+ sandbox: "Sicherheit",accounts: "Konten",general: "Allgemein",profile: "Profil",@@ -1401,7 +1401,7 @@ export const de = {},},sandbox: {- title: "Sandbox",+ title: "Sicherheit",description: "Ob Python- und Terminal-Tool-Aufrufe auf diesem Computer in einer OS-Sandbox laufen.",docs: "Dokumentation",docsLabel: "Sandbox-Dokumentation öffnen",@@ -1476,6 +1476,7 @@ export const de = {managedNote: "Der Besitzer dieses Unsloth-Servers richtet die OS-Sandbox ein.",},debugging: {+ description: "Lies die Unsloth-Logs, ohne die App zu verlassen.",logSection: "Protokolldatei",source: "Protokolldatei",sourceHint: "Die Modell-Runner schreiben eigene Protokolle. Ein fehlgeschlagener Ladevorgang oder eine fehlgeschlagene Generierung wird deshalb oft dort erklärt und nicht im Server-Protokoll.",@@ -2386,7 +2387,8 @@ export const de = {"Überwachen Sie Hardware und Speicher dieses Unsloth-Servers.",liveUpdates: "Live-Updates",floatingWindow: "Schwebendes Fenster",- disableOverlay: "Overlay deaktivieren",+ showFloatingWindow: "Schwebendes Fenster anzeigen",+ showFloatingWindowDescription: "Zeigt CPU-, RAM- und GPU-Auslastung dauerhaft über Unsloth an.",liveMonitor: {title: "Live-Monitor",apiTitle: "API-Monitor",@@ -2836,11 +2838,6 @@ export const de = {autoScrollManual: "Manuell",autoScrollKeywords:"scrollen automatisch mitscrollen folgen unten springen Streaming generieren Ansicht sperren scroll autoscroll follow",- scrollToBottomButton: "Schaltfläche „Nach unten scrollen“",- scrollToBottomButtonDescription:- "Eine Schaltfläche anzeigen, um nach dem Hochscrollen zur neuesten Nachricht zurückzuspringen.",- scrollToBottomButtonKeywords:- "scrollen unten springen neueste Pfeil Schaltfläche ausblenden scroll bottom button",replyNotification: "Benachrichtigen, wenn eine Antwort fertig ist",replyNotificationDescription:"Zeigt eine Systembenachrichtigung, wenn eine Antwort fertig ist, während Unsloth minimiert oder im Hintergrund ist.",@@ -3377,8 +3374,9 @@ export const de = {loadError: "Die Einstellungen der Entscheidungs-API konnten nicht geladen werden.",sendsTo: "Anfragen gehen an {provider}.",connectionMissing: "Diese Verbindung gibt es nicht mehr oder sie hat keine Entscheidungsmodelle. Wähle ein anderes Modell.",- addConnection: "Für ein gehostetes Entscheidungsmodell füge TypeSafe, Liquid AI oder OpenRouter unter Verbindungen hinzu.",- openConnections: "Verbindungen öffnen",+ addConnection: "Für ein gehostetes Entscheidungsmodell füge es unter ",+ connectionsLink: "Verbindungen",+ addConnectionSuffix: " hinzu.",},mcp: {title: "Agentenzugriff (MCP)",diff --git a/studio/frontend/src/i18n/locales/en.ts b/studio/frontend/src/i18n/locales/en.tsindex c2c6cb75960..135e9d59541 100644--- a/studio/frontend/src/i18n/locales/en.ts+++ b/studio/frontend/src/i18n/locales/en.ts@@ -1170,7 +1170,7 @@ export const en = {lastVisited: "Last visited",},tabs: {- sandbox: "Sandbox",+ sandbox: "Security",accounts: "Accounts",general: "General",profile: "Profile",@@ -1454,7 +1454,7 @@ export const en = {},},sandbox: {- title: "Sandbox",+ title: "Security",description: "Whether Python and Terminal tool calls run inside an OS sandbox on this computer.",docs: "Docs",docsLabel: "Open the sandbox docs",@@ -1529,6 +1529,7 @@ export const en = {managedNote: "The owner of this Unsloth server sets up the OS sandbox.",},debugging: {+ description: "Read the Unsloth logs without leaving the app.",logSection: "Log file",source: "Log file",sourceHint: "The model runners write their own logs, so a failed load or generation is often explained there rather than in the server log.",@@ -2419,7 +2420,8 @@ export const en = {description: "Monitor this Unsloth server's hardware and storage.",liveUpdates: "Live updates",floatingWindow: "Floating window",- disableOverlay: "Disable overlay",+ showFloatingWindow: "Show floating window",+ showFloatingWindowDescription: "Keep CPU, RAM and GPU usage on screen over Unsloth.",liveMonitor: {title: "Live monitor",apiTitle: "API monitor",@@ -2857,11 +2859,6 @@ export const en = {autoScrollManual: "Manual",autoScrollKeywords:"scroll autoscroll auto-scroll follow stick bottom jump streaming generating viewport lock hold auto manual",- scrollToBottomButton: "Scroll to bottom button",- scrollToBottomButtonDescription:- "Show a button to jump back to the latest message after you scroll up.",- scrollToBottomButtonKeywords:- "scroll bottom jump latest newest arrow down button floating hide show",replyNotification: "Notify when a reply finishes",replyNotificationDescription:"Show a system notification when a reply finishes while Unsloth is minimized or in the background.",@@ -3393,8 +3390,9 @@ export const en = {loadError: "Couldn't load Decision API settings.",sendsTo: "Requests are sent to {provider}.",connectionMissing: "This connection is gone or has no decision models. Pick another model.",- addConnection: "To use a cloud hosted decision model, add TypeSafe, OpenRouter etc. in Connections.",- openConnections: "Open Connections",+ addConnection: "To use a cloud hosted decision model, add one in ",+ connectionsLink: "Connections",+ addConnectionSuffix: ".",},mcp: {title: "Agent access (MCP)",diff --git a/studio/frontend/src/i18n/locales/es.ts b/studio/frontend/src/i18n/locales/es.tsindex c9f3a6dcb90..2a3f4a9cfae 100644--- a/studio/frontend/src/i18n/locales/es.ts+++ b/studio/frontend/src/i18n/locales/es.ts@@ -1116,7 +1116,7 @@ export const es = {lastVisited: "Última visitada",},tabs: {- sandbox: "Sandbox",+ sandbox: "Seguridad",accounts: "Cuentas",general: "General",profile: "Perfil",@@ -1400,7 +1400,7 @@ export const es = {},},sandbox: {- title: "Sandbox",+ title: "Seguridad",description: "Si las llamadas a herramientas de Python y Terminal se ejecutan dentro de un sandbox del sistema en este equipo.",docs: "Documentación",docsLabel: "Abrir la documentación del sandbox",@@ -1475,6 +1475,7 @@ export const es = {managedNote: "El propietario de este servidor de Unsloth configura el sandbox del sistema.",},debugging: {+ description: "Lee los registros de Unsloth sin salir de la aplicación.",logSection: "Archivo de registro",source: "Archivo de registro",sourceHint: "Los ejecutores de modelos escriben sus propios registros, así que un fallo al cargar o al generar suele explicarse ahí y no en el registro del servidor.",@@ -2381,7 +2382,8 @@ export const es = {"Monitorea el hardware y el almacenamiento de este servidor de Unsloth.",liveUpdates: "Actualizaciones en vivo",floatingWindow: "Ventana flotante",- disableOverlay: "Desactivar superposición",+ showFloatingWindow: "Mostrar ventana flotante",+ showFloatingWindowDescription: "Mantén a la vista el uso de CPU, RAM y GPU sobre Unsloth.",liveMonitor: {title: "Monitor en vivo",apiTitle: "Monitor de API",@@ -2827,11 +2829,6 @@ export const es = {autoScrollManual: "Manual",autoScrollKeywords:"desplazamiento desplazar automático seguir abajo saltar transmisión generar vista bloquear scroll autoscroll follow",- scrollToBottomButton: "Botón para ir al final",- scrollToBottomButtonDescription:- "Muestra un botón para volver al último mensaje después de desplazarte hacia arriba.",- scrollToBottomButtonKeywords:- "desplazar final abajo saltar último flecha botón ocultar scroll bottom button",replyNotification: "Avisar cuando termine una respuesta",replyNotificationDescription:"Muestra una notificación del sistema cuando termina una respuesta mientras Unsloth está minimizado o en segundo plano.",@@ -3370,8 +3367,9 @@ export const es = {loadError: "No se pudieron cargar los ajustes de la API de decisiones.",sendsTo: "Las solicitudes se envían a {provider}.",connectionMissing: "Esta conexión ya no existe o no tiene modelos de decisiones. Elige otro modelo.",- addConnection: "Para usar un modelo de decisiones alojado, añade TypeSafe, Liquid AI u OpenRouter en Conexiones.",- openConnections: "Abrir Conexiones",+ addConnection: "Para usar un modelo de decisiones alojado, añádelo en ",+ connectionsLink: "Conexiones",+ addConnectionSuffix: ".",},mcp: {title: "Acceso de agentes (MCP)",diff --git a/studio/frontend/src/i18n/locales/fr.ts b/studio/frontend/src/i18n/locales/fr.tsindex 99f5b624202..be42370c427 100644--- a/studio/frontend/src/i18n/locales/fr.ts+++ b/studio/frontend/src/i18n/locales/fr.ts@@ -1117,7 +1117,7 @@ export const fr = {lastVisited: "Dernier visité",},tabs: {- sandbox: "Sandbox",+ sandbox: "Sécurité",accounts: "Comptes",general: "Général",profile: "Profil",@@ -1401,7 +1401,7 @@ export const fr = {},},sandbox: {- title: "Sandbox",+ title: "Sécurité",description: "Indique si les appels d'outils Python et Terminal s'exécutent dans un bac à sable du système sur cet ordinateur.",docs: "Documentation",docsLabel: "Ouvrir la documentation du sandbox",@@ -1476,6 +1476,7 @@ export const fr = {managedNote: "Le propriétaire de ce serveur Unsloth configure le bac à sable du système.",},debugging: {+ description: "Consultez les journaux d'Unsloth sans quitter l'application.",logSection: "Fichier journal",source: "Fichier journal",sourceHint: "Les exécuteurs de modèles écrivent leurs propres journaux : un chargement ou une génération en échec y est donc souvent expliqué plutôt que dans le journal du serveur.",@@ -2385,7 +2386,8 @@ export const fr = {"Surveillez le matériel et le stockage de ce serveur Unsloth.",liveUpdates: "Mises à jour en direct",floatingWindow: "Fenêtre flottante",- disableOverlay: "Désactiver la superposition",+ showFloatingWindow: "Afficher la fenêtre flottante",+ showFloatingWindowDescription: "Garde l'utilisation du CPU, de la RAM et du GPU visible par-dessus Unsloth.",liveMonitor: {title: "Moniteur en direct",apiTitle: "Moniteur d’API",@@ -2833,11 +2835,6 @@ export const fr = {autoScrollManual: "Manuel",autoScrollKeywords:"défilement défiler automatique suivre bas sauter diffusion génération vue verrouiller scroll autoscroll follow",- scrollToBottomButton: "Bouton « Défiler vers le bas »",- scrollToBottomButtonDescription:- "Afficher un bouton pour revenir au dernier message après avoir fait défiler vers le haut.",- scrollToBottomButtonKeywords:- "défiler bas sauter dernier flèche bouton masquer scroll bottom button",replyNotification: "Notifier quand une réponse est terminée",replyNotificationDescription:"Affiche une notification système quand une réponse se termine alors qu'Unsloth est réduit ou en arrière-plan.",@@ -3378,8 +3375,9 @@ export const fr = {loadError: "Impossible de charger les réglages de l'API de décision.",sendsTo: "Les requêtes sont envoyées à {provider}.",connectionMissing: "Cette connexion n'existe plus ou n'a pas de modèle de décision. Choisissez un autre modèle.",- addConnection: "Pour utiliser un modèle de décision hébergé, ajoutez TypeSafe, Liquid AI ou OpenRouter dans Connexions.",- openConnections: "Ouvrir Connexions",+ addConnection: "Pour utiliser un modèle de décision hébergé, ajoutez-le dans ",+ connectionsLink: "Connexions",+ addConnectionSuffix: ".",},mcp: {title: "Accès des agents (MCP)",diff --git a/studio/frontend/src/i18n/locales/he.ts b/studio/frontend/src/i18n/locales/he.tsindex cf818137817..8aa52d20452 100644--- a/studio/frontend/src/i18n/locales/he.ts+++ b/studio/frontend/src/i18n/locales/he.ts@@ -1209,7 +1209,7 @@ export const he = {lastVisited: "ביקור אחרון",},tabs: {- sandbox: "ארגז חול",+ sandbox: "אבטחה",accounts: "חשבונות",general: "כללי",profile: "פרופיל",@@ -1494,7 +1494,7 @@ export const he = {},},sandbox: {- title: "ארגז חול",+ title: "אבטחה",description:"האם קריאות לכלי Python ו-Terminal רצות בתוך ארגז חול של מערכת ההפעלה במחשב זה.",docs: "תיעוד",@@ -1584,6 +1584,7 @@ export const he = {"הבעלים של שרת Unsloth זה מגדיר את ארגז החול של מערכת ההפעלה.",},debugging: {+ description: "קרא את יומני Unsloth בלי לצאת מהאפליקציה.",logSection: "קובץ יומן",source: "קובץ יומן",sourceHint:@@ -2457,7 +2458,8 @@ export const he = {description: "עקוב אחר החומרה והאחסון של שרת Unsloth זה.",liveUpdates: "עדכונים בזמן אמת",floatingWindow: "חלון צף",- disableOverlay: "השבת שכבת תצוגה",+ showFloatingWindow: "הצג חלון צף",+ showFloatingWindowDescription: "השאר את השימוש ב-CPU, ב-RAM וב-GPU גלוי מעל Unsloth.",liveMonitor: {title: "מוניטור חי",apiTitle: "מוניטור API",@@ -2923,11 +2925,6 @@ export const he = {autoScrollManual: "ידני",autoScrollKeywords:"scroll autoscroll auto-scroll follow stick bottom jump streaming generating viewport lock hold auto manual גלילה אוטומטי ידני",- scrollToBottomButton: "לחצן גלילה לתחתית",- scrollToBottomButtonDescription:- "הצג לחצן לקפיצה חזרה להודעה האחרונה לאחר גלילה למעלה.",- scrollToBottomButtonKeywords:- "scroll bottom jump latest newest arrow down button floating hide show גלילה תחתית לחצן חץ",replyNotification: "התראה כשתשובה מסתיימת",replyNotificationDescription:"הצגת התראת מערכת כשתשובה מסתיימת בזמן ש-Unsloth ממוזער או ברקע.",@@ -3465,9 +3462,9 @@ export const he = {sendsTo: "הבקשות נשלחות אל {provider}.",connectionMissing:"החיבור הזה אינו קיים עוד או שאין בו מודלי החלטות. בחר מודל אחר.",- addConnection:- "כדי להשתמש במודל החלטות מתארח, הוסף את TypeSafe, Liquid AI או OpenRouter ב'חיבורים'.",- openConnections: "פתח את 'חיבורים'",+ addConnection: "כדי להשתמש במודל החלטות מתארח, הוסף אותו במסך ",+ connectionsLink: "חיבורים",+ addConnectionSuffix: ".",},mcp: {title: "גישת סוכנים (MCP)",diff --git a/studio/frontend/src/i18n/locales/hi.ts b/studio/frontend/src/i18n/locales/hi.tsindex a2a51889947..645287819eb 100644--- a/studio/frontend/src/i18n/locales/hi.ts+++ b/studio/frontend/src/i18n/locales/hi.ts@@ -1115,7 +1115,7 @@ export const hi = {lastVisited: "पिछली बार देखा गया",},tabs: {- sandbox: "सैंडबॉक्स",+ sandbox: "सुरक्षा",accounts: "खाते",general: "सामान्य",profile: "प्रोफ़ाइल",@@ -1399,7 +1399,7 @@ export const hi = {},},sandbox: {- title: "सैंडबॉक्स",+ title: "सुरक्षा",description: "क्या इस कंप्यूटर पर Python और टर्मिनल टूल कॉल OS सैंडबॉक्स के अंदर चलती हैं।",docs: "दस्तावेज़",docsLabel: "सैंडबॉक्स दस्तावेज़ खोलें",@@ -1475,6 +1475,7 @@ export const hi = {managedNote: "OS सैंडबॉक्स इस Unsloth सर्वर का स्वामी सेट अप करता है।",},debugging: {+ description: "ऐप छोड़े बिना Unsloth के लॉग पढ़ें।",logSection: "लॉग फ़ाइल",source: "लॉग फ़ाइल",sourceHint: "मॉडल रनर अपने अलग लॉग लिखते हैं, इसलिए लोड या जनरेशन विफल होने का कारण अक्सर सर्वर लॉग के बजाय वहीं मिलता है।",@@ -2361,7 +2362,8 @@ export const hi = {description: "इस Unsloth सर्वर के हार्डवेयर और स्टोरेज की निगरानी करें।",liveUpdates: "लाइव अपडेट",floatingWindow: "फ्लोटिंग विंडो",- disableOverlay: "ओवरले अक्षम करें",+ showFloatingWindow: "फ्लोटिंग विंडो दिखाएँ",+ showFloatingWindowDescription: "CPU, RAM और GPU का उपयोग Unsloth के ऊपर दिखता रहे।",liveMonitor: {title: "लाइव मॉनिटर",apiTitle: "API मॉनिटर",@@ -2803,11 +2805,6 @@ export const hi = {autoScrollManual: "मैन्युअल",autoScrollKeywords:"स्क्रॉल ऑटो-स्क्रॉल फ़ॉलो नीचे स्ट्रीमिंग जनरेट लॉक scroll autoscroll follow",- scrollToBottomButton: "नीचे स्क्रॉल करने का बटन",- scrollToBottomButtonDescription:- "ऊपर स्क्रॉल करने के बाद नवीनतम संदेश पर वापस जाने के लिए बटन दिखाएँ।",- scrollToBottomButtonKeywords:- "स्क्रॉल नीचे नवीनतम तीर बटन छिपाएँ scroll bottom button",replyNotification: "जवाब पूरा होने पर सूचना दें",replyNotificationDescription:"जब Unsloth छोटा किया हुआ हो या बैकग्राउंड में हो, तब जवाब पूरा होने पर सिस्टम सूचना दिखाएँ।",@@ -3338,8 +3335,9 @@ export const hi = {loadError: "निर्णय API की सेटिंग्स लोड नहीं हो सकीं।",sendsTo: "अनुरोध {provider} को भेजे जाते हैं।",connectionMissing: "यह कनेक्शन अब मौजूद नहीं है या इसमें कोई निर्णय मॉडल नहीं है। कोई दूसरा मॉडल चुनें।",- addConnection: "होस्ट किया गया निर्णय मॉडल इस्तेमाल करने के लिए कनेक्शन में TypeSafe, Liquid AI या OpenRouter जोड़ें।",- openConnections: "कनेक्शन खोलें",+ addConnection: "होस्ट किया गया निर्णय मॉडल इस्तेमाल करने के लिए उसे ",+ connectionsLink: "कनेक्शन",+ addConnectionSuffix: " में जोड़ें।",},mcp: {title: "एजेंट एक्सेस (MCP)",diff --git a/studio/frontend/src/i18n/locales/it.ts b/studio/frontend/src/i18n/locales/it.tsindex 96578da778c..ba85818d277 100644--- a/studio/frontend/src/i18n/locales/it.ts+++ b/studio/frontend/src/i18n/locales/it.ts@@ -986,7 +986,7 @@ export const it = {lastVisited: "Ultima visitata",},tabs: {- sandbox: "Sandbox",+ sandbox: "Sicurezza",accounts: "Account",general: "Generali",profile: "Profilo",@@ -1270,7 +1270,7 @@ export const it = {},},sandbox: {- title: "Sandbox",+ title: "Sicurezza",description: "Indica se le chiamate agli strumenti Python e Terminale vengono eseguite in una sandbox del sistema su questo computer.",docs: "Documentazione",docsLabel: "Apri la documentazione della sandbox",@@ -1345,6 +1345,7 @@ export const it = {managedNote: "Il proprietario di questo server Unsloth configura la sandbox del sistema.",},debugging: {+ description: "Leggi i log di Unsloth senza uscire dall'app.",logSection: "File di log",source: "File di log",sourceHint: "I runner dei modelli scrivono i propri log, quindi un caricamento o una generazione non riusciti sono spesso spiegati lì anziché nel log del server.",@@ -2258,7 +2259,8 @@ export const it = {"Monitora hardware e archiviazione di questo server Unsloth.",liveUpdates: "Aggiornamenti in tempo reale",floatingWindow: "Finestra mobile",- disableOverlay: "Disattiva la sovrapposizione",+ showFloatingWindow: "Mostra finestra mobile",+ showFloatingWindowDescription: "Mantieni visibile l'uso di CPU, RAM e GPU sopra Unsloth.",liveMonitor: {title: "Monitor in tempo reale",apiTitle: "Monitor API",@@ -2706,11 +2708,6 @@ export const it = {autoScrollManual: "Manuale",autoScrollKeywords:"scorrimento scorrere automatico seguire fondo saltare streaming generazione vista bloccare scroll autoscroll follow",- scrollToBottomButton: "Pulsante per scorrere in fondo",- scrollToBottomButtonDescription:- "Mostra un pulsante per tornare all'ultimo messaggio dopo aver scorso verso l'alto.",- scrollToBottomButtonKeywords:- "scorrere fondo saltare ultimo freccia pulsante nascondere scroll bottom button",replyNotification: "Avvisa quando una risposta è finita",replyNotificationDescription:"Mostra una notifica di sistema quando una risposta finisce mentre Unsloth è ridotto a icona o in background.",@@ -3248,8 +3245,9 @@ export const it = {loadError: "Impossibile caricare le impostazioni dell'API decisionale.",sendsTo: "Le richieste vengono inviate a {provider}.",connectionMissing: "Questa connessione non esiste più o non ha modelli decisionali. Scegli un altro modello.",- addConnection: "Per usare un modello decisionale ospitato, aggiungi TypeSafe, Liquid AI o OpenRouter in Connessioni.",- openConnections: "Apri Connessioni",+ addConnection: "Per usare un modello decisionale ospitato, aggiungilo in ",+ connectionsLink: "Connessioni",+ addConnectionSuffix: ".",},mcp: {title: "Accesso degli agenti (MCP)",diff --git a/studio/frontend/src/i18n/locales/ja.ts b/studio/frontend/src/i18n/locales/ja.tsindex 57f3052b97b..68b02448591 100644--- a/studio/frontend/src/i18n/locales/ja.ts+++ b/studio/frontend/src/i18n/locales/ja.ts@@ -1112,7 +1112,7 @@ export const ja = {lastVisited: "前回開いたタブ",},tabs: {- sandbox: "サンドボックス",+ sandbox: "セキュリティ",accounts: "アカウント",general: "一般",profile: "プロフィール",@@ -1396,7 +1396,7 @@ export const ja = {},},sandbox: {- title: "サンドボックス",+ title: "セキュリティ",description: "このコンピューターで Python とターミナルのツール呼び出しを OS サンドボックス内で実行するかどうか。",docs: "ドキュメント",docsLabel: "サンドボックスのドキュメントを開く",@@ -1472,6 +1472,7 @@ export const ja = {managedNote: "OS サンドボックスは、この Unsloth サーバーの所有者が設定します。",},debugging: {+ description: "アプリを離れずに Unsloth のログを確認できます。",logSection: "ログファイル",source: "ログファイル",sourceHint: "モデルランナーはそれぞれ独自のログを書き出すため、読み込みや生成の失敗の理由は、サーバーログではなくそちらに記録されていることがよくあります。",@@ -2334,7 +2335,8 @@ export const ja = {description: "この Unsloth サーバーのハードウェアとストレージを監視します。",liveUpdates: "リアルタイム更新",floatingWindow: "フローティングウィンドウ",- disableOverlay: "オーバーレイを無効化",+ showFloatingWindow: "フローティングウィンドウを表示",+ showFloatingWindowDescription: "CPU・RAM・GPU の使用状況を Unsloth の上に表示し続けます。",liveMonitor: {title: "リアルタイムモニター",apiTitle: "API モニター",@@ -2779,11 +2781,6 @@ export const ja = {autoScrollManual: "手動",autoScrollKeywords:"スクロール 自動スクロール 追従 下 ジャンプ ストリーミング 生成 固定 scroll autoscroll follow",- scrollToBottomButton: "一番下へスクロールボタン",- scrollToBottomButtonDescription:- "上にスクロールしたときに、最新のメッセージへ戻るボタンを表示します。",- scrollToBottomButtonKeywords:- "スクロール 一番下 最新 矢印 ボタン 非表示 scroll bottom button",replyNotification: "応答完了時に通知",replyNotificationDescription:"Unsloth が最小化またはバックグラウンドにあるときに応答が完了すると、システム通知を表示します。",@@ -3300,8 +3297,9 @@ export const ja = {loadError: "判定 API の設定を読み込めませんでした。",sendsTo: "リクエストは {provider} に送信されます。",connectionMissing: "この接続は存在しないか、判定モデルがありません。別のモデルを選んでください。",- addConnection: "ホスト型の判定モデルを使うには、接続で TypeSafe、Liquid AI、OpenRouter のいずれかを追加してください。",- openConnections: "接続を開く",+ addConnection: "ホスト型の判定モデルを使うには、",+ connectionsLink: "接続",+ addConnectionSuffix: "で追加してください。",},mcp: {title: "エージェントアクセス (MCP)",diff --git a/studio/frontend/src/i18n/locales/ko.ts b/studio/frontend/src/i18n/locales/ko.tsindex 811803e9ea2..7a67512db4b 100644--- a/studio/frontend/src/i18n/locales/ko.ts+++ b/studio/frontend/src/i18n/locales/ko.ts@@ -1110,7 +1110,7 @@ export const ko = {lastVisited: "마지막으로 본 탭",},tabs: {- sandbox: "샌드박스",+ sandbox: "보안",accounts: "계정",general: "일반",profile: "프로필",@@ -1394,7 +1394,7 @@ export const ko = {},},sandbox: {- title: "샌드박스",+ title: "보안",description: "이 컴퓨터에서 Python 및 터미널 도구 호출을 OS 샌드박스 안에서 실행할지 여부입니다.",docs: "문서",docsLabel: "샌드박스 문서 열기",@@ -1470,6 +1470,7 @@ export const ko = {managedNote: "OS 샌드박스는 이 Unsloth 서버의 소유자가 설정합니다.",},debugging: {+ description: "앱을 벗어나지 않고 Unsloth 로그를 확인하세요.",logSection: "로그 파일",source: "로그 파일",sourceHint: "모델 실행기는 별도의 로그를 기록하므로, 모델 로드나 생성 실패 원인은 서버 로그보다 해당 로그에서 확인되는 경우가 많습니다.",@@ -2348,7 +2349,8 @@ export const ko = {description: "이 Unsloth 서버의 하드웨어와 저장소를 모니터링합니다.",liveUpdates: "실시간 업데이트",floatingWindow: "플로팅 창",- disableOverlay: "오버레이 비활성화",+ showFloatingWindow: "플로팅 창 표시",+ showFloatingWindowDescription: "Unsloth 위에 CPU, RAM, GPU 사용량을 계속 표시합니다.",liveMonitor: {title: "실시간 모니터",apiTitle: "API 모니터",@@ -2786,11 +2788,6 @@ export const ko = {autoScrollManual: "수동",autoScrollKeywords:"스크롤 자동 스크롤 따라가기 아래 이동 스트리밍 생성 고정 scroll autoscroll follow",- scrollToBottomButton: "맨 아래로 스크롤 버튼",- scrollToBottomButtonDescription:- "위로 스크롤한 뒤 최신 메시지로 돌아가는 버튼을 표시합니다.",- scrollToBottomButtonKeywords:- "스크롤 맨 아래 최신 화살표 버튼 숨기기 scroll bottom button",replyNotification: "응답이 끝나면 알림",replyNotificationDescription:"Unsloth가 최소화되었거나 백그라운드에 있을 때 응답이 끝나면 시스템 알림을 표시합니다.",@@ -3318,8 +3315,9 @@ export const ko = {loadError: "판단 API 설정을 불러오지 못했습니다.",sendsTo: "요청은 {provider}(으)로 전송됩니다.",connectionMissing: "이 연결이 없거나 판단 모델이 없습니다. 다른 모델을 선택하세요.",- addConnection: "호스팅된 판단 모델을 사용하려면 연결에서 TypeSafe, Liquid AI 또는 OpenRouter를 추가하세요.",- openConnections: "연결 열기",+ addConnection: "호스팅된 판단 모델을 사용하려면 ",+ connectionsLink: "연결",+ addConnectionSuffix: "에서 추가하세요.",},mcp: {title: "에이전트 액세스 (MCP)",diff --git a/studio/frontend/src/i18n/locales/pt-br.ts b/studio/frontend/src/i18n/locales/pt-br.tsindex babf7ab8aff..7406c1a9421 100644--- a/studio/frontend/src/i18n/locales/pt-br.ts+++ b/studio/frontend/src/i18n/locales/pt-br.ts@@ -1115,7 +1115,7 @@ export const ptBR = {lastVisited: "Última visitada",},tabs: {- sandbox: "Sandbox",+ sandbox: "Segurança",accounts: "Contas",general: "Geral",profile: "Perfil",@@ -1399,7 +1399,7 @@ export const ptBR = {},},sandbox: {- title: "Sandbox",+ title: "Segurança",description: "Indica se as chamadas de ferramentas de Python e Terminal rodam dentro de um sandbox do sistema neste computador.",docs: "Documentação",docsLabel: "Abrir a documentação do sandbox",@@ -1474,6 +1474,7 @@ export const ptBR = {managedNote: "O proprietário deste servidor Unsloth configura o sandbox do sistema.",},debugging: {+ description: "Leia os logs do Unsloth sem sair do app.",logSection: "Arquivo de log",source: "Arquivo de log",sourceHint: "Os executores de modelos gravam os próprios logs, então uma falha ao carregar ou ao gerar costuma ser explicada ali, e não no log do servidor.",@@ -2370,7 +2371,8 @@ export const ptBR = {description: "Monitore o hardware e o armazenamento deste servidor Unsloth.",liveUpdates: "Atualizações ao vivo",floatingWindow: "Janela flutuante",- disableOverlay: "Desativar sobreposição",+ showFloatingWindow: "Mostrar janela flutuante",+ showFloatingWindowDescription: "Mantém o uso de CPU, RAM e GPU visível sobre o Unsloth.",liveMonitor: {title: "Monitor ao vivo",apiTitle: "Monitor da API",@@ -2814,11 +2816,6 @@ export const ptBR = {autoScrollManual: "Manual",autoScrollKeywords:"rolagem rolar automática acompanhar fim pular streaming gerar visualização travar scroll autoscroll follow",- scrollToBottomButton: "Botão de rolar até o final",- scrollToBottomButtonDescription:- "Mostra um botão para voltar à mensagem mais recente depois de rolar para cima.",- scrollToBottomButtonKeywords:- "rolar final baixo pular recente seta botão ocultar scroll bottom button",replyNotification: "Avisar quando uma resposta terminar",replyNotificationDescription:"Mostra uma notificação do sistema quando uma resposta termina enquanto o Unsloth está minimizado ou em segundo plano.",@@ -3349,8 +3346,9 @@ export const ptBR = {loadError: "Não foi possível carregar as configurações da API de decisões.",sendsTo: "As solicitações são enviadas para {provider}.",connectionMissing: "Esta conexão não existe mais ou não tem modelos de decisões. Escolha outro modelo.",- addConnection: "Para usar um modelo de decisões hospedado, adicione TypeSafe, Liquid AI ou OpenRouter em Conexões.",- openConnections: "Abrir Conexões",+ addConnection: "Para usar um modelo de decisões hospedado, adicione-o em ",+ connectionsLink: "Conexões",+ addConnectionSuffix: ".",},mcp: {title: "Acesso de agentes (MCP)",diff --git a/studio/frontend/src/i18n/locales/ru.ts b/studio/frontend/src/i18n/locales/ru.tsindex d4acb2b5c9e..b3c187df6ce 100644--- a/studio/frontend/src/i18n/locales/ru.ts+++ b/studio/frontend/src/i18n/locales/ru.ts@@ -1114,7 +1114,7 @@ export const ru = {lastVisited: "Последняя открытая",},tabs: {- sandbox: "Песочница",+ sandbox: "Безопасность",accounts: "Учётные записи",general: "Общие",profile: "Профиль",@@ -1398,7 +1398,7 @@ export const ru = {},},sandbox: {- title: "Песочница",+ title: "Безопасность",description: "Выполняются ли вызовы инструментов Python и терминала в песочнице ОС на этом компьютере.",docs: "Документация",docsLabel: "Открыть документацию по песочнице",@@ -1474,6 +1474,7 @@ export const ru = {managedNote: "Песочницу ОС настраивает владелец этого сервера Unsloth.",},debugging: {+ description: "Читайте журналы Unsloth, не выходя из приложения.",logSection: "Файл журнала",source: "Файл журнала",sourceHint: "Средства запуска моделей ведут собственные журналы, поэтому причина неудачной загрузки или генерации чаще всего указана именно в них, а не в журнале сервера.",@@ -2365,7 +2366,8 @@ export const ru = {description: "Мониторинг оборудования и хранилища этого сервера Unsloth.",liveUpdates: "Обновления в реальном времени",floatingWindow: "Плавающее окно",- disableOverlay: "Отключить оверлей",+ showFloatingWindow: "Показывать плавающее окно",+ showFloatingWindowDescription: "Использование CPU, RAM и GPU всегда видно поверх Unsloth.",liveMonitor: {title: "Монитор в реальном времени",apiTitle: "Монитор API",@@ -2811,11 +2813,6 @@ export const ru = {autoScrollManual: "Вручную",autoScrollKeywords:"прокрутка автопрокрутка следовать вниз низ поток генерация зафиксировать scroll autoscroll follow",- scrollToBottomButton: "Кнопка «Прокрутить вниз»",- scrollToBottomButtonDescription:- "Показывать кнопку для возврата к последнему сообщению после прокрутки вверх.",- scrollToBottomButtonKeywords:- "прокрутка вниз последнее стрелка кнопка скрыть scroll bottom button",replyNotification: "Уведомлять о готовом ответе",replyNotificationDescription:"Показывать системное уведомление, когда ответ готов, а Unsloth свернут или в фоне.",@@ -3345,8 +3342,9 @@ export const ru = {loadError: "Не удалось загрузить настройки API решений.",sendsTo: "Запросы отправляются в {provider}.",connectionMissing: "Этого подключения больше нет или в нём нет моделей решений. Выберите другую модель.",- addConnection: "Чтобы использовать облачную модель решений, добавьте TypeSafe, Liquid AI или OpenRouter в разделе «Подключения».",- openConnections: "Открыть подключения",+ addConnection: "Чтобы использовать облачную модель решений, добавьте её в разделе ",+ connectionsLink: "Подключения",+ addConnectionSuffix: ".",},mcp: {title: "Доступ агентов (MCP)",diff --git a/studio/frontend/src/i18n/locales/sv.ts b/studio/frontend/src/i18n/locales/sv.tsindex 79df52d84df..9efea7d7a46 100644--- a/studio/frontend/src/i18n/locales/sv.ts+++ b/studio/frontend/src/i18n/locales/sv.ts@@ -1238,7 +1238,7 @@ export const sv = {lastVisited: "Senast besökt",},tabs: {- sandbox: "Sandlåda",+ sandbox: "Säkerhet",accounts: "Konton",general: "Allmänt",profile: "Profil",@@ -1524,7 +1524,7 @@ export const sv = {},},sandbox: {- title: "Sandlåda",+ title: "Säkerhet",description:"Om verktygsanrop för Python och Terminal körs i en OS-sandlåda på den här datorn.",docs: "Dokumentation",@@ -1619,6 +1619,7 @@ export const sv = {managedNote: "Ägaren av den här Unsloth-servern konfigurerar OS-sandlådan.",},debugging: {+ description: "Läs Unsloths loggar utan att lämna appen.",logSection: "Loggfil",source: "Loggfil",sourceHint:@@ -2531,7 +2532,8 @@ export const sv = {description: "Övervaka maskinvara och lagring på denna Unsloth-server.",liveUpdates: "Direktuppdateringar",floatingWindow: "Flytande fönster",- disableOverlay: "Inaktivera överlägg",+ showFloatingWindow: "Visa flytande fönster",+ showFloatingWindowDescription: "Håll CPU-, RAM- och GPU-användning synlig ovanpå Unsloth.",liveMonitor: {title: "Direktövervakning",apiTitle: "API-övervakning",@@ -3007,11 +3009,6 @@ export const sv = {autoScrollManual: "Manuell",autoScrollKeywords:"rulla automatisk rullning autoscroll följ fäst botten hoppa strömning generering visningsområde lås håll auto manuell scroll auto-scroll follow stick bottom jump streaming generating viewport lock hold manual",- scrollToBottomButton: "Knapp för att rulla till botten",- scrollToBottomButtonDescription:- "Visa en knapp för att hoppa tillbaka till senaste meddelandet efter att du har rullat uppåt.",- scrollToBottomButtonKeywords:- "rulla botten hoppa senaste nyaste pil ner knapp flytande dölj visa scroll bottom jump latest newest arrow down button floating hide show",replyNotification: "Avisera när ett svar är klart",replyNotificationDescription:"Visa en systemavisering när ett svar blir klart medan Unsloth är minimerat eller i bakgrunden.",@@ -3569,9 +3566,9 @@ export const sv = {sendsTo: "Begäranden skickas till {provider}.",connectionMissing:"Denna anslutning finns inte längre eller har inga beslutsmodeller. Välj en annan modell.",- addConnection:- "Lägg till TypeSafe, Liquid AI eller OpenRouter under Anslutningar för att använda en värdbaserad beslutsmodell.",- openConnections: "Öppna Anslutningar",+ addConnection: "Lägg till en värdbaserad beslutsmodell under ",+ connectionsLink: "Anslutningar",+ addConnectionSuffix: ".",},mcp: {title: "Agentåtkomst (MCP)",diff --git a/studio/frontend/src/i18n/locales/zh-CN.ts b/studio/frontend/src/i18n/locales/zh-CN.tsindex d015c19897b..4aeede0bfcc 100644--- a/studio/frontend/src/i18n/locales/zh-CN.ts+++ b/studio/frontend/src/i18n/locales/zh-CN.ts@@ -1108,7 +1108,7 @@ export const zhCN = {lastVisited: "上次访问",},tabs: {- sandbox: "沙盒",+ sandbox: "安全",accounts: "账户",general: "通用",profile: "个人资料",@@ -1392,7 +1392,7 @@ export const zhCN = {},},sandbox: {- title: "沙盒",+ title: "安全",description: "Python 和终端工具调用是否在此计算机上的系统沙箱中运行。",docs: "文档",docsLabel: "打开沙盒文档",@@ -1468,6 +1468,7 @@ export const zhCN = {managedNote: "操作系统沙盒由此 Unsloth 服务器的所有者设置。",},debugging: {+ description: "无需离开应用即可查看 Unsloth 日志。",logSection: "日志文件",source: "日志文件",sourceHint: "模型运行器会各自写入日志,因此加载或生成失败的原因通常记录在那里,而不是服务器日志中。",@@ -2326,7 +2327,8 @@ export const zhCN = {description: "监控此 Unsloth 服务器的硬件和存储。",liveUpdates: "实时更新",floatingWindow: "悬浮窗口",- disableOverlay: "禁用悬浮层",+ showFloatingWindow: "显示悬浮窗口",+ showFloatingWindowDescription: "在 Unsloth 上方持续显示 CPU、内存和 GPU 使用情况。",liveMonitor: {title: "实时监控",apiTitle: "API 监控",@@ -2751,11 +2753,6 @@ export const zhCN = {autoScrollManual: "手动",autoScrollKeywords:"滚动 自动滚动 跟随 底部 跳转 流式 生成 锁定 scroll autoscroll follow",- scrollToBottomButton: "滚动到底部按钮",- scrollToBottomButtonDescription:- "向上滚动后显示一个按钮,用于跳回最新消息。",- scrollToBottomButtonKeywords:- "滚动 底部 跳转 最新 箭头 按钮 隐藏 scroll bottom button",replyNotification: "回复完成时通知",replyNotificationDescription:"当 Unsloth 最小化或在后台时,回复完成后显示系统通知。",@@ -3274,8 +3271,9 @@ export const zhCN = {loadError: "无法加载决策 API 设置。",sendsTo: "请求将发送到 {provider}。",connectionMissing: "此连接已不存在或没有决策模型。请选择其他模型。",- addConnection: "要使用托管的决策模型,请在连接中添加 TypeSafe、Liquid AI 或 OpenRouter。",- openConnections: "打开连接",+ addConnection: "要使用托管的决策模型,请在",+ connectionsLink: "连接",+ addConnectionSuffix: "中添加。",},mcp: {title: "智能体访问 (MCP)",diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.cssindex 2b7b66a0642..2a56a8d1768 100644--- a/studio/frontend/src/index.css+++ b/studio/frontend/src/index.css@@ -293,9 +293,8 @@--bypass: #c99d00;/* Full access in permission menus: ChatGPT's orange, a touch yellower. */--full-access: #eb6702;- /* 2:1 on the page, so control outlines and dividers stay visible. */- --border-base: #b6b6b6;- --input-base: #b6b6b6;+ --border-base: oklch(0.9208 0 0);+ --input-base: oklch(0.9208 0 0);--ring: #262626;/* Derived from the live border/foreground so every palette and mode gets the right shade.Focus/hover uses soft; selected uses the deeper one. */@@ -315,7 +314,7 @@--sidebar-accent-base: #ececec;--sidebar-accent-foreground-base: #262626;--tabs-line-indicator-base: #ececec;- --sidebar-border-base: #b6b6b6;+ --sidebar-border-base: #f2f2f2;--sidebar-ring: #262626;--destructive-foreground: oklch(1 0 0);--font-sans: "Inter Variable", ui-sans-serif, sans-serif, system-ui;@@ -565,8 +564,8 @@--accent-base: #ececec;--accent-foreground-base: #1a1c1f;--bypass: #9a7b1e;- --border-base: #b6b7b7;- --input-base: #b6b7b7;+ --border-base: #e6e6e6;+ --input-base: #e6e6e6;--ring: #1a1c1f;--chart-1: #339cff;--chart-2: #8fa3b8;@@ -579,7 +578,7 @@--sidebar-primary-foreground: #ffffff;--sidebar-accent-base: #ececec;--sidebar-accent-foreground-base: #1a1c1f;- --sidebar-border-base: #b6b6b6;+ --sidebar-border-base: #f2f2f2;--sidebar-ring: #1a1c1f;--nav-fg-base: #2d2f31;@@ -632,8 +631,8 @@--accent-base: #ebebeb;--accent-foreground-base: #171717;--bypass: #6f6f6f;- --border-base: #b6b6b6;- --input-base: #b6b6b6;+ --border-base: #e2e2e2;+ --input-base: #e2e2e2;--ring: #171717;--chart-1: #171717;--chart-2: #4d4d4d;@@ -646,7 +645,7 @@--sidebar-primary-foreground: #ffffff;--sidebar-accent-base: #ebebeb;--sidebar-accent-foreground-base: #171717;- --sidebar-border-base: #b6b6b6;+ --sidebar-border-base: #e8e8e8;--sidebar-ring: #171717;--nav-fg-base: #333333;@@ -2992,6 +2991,19 @@ html[data-chat-font] .aui-root {background-color: var(--panel-input-surface-hover);}+ /* Images and Video: a lighter border in the Standard, Classic and Minimal light themes. */+ html:not(.dark):is(:not([data-palette]), [data-palette="classic"], [data-palette="minimal"]) .diffusion-surface {+ --border-base: #e9e9e9;+ --input-base: #e9e9e9;+ --border: var(--border-base);+ --input: var(--input-base);+ }+ /* The :root derivation is already substituted, so a scoped base must redo it for the slider. */+ html[data-contrast-adjust]:not(.dark):is(:not([data-palette]), [data-palette="classic"], [data-palette="minimal"]) .diffusion-surface {+ --border: color-mix(in oklab, var(--border-base), var(--contrast-target) var(--contrast-line-mix));+ --input: color-mix(in oklab, var(--input-base), var(--contrast-target) var(--contrast-control-mix));+ }+.panel-scroll-fade.is-scrolled {-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16px);mask-image: linear-gradient(to bottom, transparent 0, #000 16px);diff --git a/studio/frontend/src/lib/hugeicons-derived.ts b/studio/frontend/src/lib/hugeicons-derived.tsindex a7029e46622..e3c8326906f 100644--- a/studio/frontend/src/lib/hugeicons-derived.ts+++ b/studio/frontend/src/lib/hugeicons-derived.ts@@ -142,3 +142,9 @@ export const SpeedMeterIcon: IconSvgElement = [["circle", { cx: "12", cy: "12.5", r: "2.25", stroke: "currentColor", strokeWidth: "1.5", key: "2" }],["path", { d: "M13.59 10.91L18.01 6.49", stroke: "currentColor", strokeLinecap: "round", strokeWidth: "1.5", key: "3" }],];++// FileSearchIcon scaled 1.1x about the centre to match the square menu glyphs.+export const FileSearchIcon: IconSvgElement = [+ ["path", { d: "M13.65 16.95L15.3 18.6M14.2 14.75C14.2 16.2688 12.9688 17.5 11.45 17.5C9.9312 17.5 8.7 16.2688 8.7 14.75C8.7 13.2312 9.9312 12 11.45 12C12.9688 12 14.2 13.2312 14.2 14.75Z", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", key: "0" }],+ ["path", { d: "M13.1 1.55V2.1C13.1 5.2113 13.1 6.7669 14.0666 7.7335C15.0331 8.7 16.5888 8.7 19.7 8.7H20.25M20.8 10.5226V14.2C20.8 18.3483 20.8 20.4226 19.5112 21.7112C18.2226 23 16.1483 23 12 23C7.8516 23 5.7775 23 4.4887 21.7112C3.2 20.4226 3.2 18.3483 3.2 14.2V9.2014C3.2 5.6319 3.2 3.8471 4.1747 2.6383C4.3716 2.394 4.594 2.1716 4.8383 1.9747C6.0471 1 7.8319 1 11.4014 1C12.1775 1 12.5655 1 12.9209 1.1254C12.9948 1.1515 13.0672 1.1815 13.138 1.2153C13.478 1.3779 13.7523 1.6523 14.3011 2.2011L19.5112 7.4113C20.1472 8.0471 20.465 8.3651 20.6326 8.7694C20.8 9.1737 20.8 9.6233 20.8 10.5226Z", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", key: "1" }],+];diff --git a/studio/frontend/src/lib/shield-alert-icon.tsx b/studio/frontend/src/lib/shield-alert-icon.tsxindex 3fcb88379a2..543d0e23027 100644--- a/studio/frontend/src/lib/shield-alert-icon.tsx+++ b/studio/frontend/src/lib/shield-alert-icon.tsx@@ -1,43 +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 { HugeiconsIcon, type IconSvgElement } from "@hugeicons/react";--// Hugeicons "Shield Alert", newer than the pinned free-icons package.-export const ShieldAlertIcon: IconSvgElement = [- [- "path",- {- d: "M11.9922 8L11.9922 12",- stroke: "currentColor",- strokeLinecap: "round",- strokeLinejoin: "round",- strokeWidth: "1.5",- key: "0",- },- ],- [- "path",- {- d: "M12.1172 15.75L11.9922 15.75M12.2422 15.75C12.2422 15.8881 12.1303 16 11.9922 16C11.8541 16 11.7422 15.8881 11.7422 15.75C11.7422 15.6119 11.8541 15.5 11.9922 15.5C12.1303 15.5 12.2422 15.6119 12.2422 15.75Z",- stroke: "currentColor",- strokeLinecap: "round",- strokeLinejoin: "round",- strokeWidth: "1.5",- key: "1",- },- ],- [- "path",- {- d: "M20.9922 11.1835V8.28041C20.9922 6.64041 20.9922 5.82041 20.5881 5.28541C20.184 4.75042 19.2703 4.49068 17.4429 3.97122C16.1944 3.61632 15.0938 3.18875 14.2145 2.79841C13.0156 2.26622 12.4161 2.00012 11.9922 2.00012C11.5682 2.00012 10.9688 2.26622 9.7699 2.79841C8.89057 3.18875 7.79002 3.61632 6.54152 3.97122C4.71411 4.49068 3.80041 4.75042 3.3963 5.28541C2.99219 5.82041 2.99219 6.64041 2.99219 8.28041V11.1835C2.99219 16.8086 8.05496 20.1836 10.5861 21.5195C11.1932 21.8399 11.4968 22.0001 11.9922 22.0001C12.4876 22.0001 12.7911 21.8399 13.3982 21.5195C15.9294 20.1836 20.9922 16.8086 20.9922 11.1835Z",- stroke: "currentColor",- strokeLinecap: "round",- strokeWidth: "1.5",- key: "2",- },- ],-];+import { ShieldAlert } from "lucide-react";export function ShieldAlertGlyph({className,@@ -46,11 +10,5 @@ export function ShieldAlertGlyph({className?: string;strokeWidth?: number;}) {- return (- <HugeiconsIcon- icon={ShieldAlertIcon}- className={className}- strokeWidth={strokeWidth}- />- );+ return <ShieldAlert className={className} strokeWidth={strokeWidth} />;}diff --git a/studio/frontend/tests/contrast-slider.test.ts b/studio/frontend/tests/contrast-slider.test.tsindex 3a5cf0aa17b..cf010a8b125 100644--- a/studio/frontend/tests/contrast-slider.test.ts+++ b/studio/frontend/tests/contrast-slider.test.ts@@ -280,7 +280,13 @@ test("text and lines head away from whatever they are drawn on", () => {"a surface scope leaves body text on the other surface's target",);}- assert.doesNotMatch(CSS, /\.diffusion-surface \{\s*--border-base/);+ const media = ':is(:not([data-palette]), [data-palette="classic"], [data-palette="minimal"]) .diffusion-surface {';+ assert.ok(CSS.includes(`html:not(.dark)${media}\n\t\t--border-base: #e9e9e9;`));+ assert.ok(+ CSS.includes(+ `html[data-contrast-adjust]:not(.dark)${media}\n\t\t--border: color-mix(in oklab, var(--border-base), var(--contrast-target) var(--contrast-line-mix));`,+ ),+ );});test("the sidebar section labels follow the slider", () => {diff --git a/studio/frontend/tests/decision-api-section.test.ts b/studio/frontend/tests/decision-api-section.test.tsindex 0cb7961c4c1..52ad13f10d1 100644--- a/studio/frontend/tests/decision-api-section.test.ts+++ b/studio/frontend/tests/decision-api-section.test.ts@@ -172,15 +172,18 @@ test("reports a resident model as loaded only when it is the selected one", () =assert.match(SECTION, /settings\.loadingModel === settings\.model/);});-test("a failed first load still renders the section with its error", () => {- assert.match(SECTION, /if \(!settings\) \{\s*return error \?/);+test("before settings load, the section renders its header with the error or a loading line", () => {+ assert.match(+ SECTION,+ /if \(!settings\) \{[\s\S]*?\{header\}\s*<div>\s*\{errorLine \?\? \([\s\S]*?decisionApi\.loading/,+ );assert.match(SECTION,/translate\("settings.apiKeys.decisionApi.loadError"\)/,);});-test("Open Connections works off the dialog too, where the API page shows this card", () => {+test("The Connections link works off the dialog too, where the API page shows this card", () => {assert.match(SECTION,/onClick=\{\(\) =>\s*useSettingsDialogStore\.getState\(\)\.openDialog\("connections"\)\s*\}/,diff --git a/studio/frontend/tests/knowledge-base-composer-refresh.test.ts b/studio/frontend/tests/knowledge-base-composer-refresh.test.tsindex 7d7a5b52b96..0e1c10e81b3 100644--- a/studio/frontend/tests/knowledge-base-composer-refresh.test.ts+++ b/studio/frontend/tests/knowledge-base-composer-refresh.test.ts@@ -73,6 +73,7 @@ function harness() {"@/lib/file-icon": {},"@hugeicons/react": {},"@hugeicons/core-free-icons": {},+ "@/lib/hugeicons-derived": {},"@/lib/chevron-icons": {},"@/components/ui/dropdown-menu": {},"@/features/chat/hooks/use-rag-tool-disabled": {diff --git a/studio/frontend/tests/media-header-links.test.ts b/studio/frontend/tests/media-header-links.test.tsindex 81098264f7a..297eefb9353 100644--- a/studio/frontend/tests/media-header-links.test.ts+++ b/studio/frontend/tests/media-header-links.test.ts@@ -73,16 +73,32 @@ test("the sibling link keeps its icon where the square button puts it and trails);assert.match(LINK,- /\{iconArrow && \(\s*<>[\s\S]{0,200}<span className="hidden min-w-0 truncate text-ui-13 font-medium @\[50rem\]:inline">\s*\{label\}\s*<\/span>\s*<ArrowRightIcon className="size-3\.5 shrink-0 opacity-60" \/>/,+ /\{iconArrow && \(\s*<>[\s\S]{0,200}<span className="hidden min-w-0 truncate text-ui-13 font-medium @\[50rem\]:inline \[\[data-media-header-tight\]_&\]:hidden">\s*\{label\}\s*<\/span>\s*<ArrowRightIcon className="size-3\.5 shrink-0 opacity-60" \/>/,);for (const page of [IMAGES, VIDEO]) {assert.match(page,- /justify-end pr-\[calc\(var\(--thread-scrollbar-gutter,10px\)\+0\.5rem\*var\(--ui-space-scale,1\)\+var\(--studio-chat-header-right-inset,var\(--studio-window-control-inset,0px\)\)\)\]/,+ /<MediaHeaderActions className="pr-\[calc\(var\(--thread-scrollbar-gutter,10px\)\+0\.5rem\*var\(--ui-space-scale,1\)\+var\(--studio-chat-header-right-inset,var\(--studio-window-control-inset,0px\)\)\)\]/,);}});+test("media headers keep their links beside Create / Train, hiding them only when both cannot fit or on a tablet", () => {+ const actions = readSrc("components/media-header-actions.tsx");+ assert.match(actions, /grid\.toggleAttribute\(MEDIA_HEADER_TIGHT_ATTR, step > 0\)/);+ assert.match(actions, /if \(width === undefined \|\| width <= room\)/);+ assert.match(actions, /step === 2 && "hidden"/);+ assert.match(actions, /@max-\[40rem\]:hidden/);+ for (const page of [IMAGES, VIDEO, readSrc("features/audio/audio-page.tsx")]) {+ assert.match(+ page,+ /<div className="grid h-full min-w-0 grid-cols-\[minmax\(0,1fr\)_auto_minmax\(max-content,1fr\)\]">/,+ );+ assert.match(page, /<div data-media-header-centre className="pointer-events-auto col-start-2/);+ assert.match(page, /<MediaHeaderActions /);+ }+});+test("Library's empty Images and Videos offer Upload and Generate", () => {const library = readSrc("features/library/library-page.tsx");assert.match(diff --git a/studio/frontend/tests/project-sources-model-without-tools.test.ts b/studio/frontend/tests/project-sources-model-without-tools.test.tsindex bd33d99bdc4..b455460aa8a 100644--- a/studio/frontend/tests/project-sources-model-without-tools.test.ts+++ b/studio/frontend/tests/project-sources-model-without-tools.test.ts@@ -67,6 +67,7 @@ const { ThreadDocumentsBar } = loadWithStubs<typeof BarModule>("react/jsx-runtime": jsxRuntime,"@hugeicons/react": { HugeiconsIcon: Nothing },"@hugeicons/core-free-icons": {},+ "@/lib/hugeicons-derived": {},"lucide-react": new Proxy({}, { get: () => Nothing }),"@/lib/tick-icon": {},"@/lib/open-file-picker": { openFilePicker: () => undefined },diff --git a/studio/frontend/tests/rag-thread-initialization.test.ts b/studio/frontend/tests/rag-thread-initialization.test.tsindex 6c94035be5a..bccb277f77d 100644--- a/studio/frontend/tests/rag-thread-initialization.test.ts+++ b/studio/frontend/tests/rag-thread-initialization.test.ts@@ -152,6 +152,7 @@ function harness("react/jsx-runtime": stubJsxRuntime(),"@hugeicons/react": {},"@hugeicons/core-free-icons": {},+ "@/lib/hugeicons-derived": {},"lucide-react": {},"@/lib/tick-icon": {},"@/lib/open-file-picker": {diff --git a/studio/frontend/tests/scroll-to-bottom-button.test.ts b/studio/frontend/tests/scroll-to-bottom-button.test.tsindex 0fefb66bf0d..bc48ef3e373 100644--- a/studio/frontend/tests/scroll-to-bottom-button.test.ts+++ b/studio/frontend/tests/scroll-to-bottom-button.test.ts@@ -29,24 +29,15 @@ function button(): string {return THREAD.slice(start, THREAD.indexOf("\n};", start));}-test("the button shows by default, including installs that never saw the setting", () => {- assert.equal(- useChatPreferencesStore.getInitialState().showScrollToBottomButton,- true,- );- assert.match(- STORE,- /showScrollToBottomButton: saved\?\.showScrollToBottomButton \?\? true/,- );-});--test("turning it off hides the button without unmounting it", () => {+test("the button always shows once you scroll up; there is no setting to turn it off", () => {const source = button();- assert.match(source, /state\.showScrollToBottomButton/);+ assert.doesNotMatch(source, /showScrollToBottomButton/);// Unmounting would read as a content change to the autoscroll observer.- assert.match(- source,- /\(isAtBottom \|\| !enabled\) && "invisible pointer-events-none"/,+ assert.match(source, /isAtBottom && "invisible pointer-events-none"/);+ assert.doesNotMatch(STORE, /showScrollToBottomButton/);+ assert.equal(+ "showScrollToBottomButton" in useChatPreferencesStore.getInitialState(),+ false,);});@@ -61,15 +52,10 @@ test("a smaller button with a larger arrow, lifted off the dark background", ()assert.doesNotMatch(source, /dark:bg-background/);});-test("the setting is a searchable switch in Chat settings", () => {+test("Chat settings no longer offer the switch", () => {const tab = readSrc("features/settings/tabs/chat-tab.tsx");- const at = tab.indexOf('label={t("settings.chat.scrollToBottomButton")}');- assert.notEqual(at, -1);- const row = tab.slice(at, tab.indexOf("</SettingsRow>", at));- assert.match(row, /<Switch/);- assert.match(row, /checked=\{showScrollToBottomButton\}/);- assert.match(row, /onCheckedChange=\{setShowScrollToBottomButton\}/);+ assert.doesNotMatch(tab, /scrollToBottomButton/);assert.ok(- SETTINGS_SEARCH_INDEX.chat.includes("settings.chat.scrollToBottomButton"),+ !SETTINGS_SEARCH_INDEX.chat.some((key) => key.includes("scrollToBottom")),);});