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: tidy run settings controls and settings page titles (#11331)
Michael Hanf43cc05ffc1d
diff --git a/studio/frontend/src/features/chat/chat-providers-dialog.tsx b/studio/frontend/src/features/chat/chat-providers-dialog.tsxindex 7fcfefa6bd1..25f753536d0 100644--- a/studio/frontend/src/features/chat/chat-providers-dialog.tsx+++ b/studio/frontend/src/features/chat/chat-providers-dialog.tsx@@ -2003,13 +2003,12 @@ export function ChatProvidersSettings({return (<div className="flex min-h-0 flex-col gap-6">- <header className="flex flex-col gap-1 pr-8">- <div className="flex min-w-0 flex-col gap-1">- <h1 className="font-heading text-lg font-semibold">Connections</h1>- <p className="text-xs leading-relaxed text-muted-foreground">- Manage model connections for chat.- </p>- </div>+ {/* Same title/description metrics as every other settings page. */}+ <header className="flex min-w-0 flex-col gap-1 pr-8">+ <h1 className="text-xl font-semibold font-heading">Connections</h1>+ <p className="text-xs text-muted-foreground">+ Manage model connections for chat.+ </p></header><div className="flex w-full max-w-[760px] flex-col gap-2 sm:flex-row sm:items-center sm:justify-between sm:gap-x-6">diff --git a/studio/frontend/src/features/chat/chat-settings-sheet.tsx b/studio/frontend/src/features/chat/chat-settings-sheet.tsxindex f84bab70abd..509cd724754 100644--- a/studio/frontend/src/features/chat/chat-settings-sheet.tsx+++ b/studio/frontend/src/features/chat/chat-settings-sheet.tsx@@ -217,7 +217,7 @@ export function ParamSlider({}return (<div className="space-y-3.5">- <div className="flex items-center justify-between gap-3">+ <div className="flex min-h-8 items-center justify-between gap-3"><div className="flex min-w-0 items-center gap-1.5"><span className="min-w-0 text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">{label}@@ -390,7 +390,8 @@ function CollapsibleSection({</span></button>)}- {open && <div className="pb-7">{children}</div>}+ {/* Same gap below the last control as the header leaves above the first. */}+ {open && <div className="pb-5">{children}</div>}</div>);}@@ -1077,7 +1078,7 @@ export function ChatSettingsPanel({const settingsContent = (<>- <div className="flex h-full min-h-0 flex-col">+ <div className="hint-on-hover flex h-full min-h-0 flex-col">{/* Header is outside the scroll area so the scrollbar never shifts the close button.Reuse the chat header metrics so the toggle stays put when the panel opens. */}<div className="flex h-[var(--studio-chat-header-height,48px)] shrink-0 items-start gap-2 bg-panel-surface pl-[18px] pr-[18px] pt-[var(--studio-chat-header-padding-top,11px)]">@@ -1124,7 +1125,7 @@ export function ChatSettingsPanel({<div className="px-[18px] pt-3">{(hasModelContent || modelConfig) && (<CollapsibleSection label="Model" defaultOpen={true} first={true}>- <div className="flex flex-col gap-3 pt-1">+ <div className="flex flex-col gap-3">{modelConfig}{showSpecFallback && (<div className="rounded-lg bg-amber-500/[0.08] px-3 py-2 text-ui-12 leading-[1.4] text-nav-fg/80">@@ -1196,7 +1197,7 @@ export function ChatSettingsPanel({defaultOpen={true}first={!hasModelContent && !modelConfig}>- <div className="flex flex-col gap-3 pt-1">+ <div className="flex flex-col gap-3"><DropdownMenu><DropdownMenuTrigger asChild={true}><div@@ -1319,7 +1320,7 @@ export function ChatSettingsPanel({{showPromptCachingControl && activeExternalProvider ? (<CollapsibleSection label="Provider" defaultOpen={true}>- <div className="flex items-center justify-between gap-3 pt-1">+ <div className="flex min-h-8 items-center justify-between gap-3"><div className="flex min-w-0 items-center gap-1.5"><span className="min-w-0 text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">Prompt caching@@ -1342,7 +1343,7 @@ export function ChatSettingsPanel({/></div>{showPromptCacheTtlControl && promptCachingEnabled ? (- <div className="flex items-center justify-between gap-3 pt-3">+ <div className="flex min-h-8 items-center justify-between gap-3 pt-3.5"><div className="flex min-w-0 items-center gap-1.5"><span className="min-w-0 text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">Cache TTL@@ -1366,7 +1367,7 @@ export function ChatSettingsPanel({}}><SelectTrigger- className="panel-select-trigger h-8 w-[124px] shrink-0"+ className="panel-select-trigger h-8 shrink-0"aria-label="Prompt cache TTL"><SelectValue />@@ -1379,7 +1380,7 @@ export function ChatSettingsPanel({</div>) : null}{showFastModeControl ? (- <div className="flex items-center justify-between gap-3 pt-3">+ <div className="flex min-h-8 items-center justify-between gap-3 pt-3.5"><div className="flex min-w-0 items-center gap-1.5"><span className="min-w-0 text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">Fast mode@@ -1478,7 +1479,7 @@ export function ChatSettingsPanel({</CollapsibleSection><CollapsibleSection label="Sampling" defaultOpen={true}>- <div className="flex flex-col gap-5 pt-1">+ <div className="flex flex-col gap-5">{showTemperature ? (<ParamSliderlabel="Temperature"@@ -1535,7 +1536,7 @@ export function ChatSettingsPanel({</SelectContent></Select>{effectiveMinPMode(params) === "server-default" ? (- <p className="text-xs text-muted-foreground">+ <p className="text-ui-11 text-muted-foreground">Uses the server’s sampling settings.</p>) : null}@@ -1602,7 +1603,7 @@ export function ChatSettingsPanel({info="Maximum number of tokens to generate per response. Generation stops at this limit or when the model emits an end-of-sequence token."/>{showSeed ? (- <div className="flex items-center justify-between gap-3">+ <div className="flex min-h-8 items-center justify-between gap-3"><div className="flex min-w-0 items-center gap-1.5"><span className="min-w-0 text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">Seed@@ -1654,7 +1655,7 @@ export function ChatSettingsPanel({{isExternalModel ? null : (<CollapsibleSection label="Tools">- <div className="flex flex-col gap-5 pt-1">+ <div className="flex flex-col gap-5"><AutoHealToolCallsToggle /><NudgeToolCallsToggle /><ConfirmToolCallsToggle />@@ -1942,7 +1943,7 @@ function AutoHealToolCallsToggle() {);return (- <div className="flex items-center justify-between gap-3">+ <div className="flex min-h-8 items-center justify-between gap-3"><div className="flex min-w-0 items-center gap-1.5"><span className="min-w-0 text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">Auto-Healing Tool Calls@@ -1953,7 +1954,7 @@ function AutoHealToolCallsToggle() {</InfoHint></div><Switch- className="panel-switch"+ className="panel-switch shrink-0"checked={autoHealToolCalls}onCheckedChange={setAutoHealToolCalls}/>@@ -1966,7 +1967,7 @@ function NudgeToolCallsToggle() {const setNudgeToolCalls = useChatRuntimeStore((s) => s.setNudgeToolCalls);return (- <div className="flex items-center justify-between gap-3">+ <div className="flex min-h-8 items-center justify-between gap-3"><div className="flex min-w-0 items-center gap-1.5"><span className="min-w-0 text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">Nudge Tool Calls@@ -1977,7 +1978,7 @@ function NudgeToolCallsToggle() {</InfoHint></div><Switch- className="panel-switch"+ className="panel-switch shrink-0"checked={nudgeToolCalls}onCheckedChange={setNudgeToolCalls}/>@@ -1990,7 +1991,7 @@ function ConfirmToolCallsToggle() {const permissionMode = useChatRuntimeStore((s) => s.permissionMode);return (- <div className="flex items-center justify-between gap-3">+ <div className="flex min-h-8 items-center justify-between gap-3"><div className="flex min-w-0 flex-col gap-0.5"><div className="flex min-w-0 items-center gap-1.5"><span className="min-w-0 text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">@@ -2011,7 +2012,7 @@ function ConfirmToolCallsToggle() {) : null}</div><Switch- className="panel-switch"+ className="panel-switch shrink-0"checked={permissionMode === "ask"}onCheckedChange={setConfirmToolCalls}disabled={permissionMode === "full"}diff --git a/studio/frontend/src/features/chat/components/openai-code-exec-section.tsx b/studio/frontend/src/features/chat/components/openai-code-exec-section.tsxindex 1bb422a19e0..10a5b696c4d 100644--- a/studio/frontend/src/features/chat/components/openai-code-exec-section.tsx+++ b/studio/frontend/src/features/chat/components/openai-code-exec-section.tsx@@ -399,7 +399,7 @@ export function OpenAICodeExecSection({const displayActiveId = displayedContainerId;return (- <div className="flex flex-col gap-3 pt-1">+ <div className="flex flex-col gap-3">{/* TTL */}<div className="flex items-center justify-between gap-3"><div className="flex min-w-0 items-center gap-1.5">diff --git a/studio/frontend/src/features/model-picker/components/memory-estimate-row.tsx b/studio/frontend/src/features/model-picker/components/memory-estimate-row.tsxindex 701f8e7d1cc..327aa1d8078 100644--- a/studio/frontend/src/features/model-picker/components/memory-estimate-row.tsx+++ b/studio/frontend/src/features/model-picker/components/memory-estimate-row.tsx@@ -49,23 +49,42 @@ function MemoryFigure({useLayoutEffect(() => {const button = buttonRef.current;const measurement = measureRef.current;- if (!button || !measurement) return;+ const row = button?.parentElement;+ if (!button || !measurement || !row) return;let active = true;const fit = () => {if (!active) return;+ // Measured on the row, never on the pill or its label: both give way to the figure,+ // so either would just confirm whatever the first pass picked.const style = getComputedStyle(button);- const width =- button.clientWidth -- Number.parseFloat(style.paddingLeft) -+ const gutters =+ Number.parseFloat(style.paddingLeft) +Number.parseFloat(style.paddingRight);+ const rowStyle = getComputedStyle(row);+ const gap = Number.parseFloat(rowStyle.columnGap) || 0;+ const siblings = Array.from(row.children).filter(+ (child) => child !== button,+ );+ const room =+ row.clientWidth -+ Number.parseFloat(rowStyle.paddingLeft) -+ Number.parseFloat(rowStyle.paddingRight) -+ gap * siblings.length -+ siblings.reduce(+ (total, child) =>+ total ++ Math.max(child.getBoundingClientRect().width, child.scrollWidth),+ 0,+ ) -+ gutters;const index = Array.from(measurement.children).findIndex(- (child) => child.getBoundingClientRect().width <= width,+ (child) => child.getBoundingClientRect().width <= room + 0.5,);setDisplayIndex(index < 0 ? candidates.length - 1 : index);};fit();const observer = new ResizeObserver(fit);- observer.observe(button);+ observer.observe(row);observer.observe(measurement);void document.fonts.ready.then(fit);return () => {@@ -75,16 +94,18 @@ function MemoryFigure({}, [candidates]);return (<div className="flex min-h-8 min-w-0 items-center justify-between gap-3">- <span className="min-w-0 text-ui-13 font-medium leading-[1.25] tracking-nav text-muted-foreground">+ {/* No min-w-0: the label holds its width, so the figure shortens instead. */}+ <span className="text-ui-13 font-medium leading-[1.25] tracking-nav text-muted-foreground">{label}</span>+ {/* Sizes to the figure it holds, in the same h-8 pill as the controls below. */}<Tooltip><TooltipTrigger asChild><buttonref={buttonRef}type="button"aria-label={`${label}: ${value}`}- className={`relative inline-flex h-8 w-[80px] shrink-0 cursor-default! items-center justify-center overflow-hidden rounded-full border-transparent bg-black/[0.04] px-2 text-ui-13 font-medium tabular-nums focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 dark:bg-white/[0.05] ${tone ?? "text-nav-fg"}`}+ className={`relative inline-flex h-8 w-auto min-w-[64px] max-w-full shrink-0 cursor-default! items-center justify-center overflow-hidden rounded-full border-transparent bg-black/[0.04] px-3.5 text-ui-13 font-medium leading-none tabular-nums focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 dark:bg-white/[0.05] ${tone ?? "text-nav-fg"}`}><span aria-hidden="true" className="min-w-0 truncate">{candidates[displayIndex] ?? value}@@ -216,7 +237,7 @@ export function MemoryEstimateRow({aria-expanded={expanded}aria-controls={contentId}aria-label={`Estimated Memory Usage: ${expanded ? "Hide" : "Show"} breakdown`}- className="group flex min-h-7 w-full items-center justify-between gap-3 rounded-md text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-offset-2 focus-visible:ring-offset-background"+ className="group flex min-h-8 w-full items-center justify-between gap-3 rounded-md text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-offset-2 focus-visible:ring-offset-background"><span className="flex min-w-0 items-center gap-2"><span className="min-w-0 text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">diff --git a/studio/frontend/src/features/model-picker/components/model-config-page.tsx b/studio/frontend/src/features/model-picker/components/model-config-page.tsxindex a4d50320b39..747c57990a9 100644--- a/studio/frontend/src/features/model-picker/components/model-config-page.tsx+++ b/studio/frontend/src/features/model-picker/components/model-config-page.tsx@@ -187,8 +187,20 @@ const LABEL_CLASS_WRAP ="min-w-0 text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg";const CONTROL_SURFACE ="rounded-full border-transparent bg-black/[0.04] dark:bg-white/[0.05] hover:bg-black/[0.06] dark:hover:bg-white/[0.1]";-const SELECT_TRIGGER_CLASS = `grid h-8! min-w-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-1 ${CONTROL_SURFACE} pl-3 pr-2 py-0 text-ui-13! font-medium text-nav-fg focus-visible:ring-0 focus-visible:border-transparent [&_[data-slot=select-value]]:min-w-0 [&_[data-slot=select-value]]:truncate [&>svg]:shrink-0`;-const NUMBER_INPUT_CLASS = `h-8 w-[92px] ${CONTROL_SURFACE} pl-3 pr-2 py-0 text-right text-ui-13 font-medium text-nav-fg outline-none focus-visible:ring-0`;+// One width for every typed field: a box that resized per keystroke would jump under the+// caret. Narrow, so the label beside it is not clipped in a ~240px panel.+const INPUT_WIDTH_CLASS = "w-[84px] shrink-0";+// A select holds one of a known set of values, so it sizes to that value.+const SELECT_WIDTH_CLASS = "w-auto max-w-full shrink-0";+// 14px each side optically. The chevron's stroke fills 14 of its 24 viewBox units, so its+// box carries ~3px of slack; pr-[11px] pays that back.+const SELECT_TRIGGER_CLASS = `grid h-8! min-w-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-2 ${SELECT_WIDTH_CLASS} ${CONTROL_SURFACE} pl-3.5 pr-[11px] py-0 text-ui-13! font-medium text-nav-fg focus-visible:ring-0 focus-visible:border-transparent [&_[data-slot=select-value]]:min-w-0 [&_[data-slot=select-value]]:truncate [&>svg]:shrink-0`;+// Left-aligned like every other value here. These fields share one width, so reading from+// the left puts their values on a single edge.+const NUMBER_INPUT_CLASS = `h-8 ${INPUT_WIDTH_CLASS} ${CONTROL_SURFACE} px-3.5 py-0 text-ui-13 font-medium text-nav-fg outline-none focus-visible:ring-0`;+const TEXT_INPUT_CLASS = `h-8 ${INPUT_WIDTH_CLASS} min-w-0 ${CONTROL_SURFACE} px-3.5 py-0 text-ui-13 font-medium text-nav-fg outline-none focus-visible:ring-0`;+// Matches the Preset section's Save/Delete pair rather than the Button's own `sm` metrics.+const FOOTER_BUTTON_CLASS = "h-9 rounded-full text-ui-13 font-medium tracking-nav";// Mirrors the backend's Auto default once GPU-only placement is impossible.const AUTO_OFFLOAD_CONTEXT_LENGTH = 8192;@@ -389,7 +401,7 @@ function ChatTemplateSetting({type="button"size="sm"variant="ghost"- className={`h-8 px-3 text-ui-13 ${CONTROL_SURFACE}`}+ className={`h-8 px-3.5 text-ui-13 ${CONTROL_SURFACE}`}onClick={onEditTemplate}>{readOnly ? "View" : "Edit"}@@ -444,6 +456,7 @@ function MaxSeqLengthSetting({derived={isMlx && !pinned}ariaLabel={label}className={NUMBER_INPUT_CLASS}+ fixedWidth={true}size={8}/></div>@@ -507,6 +520,7 @@ function AdvancedGpuSlider({displayValue={displayValue}ariaLabel={label}className={NUMBER_INPUT_CLASS}+ fixedWidth={true}size={8}disabled={disabled}/>@@ -668,7 +682,7 @@ function VramBudgetRow() {};return (- <div className="space-y-2">+ <div className="space-y-1"><AdvancedGpuSliderlabel="VRAM Budget"value={percent}@@ -837,7 +851,7 @@ function GpuMemorySettings({animateRadius={false}icon={ChevronDownStandardIcon}iconClassName="size-3.5"- className={`w-[124px] shrink-0 ${SELECT_TRIGGER_CLASS}`}+ className={SELECT_TRIGGER_CLASS}><SelectValue /></SelectTrigger>@@ -964,13 +978,15 @@ function AdvancedSettingsToggle({onCheckedChange: (next: boolean) => void;}) {return (- <div className={ROW_CLASS}>+ // Ruled off from the context controls above, matching the estimate row's divider.+ <div className={`${ROW_CLASS} border-t border-border/60 pt-3.5`}><div className="flex min-w-0 items-center gap-1.5"><span className="min-w-0 text-ui-13 font-medium leading-[1.25] tracking-nav text-muted-foreground">Advanced settings</span><InfoHint>- Extra options for how the model loads. Most setups don't need these.+ Extra options for how the model loads. Unsloth already picks the best+ settings for your device, so most setups don't need these.</InfoHint></div><Switch@@ -1024,7 +1040,7 @@ function MlxAdvancedSettings({animateRadius={false}icon={ChevronDownStandardIcon}iconClassName="size-3.5"- className={`w-[92px] ${SELECT_TRIGGER_CLASS}`}+ className={SELECT_TRIGGER_CLASS}><SelectValue /></SelectTrigger>@@ -1115,7 +1131,7 @@ function LoadModeRow({animateRadius={false}icon={ChevronDownStandardIcon}iconClassName="size-3.5"- className={`w-[124px] shrink-0 ${SELECT_TRIGGER_CLASS}`}+ className={SELECT_TRIGGER_CLASS}aria-describedby={notice ? adviceId : undefined}><SelectValue />@@ -1211,7 +1227,7 @@ function GgufAdvancedSettings({animateRadius={false}icon={ChevronDownStandardIcon}iconClassName="size-3.5"- className={`w-[92px] ${SELECT_TRIGGER_CLASS}`}+ className={SELECT_TRIGGER_CLASS}><SelectValue /></SelectTrigger>@@ -1261,7 +1277,7 @@ function GgufAdvancedSettings({animateRadius={false}icon={ChevronDownStandardIcon}iconClassName="size-3.5"- className={`w-[124px] shrink-0 ${SELECT_TRIGGER_CLASS}`}+ className={SELECT_TRIGGER_CLASS}><SelectValue /></SelectTrigger>@@ -1333,7 +1349,7 @@ function GgufAdvancedSettings({animateRadius={false}icon={ChevronDownStandardIcon}iconClassName="size-3.5"- className={`w-[92px] shrink-0 ${SELECT_TRIGGER_CLASS}`}+ className={SELECT_TRIGGER_CLASS}><SelectValue /></SelectTrigger>@@ -1426,7 +1442,7 @@ function GgufAdvancedSettings({/></div>{batchBelowFloor && (- <p id={batchAdviceId} className="text-ui-12 text-muted-foreground">+ <p id={batchAdviceId} className="text-ui-11 text-muted-foreground">Too small for llama-server, so the load will raise it to {batchFloor}.{config.nParallel != null && config.nParallel > 2? " It needs one output slot per parallel slot."@@ -1475,7 +1491,7 @@ function GgufAdvancedSettings({/></div>{ubatchExceedsBatch && (- <p id={ubatchAdviceId} className="text-ui-12 text-muted-foreground">+ <p id={ubatchAdviceId} className="text-ui-11 text-muted-foreground">Micro-batch is larger than the batch size, so llama.cpp will run at{" "}{effectiveBatch}. Raise the batch size to use {config.nUbatch}.</p>@@ -1580,7 +1596,7 @@ function GgufAdvancedSettings({}}}aria-label="Reasoning Budget Message"- className={`h-8 w-[180px] min-w-0 ${CONTROL_SURFACE} px-3 py-0 text-ui-13 font-medium text-nav-fg outline-none focus-visible:ring-0`}+ className={TEXT_INPUT_CLASS}/></div>)}@@ -1828,40 +1844,43 @@ function ExtraArgsRow({</div></InfoHint></div>- <div className="panel-text-surface h-20 w-full overflow-hidden corner-squircle">- <textarea- value={text}- onChange={(event) => commit(event.target.value)}- spellCheck={false}- placeholder="--rope-scaling yarn --yarn-orig-ctx 32768"- aria-label="Extra llama-server arguments"- aria-describedby={diagnostics.length > 0 ? adviceId : undefined}- className="block size-full resize-none bg-transparent px-3.5 py-2.5 text-left font-mono text-ui-12 leading-relaxed text-nav-fg outline-none placeholder:text-muted-foreground"- />- </div>- {(tokenCount > 0 || diagnostics.length > 0) && (- <div id={adviceId} className="space-y-1">- {tokenCount > 0 && (- <p className="text-ui-11 text-muted-foreground">- {tokenCount === 1 ? "1 argument" : `${tokenCount} arguments`}- </p>- )}- {diagnostics.map((diagnostic) => (- <p- key={diagnostic.message}- className={- diagnostic.level === "error"- ? "text-ui-11 text-red-500"- : diagnostic.level === "warning"- ? "text-ui-11 text-amber-500"- : "text-ui-11 text-muted-foreground"- }- >- {diagnostic.message}- </p>- ))}+ {/* Grouped so the notes sit 4px under the field, as advice does elsewhere. */}+ <div className="space-y-1">+ <div className="panel-text-surface h-20 w-full overflow-hidden corner-squircle">+ <textarea+ value={text}+ onChange={(event) => commit(event.target.value)}+ spellCheck={false}+ placeholder="--rope-scaling yarn --yarn-orig-ctx 32768"+ aria-label="Extra llama-server arguments"+ aria-describedby={diagnostics.length > 0 ? adviceId : undefined}+ className="block size-full resize-none bg-transparent px-3.5 py-2.5 text-left font-mono text-ui-12 leading-relaxed text-nav-fg outline-none placeholder:text-muted-foreground"+ /></div>- )}+ {(tokenCount > 0 || diagnostics.length > 0) && (+ <div id={adviceId} className="space-y-1">+ {tokenCount > 0 && (+ <p className="text-ui-11 text-muted-foreground">+ {tokenCount === 1 ? "1 argument" : `${tokenCount} arguments`}+ </p>+ )}+ {diagnostics.map((diagnostic) => (+ <p+ key={diagnostic.message}+ className={+ diagnostic.level === "error"+ ? "text-ui-11 text-red-500"+ : diagnostic.level === "warning"+ ? "text-ui-11 text-amber-500"+ : "text-ui-11 text-muted-foreground"+ }+ >+ {diagnostic.message}+ </p>+ ))}+ </div>+ )}+ </div></div>);}@@ -3102,14 +3121,16 @@ export function ModelConfigPage({};return (- <div className="flex flex-col">+ <div className="hint-on-hover flex flex-col">{variant === "page" && showHeader && (+ // -ml-1.5 cancels the icon's inset in its 28px circle, so the chevron starts on+ // the same left edge as the rows below.<div className="flex items-center gap-2.5 pb-4">{onBack && (<buttontype="button"onClick={onBack}- className="nav-icon-btn shrink-0 text-nav-icon-idle hover:bg-panel-surface-hover hover:text-black dark:hover:text-white"+ className="nav-icon-btn -ml-1.5 shrink-0 text-nav-icon-idle hover:bg-panel-surface-hover hover:text-black dark:hover:text-white"aria-label="Back to model list"><ChevronLeftIcon@@ -3181,58 +3202,68 @@ export function ModelConfigPage({displayValue={contextIsAuto ? "Auto" : undefined}ariaLabel="Context Length"className={NUMBER_INPUT_CLASS}+ fixedWidth={true}size={8}/></div>- {nativeContextLength != null ? (- <div className="space-y-1.5">- <Slider- min={0}- max={maxContext}- step={128}- value={[contextSliderValue]}- onValueChange={([v]) => setContextSliderValue(v)}- className="panel-slider"- aria-label="Context Length"- // Position 0 is Auto, not a zero-token context, so aria-valuenow alone reads as a length no- // model has. The number is only spoken once one exists.- thumbValueText={(v) =>- v !== 0- ? `${v.toLocaleString()} tokens`- : activeLoadedContext != null- ? `Auto, currently ${contextInputValue.toLocaleString()} tokens`- : "Auto"- }- />- <div className="flex justify-between text-ui-10 text-muted-foreground">- <span>Auto</span>- <span>{maxContext.toLocaleString()}</span>+ {/* Grouped so the warning sits 4px under the slider, as advice does elsewhere. */}+ <div className="space-y-1">+ {nativeContextLength != null ? (+ <div className="space-y-1.5">+ <Slider+ min={0}+ max={maxContext}+ step={128}+ value={[contextSliderValue]}+ onValueChange={([v]) => setContextSliderValue(v)}+ className="panel-slider"+ aria-label="Context Length"+ // Position 0 is Auto, not a zero-token context, so aria-valuenow alone reads as a length no+ // model has. The number is only spoken once one exists.+ thumbValueText={(v) =>+ v !== 0+ ? `${v.toLocaleString()} tokens`+ : activeLoadedContext != null+ ? `Auto, currently ${contextInputValue.toLocaleString()} tokens`+ : "Auto"+ }+ />+ <div className="flex justify-between text-ui-10 text-muted-foreground">+ <span>Auto</span>+ <span>{maxContext.toLocaleString()}</span>+ </div></div>- </div>- ) : null}- {!contextIsAuto &&- isActiveModel &&- loadedMaxContextLength != null &&- contextValue > loadedMaxContextLength && (- <p className="text-ui-11 text-amber-500">- {isAppleUnifiedMemory ? (- <>- Exceeds what fits in unified memory (- {loadedMaxContextLength.toLocaleString()} tokens). The- GPU and the rest of the system share one pool here, so- there is nothing to offload to.- </>- ) : (- <>- Exceeds estimated VRAM capacity (- {loadedMaxContextLength.toLocaleString()} tokens). The- model may use system RAM.- </>- )}- </p>- )}+ ) : null}+ {!contextIsAuto &&+ isActiveModel &&+ loadedMaxContextLength != null &&+ contextValue > loadedMaxContextLength && (+ <p className="text-ui-11 text-amber-500">+ {isAppleUnifiedMemory ? (+ <>+ Exceeds what fits in unified memory (+ {loadedMaxContextLength.toLocaleString()} tokens). The+ GPU and the rest of the system share one pool here, so+ there is nothing to offload to.+ </>+ ) : (+ <>+ Exceeds estimated VRAM capacity (+ {loadedMaxContextLength.toLocaleString()} tokens). The+ model may use system RAM.+ </>+ )}+ </p>+ )}+ </div></div>+ {/* Above the block it reveals, so expanding never moves the switch. */}+ <AdvancedSettingsToggle+ checked={showAdvanced}+ onCheckedChange={toggleAdvanced}+ />+{showAdvanced && (<GgufAdvancedSettingsconfig={config}@@ -3251,11 +3282,6 @@ export function ModelConfigPage({onExtraArgsLoadableChange={setExtraArgsLoadable}/>)}-- <AdvancedSettingsToggle- checked={showAdvanced}- onCheckedChange={toggleAdvanced}- /></>)}{!target.isGguf && (@@ -3272,6 +3298,10 @@ export function ModelConfigPage({}onChange={(value) => update(contextPinPatch(value, targetIsMlx))}/>+ <AdvancedSettingsToggle+ checked={showAdvanced}+ onCheckedChange={toggleAdvanced}+ />{showAdvanced && (<MlxAdvancedSettingsconfig={config}@@ -3282,10 +3312,6 @@ export function ModelConfigPage({templateOutcome={chatTemplateOutcome}/>)}- <AdvancedSettingsToggle- checked={showAdvanced}- onCheckedChange={toggleAdvanced}- /></>)}</div>@@ -3318,15 +3344,15 @@ export function ModelConfigPage({<divclassName={variant === "sidebar"- ? "flex items-center justify-end gap-2"+ ? "grid grid-cols-2 gap-3": "flex shrink-0 items-center gap-2"}><Buttontype="button"- variant="ghost"+ variant="outline"size="sm"- className="h-8"+ className={`${FOOTER_BUTTON_CLASS} text-muted-foreground${variant === "sidebar" ? " w-full" : ""}`}disabled={atDefault}onClick={() => {// Reset writes through setConfig, not update, so it marks the draft itself.@@ -3347,7 +3373,7 @@ export function ModelConfigPage({<Buttontype="button"size="sm"- className="h-8"+ className={`${FOOTER_BUTTON_CLASS}${variant === "sidebar" ? " w-full" : ""}`}disabled={stagedMetadataPending ||budgetSettling ||diff --git a/studio/frontend/src/features/model-picker/components/numeric-value-input.tsx b/studio/frontend/src/features/model-picker/components/numeric-value-input.tsxindex ad57c7ac749..cd92e0586e5 100644--- a/studio/frontend/src/features/model-picker/components/numeric-value-input.tsx+++ b/studio/frontend/src/features/model-picker/components/numeric-value-input.tsx@@ -53,6 +53,8 @@ export const NumericValueInput = forwardRef<ariaLabel?: string;size?: number;disabled?: boolean;+ /** Take the width from `className` instead of the value's length. */+ fixedWidth?: boolean;}>(function NumericValueInput({@@ -67,6 +69,7 @@ export const NumericValueInput = forwardRef<ariaLabel,size: sizeAttr,disabled = false,+ fixedWidth = false,},ref,) {@@ -156,10 +159,14 @@ export const NumericValueInput = forwardRef<inputMode="decimal"disabled={disabled}size={sizeAttr}- style={{- boxSizing: "content-box",- width: `calc(${Math.max(displayed.length, 4)}ch + 2px)`,- }}+ style={+ fixedWidth+ ? undefined+ : {+ boxSizing: "content-box",+ width: `calc(${Math.max(displayed.length, 4)}ch + 2px)`,+ }+ }value={displayed}aria-label={ariaLabel}onFocus={(e) => {diff --git a/studio/frontend/src/features/rag/components/retrieval-settings-section.tsx b/studio/frontend/src/features/rag/components/retrieval-settings-section.tsxindex a485c0636b2..99b67cc57b9 100644--- a/studio/frontend/src/features/rag/components/retrieval-settings-section.tsx+++ b/studio/frontend/src/features/rag/components/retrieval-settings-section.tsx@@ -118,7 +118,7 @@ export function RetrievalSettingsSection() {);return (- <div className="flex flex-col gap-5 pt-1">+ <div className="flex flex-col gap-5"><div className="flex flex-col gap-2"><span className="text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">Search modediff --git a/studio/frontend/src/features/settings/tabs/accounts-tab.tsx b/studio/frontend/src/features/settings/tabs/accounts-tab.tsxindex e5ec8c5e338..e20015a2568 100644--- a/studio/frontend/src/features/settings/tabs/accounts-tab.tsx+++ b/studio/frontend/src/features/settings/tabs/accounts-tab.tsx@@ -172,17 +172,17 @@ function OwnerAccountsTab() {return (<div className="space-y-6">- <div className="space-y-1 pr-6">- <h2- className="font-heading text-base font-semibold"+ <header className="flex min-w-0 flex-col gap-1 pr-6">+ <h1+ className="text-xl font-semibold font-heading"data-settings-label={t("settings.accounts.title")}>{t("settings.accounts.title")}- </h2>- <p className="max-w-lg text-xs leading-relaxed text-muted-foreground">+ </h1>+ <p className="max-w-lg text-xs text-muted-foreground">{t("settings.accounts.description")}</p>- </div>+ </header><div className="flex items-center gap-3"><div className="relative min-w-0 flex-1">diff --git a/studio/frontend/src/features/settings/tabs/agents-tab.tsx b/studio/frontend/src/features/settings/tabs/agents-tab.tsxindex 1ff74d8a221..bde51151434 100644--- a/studio/frontend/src/features/settings/tabs/agents-tab.tsx+++ b/studio/frontend/src/features/settings/tabs/agents-tab.tsx@@ -1270,7 +1270,7 @@ export function AgentsTab() {</h1><pdata-settings-label={t("settings.agents.description")}- className="text-xs text-muted-foreground leading-relaxed"+ className="text-xs text-muted-foreground">{t("settings.agents.description")}</p>diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.cssindex e18dfa15872..c3fed506d71 100644--- a/studio/frontend/src/index.css+++ b/studio/frontend/src/index.css@@ -1437,21 +1437,32 @@ html[data-chat-font] .aui-root {);}- /* Images and Video: a field's "i" only appears with the row it belongs to. Matched on the- InfoHint itself so every field style is covered, including the shared chat slider.- Two levels up is the field container; higher ancestors deliberately do not match. */- .diffusion-surface [data-slot="info-hint"] {- opacity: 0;- pointer-events: none;- transition: opacity 150ms;- }- .diffusion-surface *:hover > [data-slot="info-hint"],- .diffusion-surface *:hover > * > [data-slot="info-hint"],- .diffusion-surface *:focus-within > [data-slot="info-hint"],- .diffusion-surface *:focus-within > * > [data-slot="info-hint"],- .diffusion-surface [data-slot="info-hint"]:focus-visible {- opacity: 1;- pointer-events: auto;+ /* Images, Video and Run settings: a field's "i" only appears with the row it belongs to.+ Matched on the InfoHint itself so every field style is covered, including the shared+ chat slider. Two levels up is the field container; higher ancestors deliberately do+ not match. Opacity, not display, so revealing one never reflows its row. */+ /* Hover-capable pointers only. A tap is not hover and does not raise :focus-visible, so+ on a touch screen this would hide a control that has no other way to be reached. */+ @media (hover: hover) {+ :is(.diffusion-surface, .hint-on-hover) [data-slot="info-hint"] {+ opacity: 0;+ pointer-events: none;+ transition: opacity 150ms;+ }+ /* :has(:focus-visible), not :focus-within: a select hands focus back to its trigger+ on close, which left the "i" up until something else was clicked. */+ :is(.diffusion-surface, .hint-on-hover)+ :is(*:hover, *:has(:focus-visible))+ > [data-slot="info-hint"],+ :is(.diffusion-surface, .hint-on-hover)+ :is(*:hover, *:has(:focus-visible))+ > *+ > [data-slot="info-hint"],+ :is(.diffusion-surface, .hint-on-hover)+ [data-slot="info-hint"]:focus-visible {+ opacity: 1;+ pointer-events: auto;+ }}/* Inline numeric input — used for slider values and Context Length.@@ -1461,8 +1472,9 @@ html[data-chat-font] .aui-root {an inline width that hugs the value. Hover/focus: very light bgfade-in, just enough to read as interactive without competingwith the slider row's quiet aesthetic. */+ /* Wider right gutter: the value is right-aligned on the panel's own edge. */.panel-number-input {- @apply h-7 min-w-8 shrink-0 rounded-full border-0 bg-transparent px-2 text-right text-ui-13! font-medium tabular-nums text-nav-fg shadow-none transition-colors hover:bg-black/[0.04] focus:bg-black/[0.05] focus-visible:ring-0! focus-visible:outline-none md:text-ui-13!;+ @apply h-7 min-w-8 shrink-0 rounded-full border-0 bg-transparent pl-2 pr-3 text-right text-ui-13! font-medium tabular-nums text-nav-fg shadow-none transition-colors hover:bg-black/[0.04] focus:bg-black/[0.05] focus-visible:ring-0! focus-visible:outline-none md:text-ui-13!;}.dark .panel-number-input {@apply hover:bg-white/[0.04] focus:bg-white/[0.06];