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: open update-notes links in the Desktop app, treat .term and .tcsh downloads as code (#17394)
Daniel Han358e8d173502
diff --git a/studio/frontend/src/components/update/release-notes-panel.tsx b/studio/frontend/src/components/update/release-notes-panel.tsxindex 43cbfe46e4b..9954ac2385f 100644--- a/studio/frontend/src/components/update/release-notes-panel.tsx+++ b/studio/frontend/src/components/update/release-notes-panel.tsx@@ -13,12 +13,14 @@ import {} from "@/components/update/update-notes-layout";import { useReleaseNotes } from "@/hooks/use-release-notes";import { useT } from "@/i18n";+import { openLink } from "@/lib/open-link";import { resolveReleaseBodyLinks } from "@/lib/release-body-links";import {type ReleaseNotesLink,releaseNotesPreview,} from "@/lib/release-notes-preview";import {+ type MouseEvent,type ReactElement,type ReactNode,useCallback,@@ -99,6 +101,13 @@ function NotesMessage({);}+// target="_blank" has nowhere to go in the Tauri webview; openLink() uses the system browser.+function handleExternalClick(event: MouseEvent<HTMLAnchorElement>): void {+ if (openLink(event.currentTarget.href)) {+ event.preventDefault();+ }+}+function NotesLink({href,isRelease,@@ -112,6 +121,7 @@ function NotesLink({href={href}target="_blank"rel="noopener noreferrer"+ onClick={handleExternalClick}className={UPDATE_NOTES_LINK_CLASS}data-testid="update-release-notes-link">@@ -255,6 +265,7 @@ function linked(href={link.href}target="_blank"rel="noopener noreferrer"+ onClick={handleExternalClick}className="underline decoration-foreground/40 underline-offset-2 transition-colors hover:decoration-foreground">{text.slice(link.start, link.end)}diff --git a/studio/frontend/src/features/browser/dangerous-file-types.json b/studio/frontend/src/features/browser/dangerous-file-types.jsonindex bfeae37d08a..dece0f982fd 100644--- a/studio/frontend/src/features/browser/dangerous-file-types.json+++ b/studio/frontend/src/features/browser/dangerous-file-types.json@@ -130,6 +130,8 @@"sparsebundle","sparseimage","sys",+ "tcsh",+ "term","terminal","theme","themepack",diff --git a/studio/frontend/tests/browser-settings.test.ts b/studio/frontend/tests/browser-settings.test.tsindex 1d06aae2ca5..fcad2d4626b 100644--- a/studio/frontend/tests/browser-settings.test.ts+++ b/studio/frontend/tests/browser-settings.test.ts@@ -565,6 +565,9 @@ test("files that run code are recognised however the name is cased, padded or pafor (const { name, dangerous } of fixture.cases) assert.equal(isDangerousDownload(name), dangerous, name);assert.equal(isDangerousDownload("C:\\Users\\a\\setup.exe"), true);assert.equal(isDangerousDownload("dir.exe/readme.txt"), false);+ // Terminal opens a .term and runs its ExecutionString; tcsh sits with csh, ksh and zsh.+ assert.equal(isDangerousDownload("notes.term"), true);+ assert.equal(isDangerousDownload("run.tcsh"), true);// Saved names are cut to 240 bytes: a tail too long to keep as the extension is cut off, leaving .exe last.assert.equal(isDangerousDownload(`${"a".repeat(236)}.exe${"x".repeat(40)}`), true);assert.equal(isDangerousDownload(`${"a".repeat(300)}.txt`), false);diff --git a/studio/frontend/tests/release-notes-links-open-link.test.ts b/studio/frontend/tests/release-notes-links-open-link.test.tsnew file mode 100644index 00000000000..c50a1505ff0--- /dev/null+++ b/studio/frontend/tests/release-notes-links-open-link.test.ts@@ -0,0 +1,22 @@+// SPDX-License-Identifier: AGPL-3.0-only+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0++// target="_blank" has nowhere to go in the Tauri webview, so every update-notes anchor goes through openLink().+// Read from source: the node suite has no DOM.++import assert from "node:assert/strict";+import test from "node:test";++import { readSrc } from "./helpers/kit.ts";++const NOTES = readSrc("components/update/release-notes-panel.tsx");++test("every _blank anchor in the release notes panel opens through openLink", () => {+ const anchors = NOTES.split("<a").slice(1).map((chunk) => chunk.slice(0, chunk.indexOf(">")));+ assert.ok(anchors.length >= 2, "expected the notes link and the summary links");+ for (const anchor of anchors) {+ if (!anchor.includes('target="_blank"')) continue;+ assert.match(anchor, /onClick=\{handleExternalClick\}/, anchor);+ }+ assert.match(NOTES, /openLink\(event\.currentTarget\.href\)/);+});diff --git a/studio/src-tauri/src/browser_downloads.rs b/studio/src-tauri/src/browser_downloads.rsindex 952f0ff71ba..3cd5ab3be29 100644--- a/studio/src-tauri/src/browser_downloads.rs+++ b/studio/src-tauri/src/browser_downloads.rs@@ -757,6 +757,8 @@ mod tests {"Install.CMD","run.sh","tool.command",+ "notes.term",+ "run.tcsh","x.jar","Foo.app","a.exe. ",