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: remove OS tabs from generated agent command (#10586)
Michael Han0bc4a16a3624
diff --git a/studio/frontend/src/features/settings/tabs/agents-tab.tsx b/studio/frontend/src/features/settings/tabs/agents-tab.tsxindex 1957cd8dbd1..e239f1de712 100644--- a/studio/frontend/src/features/settings/tabs/agents-tab.tsx+++ b/studio/frontend/src/features/settings/tabs/agents-tab.tsx@@ -651,7 +651,7 @@ export function AgentsTab() {keepUnsupportedTags: false,enabled: online,});- // Seed a remote command from the client platform; the shell picker below can+ // Seed a remote command from the client platform; the page's shell selector can// override it for SSH, WSL, containers, or any other paste destination.// Anchor the match: a bare includes("win") would also match "darwin".const [isWindowsClient] = useState(() => {@@ -1316,6 +1316,46 @@ export function AgentsTab() {{t("settings.agents.intro")}</p>+ <fieldset className="flex min-w-0 items-center gap-0.5">+ <legend className="mb-2 text-xs font-medium text-foreground">+ {t("settings.agents.commandShell")}+ </legend>+ <button+ type="button"+ onClick={() => {+ setCommandOsOverride("unix");+ setStoredOs("unix");+ resetCopied();+ }}+ aria-pressed={commandOs === "unix"}+ className={cn(+ "rounded-full px-2.5 py-1 text-ui-11 font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ commandOs === "unix"+ ? "hub-tab-toggle-pill text-foreground"+ : "text-muted-foreground hover:text-foreground",+ )}+ >+ {t("settings.apiKeys.osUnix")}+ </button>+ <button+ type="button"+ onClick={() => {+ setCommandOsOverride("windows");+ setStoredOs("windows");+ resetCopied();+ }}+ aria-pressed={commandOs === "windows"}+ className={cn(+ "rounded-full px-2.5 py-1 text-ui-11 font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ commandOs === "windows"+ ? "hub-tab-toggle-pill text-foreground"+ : "text-muted-foreground hover:text-foreground",+ )}+ >+ {t("settings.apiKeys.osWindows")}+ </button>+ </fieldset>+<sectionaria-label={t("settings.agents.commandBuilder")}className="flex w-full flex-col gap-6"@@ -1593,50 +1633,9 @@ export function AgentsTab() {) : null}<div className="flex min-w-0 flex-col gap-2.5">- <div className="flex flex-wrap items-center justify-between gap-2">- <span className="text-xs font-medium text-foreground">- {t("settings.agents.generatedCommand")}- </span>- <fieldset className="flex min-w-0 items-center gap-0.5">- <legend className="sr-only">- {t("settings.agents.generatedCommand")}- </legend>- <button- type="button"- onClick={() => {- setCommandOsOverride("unix");- setStoredOs("unix");- resetCopied();- }}- aria-pressed={commandOs === "unix"}- className={cn(- "rounded-full px-2.5 py-1 text-ui-11 font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",- commandOs === "unix"- ? "hub-tab-toggle-pill text-foreground"- : "text-muted-foreground hover:text-foreground",- )}- >- {t("settings.apiKeys.osUnix")}- </button>- <button- type="button"- onClick={() => {- setCommandOsOverride("windows");- setStoredOs("windows");- resetCopied();- }}- aria-pressed={commandOs === "windows"}- className={cn(- "rounded-full px-2.5 py-1 text-ui-11 font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",- commandOs === "windows"- ? "hub-tab-toggle-pill text-foreground"- : "text-muted-foreground hover:text-foreground",- )}- >- {t("settings.apiKeys.osWindows")}- </button>- </fieldset>- </div>+ <span className="text-xs font-medium text-foreground">+ {t("settings.agents.generatedCommand")}+ </span><p className="text-ui-11 leading-relaxed text-muted-foreground">{t("settings.agents.automaticSettingsNote")}</p>diff --git a/studio/frontend/src/i18n/locales/ar.ts b/studio/frontend/src/i18n/locales/ar.tsindex 81debf6e72c..ca5badeb662 100644--- a/studio/frontend/src/i18n/locales/ar.ts+++ b/studio/frontend/src/i18n/locales/ar.ts@@ -1259,6 +1259,7 @@ export const ar = {copy: "نسخ",copied: "تم النسخ",commandBuilder: "منشئ الأوامر",+ commandShell: "الصدفة لجميع الأوامر",agent: "وكيل البرمجة",model: "النموذج",searchModels: "ابحث عن نماذج GGUF...",diff --git a/studio/frontend/src/i18n/locales/de.ts b/studio/frontend/src/i18n/locales/de.tsindex 3012133a888..3e6908bfae1 100644--- a/studio/frontend/src/i18n/locales/de.ts+++ b/studio/frontend/src/i18n/locales/de.ts@@ -1288,6 +1288,7 @@ export const de = {copy: "Kopieren",copied: "Kopiert",commandBuilder: "Befehlsgenerator",+ commandShell: "Shell für alle Befehle",agent: "Coding-Agent",model: "Modell",searchModels: "GGUF-Modelle suchen...",diff --git a/studio/frontend/src/i18n/locales/en.ts b/studio/frontend/src/i18n/locales/en.tsindex ec86ef4725a..c59c68afe3f 100644--- a/studio/frontend/src/i18n/locales/en.ts+++ b/studio/frontend/src/i18n/locales/en.ts@@ -1256,6 +1256,7 @@ export const en = {copy: "Copy",copied: "Copied",commandBuilder: "Command builder",+ commandShell: "Shell for all commands",agent: "Coding agent",model: "Model",searchModels: "Search GGUF models...",diff --git a/studio/frontend/src/i18n/locales/es.ts b/studio/frontend/src/i18n/locales/es.tsindex f60df4227b6..8d69a3f6f7a 100644--- a/studio/frontend/src/i18n/locales/es.ts+++ b/studio/frontend/src/i18n/locales/es.ts@@ -1282,6 +1282,7 @@ export const es = {copy: "Copiar",copied: "Copiado",commandBuilder: "Generador de comandos",+ commandShell: "Shell para todos los comandos",agent: "Agente de programación",model: "Modelo",searchModels: "Buscar modelos GGUF...",diff --git a/studio/frontend/src/i18n/locales/fr.ts b/studio/frontend/src/i18n/locales/fr.tsindex e99c88e7fe6..ae11e19c222 100644--- a/studio/frontend/src/i18n/locales/fr.ts+++ b/studio/frontend/src/i18n/locales/fr.ts@@ -1286,6 +1286,7 @@ export const fr = {copy: "Copier",copied: "Copié",commandBuilder: "Générateur de commande",+ commandShell: "Shell pour toutes les commandes",agent: "Agent de codage",model: "Modèle",searchModels: "Rechercher des modèles GGUF...",diff --git a/studio/frontend/src/i18n/locales/hi.ts b/studio/frontend/src/i18n/locales/hi.tsindex a2e3102acda..15860f57503 100644--- a/studio/frontend/src/i18n/locales/hi.ts+++ b/studio/frontend/src/i18n/locales/hi.ts@@ -1262,6 +1262,7 @@ export const hi = {copy: "कॉपी करें",copied: "कॉपी किया गया",commandBuilder: "कमांड बिल्डर",+ commandShell: "सभी कमांड के लिए शेल",agent: "कोडिंग एजेंट",model: "मॉडल",searchModels: "GGUF मॉडल खोजें...",diff --git a/studio/frontend/src/i18n/locales/it.ts b/studio/frontend/src/i18n/locales/it.tsindex fc031cde974..df2aeef06dd 100644--- a/studio/frontend/src/i18n/locales/it.ts+++ b/studio/frontend/src/i18n/locales/it.ts@@ -1254,6 +1254,7 @@ export const it = {copy: "Copia",copied: "Copiato",commandBuilder: "Generatore di comandi",+ commandShell: "Shell per tutti i comandi",agent: "Agente di programmazione",model: "Modello",searchModels: "Cerca modelli GGUF...",diff --git a/studio/frontend/src/i18n/locales/ja.ts b/studio/frontend/src/i18n/locales/ja.tsindex 9ed1b02469f..0b1ab6612fc 100644--- a/studio/frontend/src/i18n/locales/ja.ts+++ b/studio/frontend/src/i18n/locales/ja.ts@@ -1241,6 +1241,7 @@ export const ja = {copy: "コピー",copied: "コピーしました",commandBuilder: "コマンドビルダー",+ commandShell: "すべてのコマンドに使用するシェル",agent: "コーディングエージェント",model: "モデル",searchModels: "GGUF モデルを検索...",diff --git a/studio/frontend/src/i18n/locales/ko.ts b/studio/frontend/src/i18n/locales/ko.tsindex 681cd7c315e..d4c91ab04b8 100644--- a/studio/frontend/src/i18n/locales/ko.ts+++ b/studio/frontend/src/i18n/locales/ko.ts@@ -1255,6 +1255,7 @@ export const ko = {copy: "복사",copied: "복사됨",commandBuilder: "명령 빌더",+ commandShell: "모든 명령에 사용할 셸",agent: "코딩 에이전트",model: "모델",searchModels: "GGUF 모델 검색...",diff --git a/studio/frontend/src/i18n/locales/pt-br.ts b/studio/frontend/src/i18n/locales/pt-br.tsindex ec8ac26daf4..20c60a9cdfc 100644--- a/studio/frontend/src/i18n/locales/pt-br.ts+++ b/studio/frontend/src/i18n/locales/pt-br.ts@@ -1270,6 +1270,7 @@ export const ptBR = {copy: "Copiar",copied: "Copiado",commandBuilder: "Construtor de comandos",+ commandShell: "Shell para todos os comandos",agent: "Agente de código",model: "Modelo",searchModels: "Buscar modelos GGUF...",diff --git a/studio/frontend/src/i18n/locales/ru.ts b/studio/frontend/src/i18n/locales/ru.tsindex f117aef1e1d..1312d448205 100644--- a/studio/frontend/src/i18n/locales/ru.ts+++ b/studio/frontend/src/i18n/locales/ru.ts@@ -1265,6 +1265,7 @@ export const ru = {copy: "Копировать",copied: "Скопировано",commandBuilder: "Конструктор команды",+ commandShell: "Оболочка для всех команд",agent: "Кодинг-агент",model: "Модель",searchModels: "Поиск моделей GGUF…",diff --git a/studio/frontend/src/i18n/locales/zh-CN.ts b/studio/frontend/src/i18n/locales/zh-CN.tsindex dd40ebbcfc3..9f35d118dd1 100644--- a/studio/frontend/src/i18n/locales/zh-CN.ts+++ b/studio/frontend/src/i18n/locales/zh-CN.ts@@ -1231,6 +1231,7 @@ export const zhCN = {copy: "复制",copied: "已复制",commandBuilder: "命令生成器",+ commandShell: "所有命令使用的 Shell",agent: "编程智能体",model: "模型",searchModels: "搜索 GGUF 模型...",