Skip to content

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.

Studio: tidy the Logs viewer and let it resize (#14965)

Michael Han4d75525aa206
diff --git a/studio/frontend/src/features/settings/tabs/debugging-tab.tsx b/studio/frontend/src/features/settings/tabs/debugging-tab.tsx
index 2bf28d9d6d9..0e9a356de62 100644
--- a/studio/frontend/src/features/settings/tabs/debugging-tab.tsx
+++ b/studio/frontend/src/features/settings/tabs/debugging-tab.tsx
@@ -26,7 +26,6 @@ import { useCopyFeedback } from "@/features/hub/hooks/use-copy-feedback";
import { formatBytes } from "@/features/hub";
import { useT } from "@/i18n";
import { isTauri } from "@/lib/api-base";
-import { ChevronDownDoubleStandardIcon } from "@/lib/chevron-icons";
import { stripAnsi } from "@/lib/strip-ansi";
import { toast } from "@/lib/toast";
import { cn } from "@/lib/utils";
@@ -43,7 +42,10 @@ import {
Tick02Icon,
} from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
+import { ArrowDownIcon } from "lucide-react";
import {
+ type KeyboardEvent as ReactKeyboardEvent,
+ type PointerEvent as ReactPointerEvent,
useCallback,
useEffect,
useId,
@@ -93,6 +95,28 @@ const SOURCE_RESCAN_MS = 10_000;
// how close to the bottom the pane must be scrolled for auto-follow to stay on
const FOLLOW_THRESHOLD_PX = 40;
+const PANE_HEIGHT_STORAGE_KEY = "unsloth_debug_log_pane_height";
+const PANE_MIN_HEIGHT_PX = 160;
+const PANE_KEY_STEP_PX = 24;
+
+function maxPaneHeight(): number {
+ return Math.round(window.innerHeight * 0.85);
+}
+
+function readStoredPaneHeight(): number | null {
+ if (typeof window === "undefined") {
+ return null;
+ }
+ try {
+ const stored = Number(window.localStorage.getItem(PANE_HEIGHT_STORAGE_KEY));
+ return Number.isFinite(stored) && stored >= PANE_MIN_HEIGHT_PX
+ ? stored
+ : null;
+ } catch {
+ return null;
+ }
+}
+
function readStoredMode(): RefreshMode {
if (typeof window === "undefined") return DEFAULT_REFRESH_MODE;
try {
@@ -186,6 +210,10 @@ export function DebuggingTab() {
// new pane stays empty (in manual mode, for good).
const inFlightRef = useRef<number | null>(null);
const paneRef = useRef<HTMLPreElement | null>(null);
+ const frameRef = useRef<HTMLDivElement | null>(null);
+ const [paneHeight, setPaneHeight] = useState<number | null>(
+ readStoredPaneHeight,
+ );
const pinnedRef = useRef(true);
const lastSourceScanRef = useRef(Date.now());
@@ -427,11 +455,76 @@ export function DebuggingTab() {
setFollowing(true);
}, []);
- // wrap changes the scroll height without changing the text, so it re-pins too
+ // wrap and a resize change the scroll height without changing the text, so they re-pin too
useEffect(() => {
const pane = paneRef.current;
if (pane && pinnedRef.current) pane.scrollTop = pane.scrollHeight;
- }, [text, wrap]);
+ }, [text, wrap, paneHeight]);
+
+ const resizePane = useCallback((next: number | null) => {
+ const height =
+ next === null
+ ? null
+ : Math.round(
+ Math.min(Math.max(next, PANE_MIN_HEIGHT_PX), maxPaneHeight()),
+ );
+ setPaneHeight(height);
+ try {
+ if (height === null) {
+ window.localStorage.removeItem(PANE_HEIGHT_STORAGE_KEY);
+ } else {
+ window.localStorage.setItem(PANE_HEIGHT_STORAGE_KEY, String(height));
+ }
+ } catch {
+ // storage unavailable: the height still applies this visit
+ }
+ }, []);
+
+ const onResizeStart = useCallback(
+ (event: ReactPointerEvent<HTMLButtonElement>) => {
+ const frame = frameRef.current;
+ if (!frame || event.button !== 0) {
+ return;
+ }
+ event.preventDefault();
+ const handle = event.currentTarget;
+ const startY = event.clientY;
+ const startHeight = frame.getBoundingClientRect().height;
+ handle.setPointerCapture(event.pointerId);
+ const move = (moveEvent: PointerEvent) =>
+ resizePane(startHeight + moveEvent.clientY - startY);
+ const end = () => {
+ handle.removeEventListener("pointermove", move);
+ handle.removeEventListener("pointerup", end);
+ handle.removeEventListener("pointercancel", end);
+ };
+ handle.addEventListener("pointermove", move);
+ handle.addEventListener("pointerup", end);
+ handle.addEventListener("pointercancel", end);
+ },
+ [resizePane],
+ );
+
+ const onResizeKey = useCallback(
+ (event: ReactKeyboardEvent<HTMLButtonElement>) => {
+ const frame = frameRef.current;
+ if (!frame) {
+ return;
+ }
+ const step =
+ event.key === "ArrowDown"
+ ? PANE_KEY_STEP_PX
+ : event.key === "ArrowUp"
+ ? -PANE_KEY_STEP_PX
+ : 0;
+ if (!step) {
+ return;
+ }
+ event.preventDefault();
+ resizePane(frame.getBoundingClientRect().height + step);
+ },
+ [resizePane],
+ );
const onScroll = useCallback(() => {
const pane = paneRef.current;
@@ -677,25 +770,6 @@ export function DebuggingTab() {
: t("settings.debugging.statusLive")}
</span>
)}
- <Tooltip>
- <TooltipTrigger asChild={true}>
- <Button
- size="icon-sm"
- variant="ghost"
- aria-pressed={wrap}
- aria-label={t("settings.debugging.wrapLines")}
- onClick={() => setWrap((previous) => !previous)}
- className={cn(
- wrap ? "bg-muted text-foreground" : "text-muted-foreground",
- )}
- >
- <HugeiconsIcon strokeWidth={1.75} icon={TextWrapIcon} />
- </Button>
- </TooltipTrigger>
- <TooltipContent>
- {t("settings.debugging.wrapLines")}
- </TooltipContent>
- </Tooltip>
</div>
</div>
@@ -725,39 +799,82 @@ export function DebuggingTab() {
) : null}
<div className="relative">
- {/* One text surface, not an element per line: this repaints on every
- poll and 1000 nodes per tick is what makes a log pane feel broken. */}
- <pre
- ref={paneRef}
- onScroll={onScroll}
- data-testid="debug-log-pane"
+ {/* Border on the frame, scrolling inside it: keeps the scrollbar off the rounded corners. */}
+ <div
+ ref={frameRef}
+ style={paneHeight === null ? undefined : { height: paneHeight }}
className={cn(
- "h-[min(26rem,45vh)] w-full overflow-auto [overflow-anchor:none] scroll-rounded rounded-lg border border-border/60 bg-muted/20 px-3.5 py-3 font-mono text-ui-11 leading-[1.55] text-foreground/90 dark:border-transparent dark:bg-[rgb(255_255_255_/_calc(0.04*var(--contrast-wash-gain,1)))]",
- wrap ? "whitespace-pre-wrap break-words" : "whitespace-pre",
- !text && "text-muted-foreground",
+ "flex rounded-lg border border-border/60 bg-muted/20 py-1 pr-0 pl-1 dark:border-transparent dark:bg-[rgb(255_255_255_/_calc(0.04*var(--contrast-wash-gain,1)))]",
+ paneHeight === null && "h-[min(26rem,45vh)]",
)}
>
- {text ||
- (trimmedFilter && buffer.lines.length > 0
- ? t("settings.debugging.noMatches")
- : t("settings.debugging.empty"))}
- </pre>
+ {/* One text surface, not an element per line: this repaints on every
+ poll and 1000 nodes per tick is what makes a log pane feel broken. */}
+ <pre
+ ref={paneRef}
+ onScroll={onScroll}
+ data-testid="debug-log-pane"
+ className={cn(
+ "h-full w-full overflow-auto [overflow-anchor:none] scroll-rounded rounded-md py-2 pr-11 pl-2.5 font-mono text-ui-11 leading-[1.55] text-foreground/90",
+ wrap ? "whitespace-pre-wrap break-words" : "whitespace-pre",
+ !text && "text-muted-foreground",
+ )}
+ >
+ {text ||
+ (trimmedFilter && buffer.lines.length > 0
+ ? t("settings.debugging.noMatches")
+ : t("settings.debugging.empty"))}
+ </pre>
+ </div>
+ <Tooltip>
+ <TooltipTrigger asChild={true}>
+ <Button
+ size="icon-sm"
+ variant="ghost"
+ aria-pressed={wrap}
+ aria-label={t("settings.debugging.wrapLines")}
+ onClick={() => setWrap((previous) => !previous)}
+ data-testid="debug-log-wrap"
+ className={cn(
+ "absolute top-1.5 right-3.5 size-7 bg-background/80 shadow-sm backdrop-blur-sm hover:bg-background [&_svg]:size-3.5",
+ wrap ? "text-foreground" : "text-muted-foreground",
+ )}
+ >
+ <HugeiconsIcon strokeWidth={1.75} icon={TextWrapIcon} />
+ </Button>
+ </TooltipTrigger>
+ <TooltipContent>{t("settings.debugging.wrapLines")}</TooltipContent>
+ </Tooltip>
{!following && text ? (
<Button
size="xs"
variant="dark"
onClick={scrollToBottom}
data-testid="debug-log-jump-to-latest"
- className="absolute right-3 bottom-3 rounded-full shadow-md"
+ className="absolute right-4 bottom-3 rounded-full pr-2.5 pl-2 shadow-md"
>
- <HugeiconsIcon
- strokeWidth={1.75}
- icon={ChevronDownDoubleStandardIcon}
- />
+ <ArrowDownIcon strokeWidth={2} />
{t("settings.debugging.jumpToLatest")}
</Button>
) : null}
</div>
+ <button
+ // biome-ignore lint/a11y/useSemanticElements: a focusable drag splitter, which an <hr> cannot be
+ type="button"
+ role="separator"
+ aria-orientation="horizontal"
+ aria-label={t("settings.debugging.resizeLog")}
+ aria-valuemin={PANE_MIN_HEIGHT_PX}
+ aria-valuenow={paneHeight ?? undefined}
+ title={t("settings.debugging.resizeLog")}
+ onPointerDown={onResizeStart}
+ onKeyDown={onResizeKey}
+ onDoubleClick={() => resizePane(null)}
+ data-testid="debug-log-resize"
+ className="group/resize -mt-2.5 flex h-3 w-full cursor-row-resize touch-none items-center justify-center rounded-full focus-visible:outline-none"
+ >
+ <span className="h-1 w-10 rounded-full bg-border transition-colors group-hover/resize:bg-muted-foreground/50 group-focus-visible/resize:bg-ring" />
+ </button>
<div className="flex flex-wrap items-center justify-between gap-x-4 gap-y-2">
<div className="flex min-w-0 flex-1 basis-48 items-center gap-1">
@@ -803,7 +920,7 @@ export function DebuggingTab() {
</Button>
<Button
size="sm"
- variant="ghost"
+ variant="muted"
data-testid="debug-log-download-all"
aria-busy={exporting}
disabled={exporting}
diff --git a/studio/frontend/src/i18n/locales/ar.ts b/studio/frontend/src/i18n/locales/ar.ts
index d55134d29a7..27ddb386a14 100644
--- a/studio/frontend/src/i18n/locales/ar.ts
+++ b/studio/frontend/src/i18n/locales/ar.ts
@@ -1425,7 +1425,8 @@ export const ar = {
lineCount: "{count} سطر",
filteredLineCount: "{shown} من {total} سطر",
wrapLines: "التفاف الأسطر",
- jumpToLatest: "الانتقال إلى الأحدث",
+ jumpToLatest: "الأحدث",
+ resizeLog: "اسحب لتغيير حجم السجل",
noMatches: "لا توجد أسطر تطابق عامل التصفية.",
mode: "الوضع",
modeLive: "مباشر",
diff --git a/studio/frontend/src/i18n/locales/de.ts b/studio/frontend/src/i18n/locales/de.ts
index 6d417c3bba4..21ecf70fa7a 100644
--- a/studio/frontend/src/i18n/locales/de.ts
+++ b/studio/frontend/src/i18n/locales/de.ts
@@ -1429,7 +1429,8 @@ export const de = {
lineCount: "{count} Zeilen",
filteredLineCount: "{shown} von {total} Zeilen",
wrapLines: "Zeilen umbrechen",
- jumpToLatest: "Zum Ende springen",
+ jumpToLatest: "Neueste",
+ resizeLog: "Ziehen, um die Protokollgröße zu ändern",
noMatches: "Keine Zeilen passen zum Filter.",
mode: "Modus",
modeLive: "Live",
diff --git a/studio/frontend/src/i18n/locales/en.ts b/studio/frontend/src/i18n/locales/en.ts
index 6b5c43fa939..1795f57cc53 100644
--- a/studio/frontend/src/i18n/locales/en.ts
+++ b/studio/frontend/src/i18n/locales/en.ts
@@ -1482,7 +1482,8 @@ export const en = {
lineCount: "{count} lines",
filteredLineCount: "{shown} of {total} lines",
wrapLines: "Wrap lines",
- jumpToLatest: "Jump to latest",
+ jumpToLatest: "Latest",
+ resizeLog: "Drag to resize the log",
noMatches: "No lines match the filter.",
mode: "Mode",
modeLive: "Live",
diff --git a/studio/frontend/src/i18n/locales/es.ts b/studio/frontend/src/i18n/locales/es.ts
index 8c7897dfc6d..2dced77cb7f 100644
--- a/studio/frontend/src/i18n/locales/es.ts
+++ b/studio/frontend/src/i18n/locales/es.ts
@@ -1428,7 +1428,8 @@ export const es = {
lineCount: "{count} líneas",
filteredLineCount: "{shown} de {total} líneas",
wrapLines: "Ajustar líneas",
- jumpToLatest: "Ir al final",
+ jumpToLatest: "Recientes",
+ resizeLog: "Arrastra para cambiar el tamaño del registro",
noMatches: "Ninguna línea coincide con el filtro.",
mode: "Modo",
modeLive: "En vivo",
diff --git a/studio/frontend/src/i18n/locales/fr.ts b/studio/frontend/src/i18n/locales/fr.ts
index 27a335c8943..5812624dbdf 100644
--- a/studio/frontend/src/i18n/locales/fr.ts
+++ b/studio/frontend/src/i18n/locales/fr.ts
@@ -1429,7 +1429,8 @@ export const fr = {
lineCount: "{count} lignes",
filteredLineCount: "{shown} sur {total} lignes",
wrapLines: "Retour à la ligne",
- jumpToLatest: "Aller à la fin",
+ jumpToLatest: "Récents",
+ resizeLog: "Faites glisser pour redimensionner le journal",
noMatches: "Aucune ligne ne correspond au filtre.",
mode: "Mode",
modeLive: "En direct",
diff --git a/studio/frontend/src/i18n/locales/he.ts b/studio/frontend/src/i18n/locales/he.ts
index 164261f1b0f..d0ea75fa409 100644
--- a/studio/frontend/src/i18n/locales/he.ts
+++ b/studio/frontend/src/i18n/locales/he.ts
@@ -1531,7 +1531,8 @@ export const he = {
lineCount: "{count} שורות",
filteredLineCount: "{shown} מתוך {total} שורות",
wrapLines: "גלישת שורות",
- jumpToLatest: "קפוץ לאחרון",
+ jumpToLatest: "האחרונים",
+ resizeLog: "גרור כדי לשנות את גודל היומן",
noMatches: "אין שורות התואמות למסנן.",
mode: "מצב",
modeLive: "חי",
diff --git a/studio/frontend/src/i18n/locales/hi.ts b/studio/frontend/src/i18n/locales/hi.ts
index ceec6ca410b..9e52b4700c2 100644
--- a/studio/frontend/src/i18n/locales/hi.ts
+++ b/studio/frontend/src/i18n/locales/hi.ts
@@ -1429,7 +1429,8 @@ export const hi = {
lineCount: "{count} पंक्तियाँ",
filteredLineCount: "{total} में से {shown} पंक्तियाँ",
wrapLines: "पंक्तियाँ रैप करें",
- jumpToLatest: "नवीनतम पर जाएँ",
+ jumpToLatest: "नवीनतम",
+ resizeLog: "लॉग का आकार बदलने के लिए खींचें",
noMatches: "फ़िल्टर से कोई पंक्ति मेल नहीं खाती।",
mode: "मोड",
modeLive: "लाइव",
diff --git a/studio/frontend/src/i18n/locales/it.ts b/studio/frontend/src/i18n/locales/it.ts
index e8f3e02d707..8a77bb8630c 100644
--- a/studio/frontend/src/i18n/locales/it.ts
+++ b/studio/frontend/src/i18n/locales/it.ts
@@ -1330,7 +1330,8 @@ export const it = {
lineCount: "{count} righe",
filteredLineCount: "{shown} di {total} righe",
wrapLines: "Righe a capo",
- jumpToLatest: "Vai alla fine",
+ jumpToLatest: "Recenti",
+ resizeLog: "Trascina per ridimensionare il log",
noMatches: "Nessuna riga corrisponde al filtro.",
mode: "Modalità",
modeLive: "In tempo reale",
diff --git a/studio/frontend/src/i18n/locales/ja.ts b/studio/frontend/src/i18n/locales/ja.ts
index ed5ac5826a0..95881b43c44 100644
--- a/studio/frontend/src/i18n/locales/ja.ts
+++ b/studio/frontend/src/i18n/locales/ja.ts
@@ -1427,7 +1427,8 @@ export const ja = {
lineCount: "{count} 行",
filteredLineCount: "{total} 行中 {shown} 行",
wrapLines: "行を折り返す",
- jumpToLatest: "最新へ移動",
+ jumpToLatest: "最新",
+ resizeLog: "ドラッグしてログのサイズを変更",
noMatches: "フィルターに一致する行はありません。",
mode: "モード",
modeLive: "ライブ",
diff --git a/studio/frontend/src/i18n/locales/ko.ts b/studio/frontend/src/i18n/locales/ko.ts
index 068ac7debc1..b3c18b27317 100644
--- a/studio/frontend/src/i18n/locales/ko.ts
+++ b/studio/frontend/src/i18n/locales/ko.ts
@@ -1425,7 +1425,8 @@ export const ko = {
lineCount: "{count}줄",
filteredLineCount: "{total}줄 중 {shown}줄",
wrapLines: "줄 바꿈",
- jumpToLatest: "최신으로 이동",
+ jumpToLatest: "최신",
+ resizeLog: "드래그하여 로그 크기 조정",
noMatches: "필터와 일치하는 줄이 없습니다.",
mode: "모드",
modeLive: "실시간",
diff --git a/studio/frontend/src/i18n/locales/pt-br.ts b/studio/frontend/src/i18n/locales/pt-br.ts
index bebb2937286..19dbf11b3e3 100644
--- a/studio/frontend/src/i18n/locales/pt-br.ts
+++ b/studio/frontend/src/i18n/locales/pt-br.ts
@@ -1427,7 +1427,8 @@ export const ptBR = {
lineCount: "{count} linhas",
filteredLineCount: "{shown} de {total} linhas",
wrapLines: "Quebrar linhas",
- jumpToLatest: "Ir para o fim",
+ jumpToLatest: "Recentes",
+ resizeLog: "Arraste para redimensionar o log",
noMatches: "Nenhuma linha corresponde ao filtro.",
mode: "Modo",
modeLive: "Ao vivo",
diff --git a/studio/frontend/src/i18n/locales/ru.ts b/studio/frontend/src/i18n/locales/ru.ts
index 499cd2ed3f9..3d81f77e813 100644
--- a/studio/frontend/src/i18n/locales/ru.ts
+++ b/studio/frontend/src/i18n/locales/ru.ts
@@ -1428,7 +1428,8 @@ export const ru = {
lineCount: "Строк: {count}",
filteredLineCount: "{shown} из {total} строк",
wrapLines: "Перенос строк",
- jumpToLatest: "К последним",
+ jumpToLatest: "Последние",
+ resizeLog: "Перетащите, чтобы изменить размер журнала",
noMatches: "Ни одна строка не соответствует фильтру.",
mode: "Режим",
modeLive: "В реальном времени",
diff --git a/studio/frontend/src/i18n/locales/sv.ts b/studio/frontend/src/i18n/locales/sv.ts
index 87441148e0f..8241e5a649f 100644
--- a/studio/frontend/src/i18n/locales/sv.ts
+++ b/studio/frontend/src/i18n/locales/sv.ts
@@ -1564,7 +1564,8 @@ export const sv = {
lineCount: "{count} rader",
filteredLineCount: "{shown} av {total} rader",
wrapLines: "Radbryt",
- jumpToLatest: "Hoppa till senaste",
+ jumpToLatest: "Senaste",
+ resizeLog: "Dra för att ändra loggens storlek",
noMatches: "Inga rader matchar filtret.",
mode: "Läge",
modeLive: "Direkt",
diff --git a/studio/frontend/src/i18n/locales/zh-CN.ts b/studio/frontend/src/i18n/locales/zh-CN.ts
index fdbe19b328f..4ed459d24c5 100644
--- a/studio/frontend/src/i18n/locales/zh-CN.ts
+++ b/studio/frontend/src/i18n/locales/zh-CN.ts
@@ -1423,7 +1423,8 @@ export const zhCN = {
lineCount: "{count} 行",
filteredLineCount: "共 {total} 行,显示 {shown} 行",
wrapLines: "自动换行",
- jumpToLatest: "跳到最新",
+ jumpToLatest: "最新",
+ resizeLog: "拖动以调整日志大小",
noMatches: "没有与筛选条件匹配的行。",
mode: "模式",
modeLive: "实时",
diff --git a/studio/frontend/tests/debug-log-export.test.ts b/studio/frontend/tests/debug-log-export.test.ts
index abbe4088897..2ab42f67e33 100644
--- a/studio/frontend/tests/debug-log-export.test.ts
+++ b/studio/frontend/tests/debug-log-export.test.ts
@@ -190,7 +190,6 @@ function makeWorld(options: {
"@/features/hub": { formatBytes: (bytes: number) => `${bytes} B` },
"@/i18n": { useT: () => t },
"@/lib/api-base": apiStubs["@/lib/api-base"],
- "@/lib/chevron-icons": { ChevronDownDoubleStandardIcon: [] },
"@/lib/strip-ansi": { stripAnsi: (value: string) => value },
"@/lib/toast": { toast },
"@/lib/utils": {
@@ -198,6 +197,7 @@ function makeWorld(options: {
},
"@hugeicons/core-free-icons": new Proxy({}, { get: () => ({}) }),
"@hugeicons/react": { HugeiconsIcon: () => null },
+ "lucide-react": { ArrowDownIcon: () => null },
"../api/debug-logs": api,
"../components/settings-row": {
SettingsRow: (props: { label: string; children?: React.ReactNode }) =>
diff --git a/studio/frontend/tests/debug-log-pane-layout.test.ts b/studio/frontend/tests/debug-log-pane-layout.test.ts
new file mode 100644
index 00000000000..69c430be20a
--- /dev/null
+++ b/studio/frontend/tests/debug-log-pane-layout.test.ts
@@ -0,0 +1,52 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+
+import assert from "node:assert/strict";
+import test from "node:test";
+
+import { readSrc } from "./helpers/kit.ts";
+
+const tab = readSrc("features/settings/tabs/debugging-tab.tsx");
+const pane = tab.slice(
+ tab.indexOf("ref={frameRef}"),
+ tab.indexOf('data-testid="debug-log-resize"'),
+);
+
+test("the wrap toggle sits on the log pane, not in the toolbar", () => {
+ assert.ok(pane.includes('data-testid="debug-log-wrap"'));
+ assert.ok(pane.includes('t("settings.debugging.wrapLines")'));
+ assert.ok(
+ !tab
+ .slice(0, tab.indexOf("ref={frameRef}"))
+ .includes("settings.debugging.wrapLines"),
+ );
+});
+
+test("the frame draws the border so the pane's scrollbar stays off its corners", () => {
+ assert.match(
+ pane,
+ /"flex rounded-lg border border-border\/60 bg-muted\/20 py-1 pr-0 pl-1/,
+ );
+ assert.match(
+ pane,
+ /"h-full w-full overflow-auto \[overflow-anchor:none\] scroll-rounded rounded-md/,
+ );
+});
+
+test("jump to latest is a plain down arrow with even padding", () => {
+ assert.match(pane, /rounded-full pr-2\.5 pl-2 shadow-md"\s*>\s*<ArrowDownIcon/);
+ assert.doesNotMatch(tab, /ChevronDownDouble/);
+});
+
+test("the pane resizes by drag and keyboard and remembers its height", () => {
+ for (const needle of [
+ 'role="separator"',
+ "onPointerDown={onResizeStart}",
+ "onKeyDown={onResizeKey}",
+ "onDoubleClick={() => resizePane(null)}",
+ 'const PANE_HEIGHT_STORAGE_KEY = "unsloth_debug_log_pane_height";',
+ "}, [text, wrap, paneHeight]);",
+ ]) {
+ assert.ok(tab.includes(needle), needle);
+ }
+});
diff --git a/studio/frontend/tests/dialog-scrollbar-corners.test.ts b/studio/frontend/tests/dialog-scrollbar-corners.test.ts
index 3d52962b115..b0e94ef7b0a 100644
--- a/studio/frontend/tests/dialog-scrollbar-corners.test.ts
+++ b/studio/frontend/tests/dialog-scrollbar-corners.test.ts
@@ -46,7 +46,7 @@ test("dialogs and inline rounded scrollers use it", () => {
for (const [file, needle] of [
["components/ui/dialog.tsx", "overflow-y-auto scroll-rounded rounded-3xl"],
["components/ui/alert-dialog.tsx", "overflow-y-auto scroll-rounded rounded-3xl"],
- ["features/settings/tabs/debugging-tab.tsx", "scroll-rounded rounded-lg"],
+ ["features/settings/tabs/debugging-tab.tsx", "scroll-rounded rounded-md"],
["features/api-monitor/api-monitor-page.tsx", "scroll-rounded rounded-lg"],
["features/export/components/export-run-panel.tsx", "scroll-rounded rounded-lg"],
["features/chat/components/research-activity-panel.tsx", "scroll-rounded rounded-xl"],