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
Fix three frontend contract tests that main is currently red on (#8703)
Daniel Hanb2158c2cd90e
diff --git a/studio/frontend/src/components/assistant-ui/attachment.tsx b/studio/frontend/src/components/assistant-ui/attachment.tsxindex 2c8ca6abdff..b508d244833 100644--- a/studio/frontend/src/components/assistant-ui/attachment.tsx+++ b/studio/frontend/src/components/assistant-ui/attachment.tsx@@ -337,7 +337,7 @@ const PastedTextAttachmentUI: FC<{</span><span className="flex min-w-0 flex-col"><span className="truncate font-medium text-xs">{name}</span>- <span className="truncate text-[11px] text-muted-foreground">+ <span className="truncate text-ui-11 text-muted-foreground">{/* Hover swaps the size for the action. */}<span className={isComposer ? "group-hover:hidden" : undefined}>{bytes === undefined ? "Pasted text" : formatBytes(bytes)}diff --git a/tests/studio/test_chat_title_generation.py b/tests/studio/test_chat_title_generation.pyindex 3a8cbb95f95..2a1ac2cb562 100644--- a/tests/studio/test_chat_title_generation.py+++ b/tests/studio/test_chat_title_generation.py@@ -92,10 +92,15 @@ def test_tool_call_only_first_assistant_still_uses_first_user_message():'.filter((p): p is Extract<typeof p, { type: "text" }> => p.type === "text")'in extract_block)+ # titleTextOf wraps extractTextParts and appends an attachment sample for a+ # user turn (#8472), so the first user message is still what titles the+ # thread; only the spelling of "read that message's text" changed.assert (- "const userText = extractTextParts(firstUser) || defaultTitle; const assistantText = extractTextParts(firstAssistant);"+ "const userText = titleTextOf(firstUser) || defaultTitle; const assistantText = extractTextParts(firstAssistant);"in generate_block)+ title_block = " ".join(_balanced_block(source, "function titleTextOf").split())+ assert "const text = extractTextParts(m);" in title_blockassert ("(await generateTitleWithModel({ userText, assistantText, })) || fallbackTitleFromUserText(userText);"in generate_blockdiff --git a/tests/studio/test_desktop_reliability_frontend_contract.py b/tests/studio/test_desktop_reliability_frontend_contract.pyindex cb249d74d0d..ad9933ebbd1 100644--- a/tests/studio/test_desktop_reliability_frontend_contract.py+++ b/tests/studio/test_desktop_reliability_frontend_contract.py@@ -53,6 +53,9 @@ PASSWORD_DIALOG = FRONTEND / "features/settings/components/change-password-dialoGENERAL_TAB = FRONTEND / "features/settings/tabs/general-tab.tsx"CLIPBOARD_FILES = FRONTEND / "features/chat/utils/clipboard-files.ts"+# The DataTransfer reading half moved here when long pastes became attachments+# (#8472). Both halves are still one contract, so read them as one.+CLIPBOARD_PAYLOAD = FRONTEND / "features/chat/utils/clipboard-payload.ts"TAURI_CAPABILITIES = REPO / "studio/src-tauri/capabilities/default.json"CHAT_PAGE = FRONTEND / "features/chat/chat-page.tsx"TRAINING_CONFIG_ACTIONS = FRONTEND / "features/studio/wizard/config-actions.tsx"@@ -358,7 +361,9 @@ def test_gallery_video_links_are_absolute_and_saved_natively():def test_clipboard_file_paste_is_bounded_and_wired_to_both_composers():- helper = CLIPBOARD_FILES.read_text(encoding = "utf-8")+ helper = CLIPBOARD_FILES.read_text(encoding = "utf-8") + CLIPBOARD_PAYLOAD.read_text(+ encoding = "utf-8"+ )thread = THREAD.read_text(encoding = "utf-8")shared_composer = SHARED_COMPOSER.read_text(encoding = "utf-8")capabilities = TAURI_CAPABILITIES.read_text(encoding = "utf-8")