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: show the desktop app version in Settings > About (#7612)

oobaboogab0ba2937b6d8
diff --git a/studio/frontend/src/features/settings/components/studio-version-section.tsx b/studio/frontend/src/features/settings/components/studio-version-section.tsx
index 2c23e14f97c..f25f22daa9c 100644
--- a/studio/frontend/src/features/settings/components/studio-version-section.tsx
+++ b/studio/frontend/src/features/settings/components/studio-version-section.tsx
@@ -68,8 +68,10 @@ async function fetchStudioVersions(): Promise<StudioVersions> {
// the version rows; General omits it, so the row only shows on About.
export function StudioVersionSection({
llamaCppVersion,
+ desktopAppVersion,
}: {
llamaCppVersion?: string | null;
+ desktopAppVersion?: string | null;
} = {}) {
const t = useT();
const [packageVersion, setPackageVersion] = useState("dev");
@@ -99,6 +101,14 @@ export function StudioVersionSection({
{packageVersion}
</code>
</SettingsRow>
+ {desktopAppVersion !== undefined ? (
+ <SettingsRow label={t("settings.about.desktopAppVersion")}>
+ <code className="font-mono text-xs text-muted-foreground">
+ {desktopAppVersion ??
+ t("settings.about.desktopAppVersionUnavailable")}
+ </code>
+ </SettingsRow>
+ ) : null}
{llamaCppVersion ? (
<SettingsRow label={t("settings.about.llamaCppVersion")}>
<code className="font-mono text-xs text-muted-foreground">
diff --git a/studio/frontend/src/features/settings/desktop-app-version.ts b/studio/frontend/src/features/settings/desktop-app-version.ts
new file mode 100644
index 00000000000..d5b08c282d2
--- /dev/null
+++ b/studio/frontend/src/features/settings/desktop-app-version.ts
@@ -0,0 +1,26 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+
+type VersionReader = () => Promise<string>;
+
+async function readTauriAppVersion(): Promise<string> {
+ const { getVersion } = await import("@tauri-apps/api/app");
+ return getVersion();
+}
+
+// Callers gate this on isTauri: null means desktop without a readable version,
+// and never reaching the loader is what keeps the row off browser builds.
+export async function loadDesktopAppVersion(
+ readVersion: VersionReader = readTauriAppVersion,
+): Promise<string | null> {
+ try {
+ const version = await readVersion();
+ return version.trim() || null;
+ } catch (error) {
+ console.warn(
+ "Tauri app version read failed; showing it as unavailable",
+ error,
+ );
+ return null;
+ }
+}
diff --git a/studio/frontend/src/features/settings/tabs/about-tab.tsx b/studio/frontend/src/features/settings/tabs/about-tab.tsx
index 1f323a9e8d8..c2436e606d5 100644
--- a/studio/frontend/src/features/settings/tabs/about-tab.tsx
+++ b/studio/frontend/src/features/settings/tabs/about-tab.tsx
@@ -25,6 +25,7 @@ import {
type UpdateInstallSource,
UpdateStudioInstructions,
} from "../components/update-studio-instructions";
+import { loadDesktopAppVersion } from "../desktop-app-version";
import { useSettingsDialogStore } from "../stores/settings-dialog-store";
type ApiObject = Record<string, unknown>;
@@ -86,6 +87,7 @@ export function AboutTab() {
const [installSource, setInstallSource] = useState<
UpdateInstallSource | "loading"
>("loading");
+ const [desktopAppVersion, setDesktopAppVersion] = useState<string | null>();
useEffect(() => {
let canceled = false;
@@ -95,6 +97,14 @@ export function AboutTab() {
setInstallSource(nextInstallSource);
}
});
+ // Left undefined on browser builds so the row stays off entirely.
+ if (isTauri) {
+ loadDesktopAppVersion().then((version) => {
+ if (!canceled) {
+ setDesktopAppVersion(version);
+ }
+ });
+ }
return () => {
canceled = true;
@@ -128,7 +138,10 @@ export function AboutTab() {
{/* llama.cpp row lives in the shared version section so it sits with the
Unsloth/Package rows; the prop keeps it About-only (General passes none). */}
- <StudioVersionSection llamaCppVersion={hw.llamaCpp} />
+ <StudioVersionSection
+ llamaCppVersion={hw.llamaCpp}
+ desktopAppVersion={desktopAppVersion}
+ />
<div ref={updateSectionRef} className="scroll-mt-5">
<SettingsSection title={t("settings.about.updates")}>
diff --git a/studio/frontend/src/i18n/locales/en.ts b/studio/frontend/src/i18n/locales/en.ts
index f50fee92f9b..89192f2de95 100644
--- a/studio/frontend/src/i18n/locales/en.ts
+++ b/studio/frontend/src/i18n/locales/en.ts
@@ -945,6 +945,8 @@ export const en = {
description: "Docs, release notes, feedback, and build info.",
studioVersion: "Unsloth Version",
packageVersion: "Package Version",
+ desktopAppVersion: "Desktop App Version",
+ desktopAppVersionUnavailable: "Unavailable",
llamaCppVersion: "llama.cpp Version",
hardware: "Hardware",
gpu: "GPU",
diff --git a/studio/frontend/tests/desktop-app-version.test.ts b/studio/frontend/tests/desktop-app-version.test.ts
new file mode 100644
index 00000000000..afac71ce79b
--- /dev/null
+++ b/studio/frontend/tests/desktop-app-version.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
+
+import assert from "node:assert/strict";
+import test from "node:test";
+
+import { loadDesktopAppVersion } from "../src/features/settings/desktop-app-version.ts";
+
+test("loads the Tauri SemVer displayed by About", async () => {
+ assert.equal(
+ await loadDesktopAppVersion(() => Promise.resolve("1.8.3")),
+ "1.8.3",
+ );
+});
+
+test("reports an unavailable desktop version when the Tauri API rejects", async () => {
+ const version = await loadDesktopAppVersion(() =>
+ Promise.reject(new Error("Tauri app API unavailable")),
+ );
+
+ assert.equal(version, null);
+});