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: rename the composer's Code toggle to Tools (#13402)
Michael Han8afc7711091a
diff --git a/studio/SKILL_MENTIONS.md b/studio/SKILL_MENTIONS.mdindex 9a17dcbead9..6bd4562af62 100644--- a/studio/SKILL_MENTIONS.md+++ b/studio/SKILL_MENTIONS.md@@ -2,7 +2,7 @@With an enabled skill in the effective model's Unsloth Studio tool catalog, Unsloth Studio readsthe complete `SKILL.md` for an explicit `@skill-name` **before the first-generation**. With Code off, the composer offers `read_skill` alone, and only for+generation**. With Tools off, the composer offers `read_skill` alone, and only fora thread whose user messages mention an enabled skill, so a plain chat stays outof the tool loop. It does not depend on a model calling `read_skill`. This loadsinstructions, not referenced resources, scripts, or skill creation. Existing@@ -53,5 +53,5 @@ second time. Continue/partial-assistant resumes do not activate old mentions.The Studio chat-completions path covers local GGUF, safetensors, managed engines,and external Studio-owned tool loops (including the shared Codex transport). Itdoes not change client-tool passthrough or introduce mention execution in unrelated-Anthropic/OpenAI compatibility endpoints. Tool-less native models and Code-off+Anthropic/OpenAI compatibility endpoints. Tool-less native models and Tools-offrequests retain their existing behavior.diff --git a/studio/backend/core/inference/skill_mentions.py b/studio/backend/core/inference/skill_mentions.pyindex 8a99e05fb96..241f17abd7b 100644--- a/studio/backend/core/inference/skill_mentions.py+++ b/studio/backend/core/inference/skill_mentions.py@@ -162,7 +162,7 @@ def load_mentioned_skills(gate += (" No local python or terminal tool is available, so its bundled scripts cannot run;"" never claim to have run one, and tell the user a script needs Unsloth Studio's"- " local Code tool."+ " local Tools.")# @john is a person, not a skill: no card or approval. Known-but-unusable skills report unavailable.try:diff --git a/studio/backend/routes/inference.py b/studio/backend/routes/inference.pyindex eb65fcb2b8d..d26f9221ad1 100644--- a/studio/backend/routes/inference.py+++ b/studio/backend/routes/inference.py@@ -6070,13 +6070,13 @@ def _skill_tool_tip(create_tip = (" To create a skill, read skill-creator and then call create_skill." if can_create else "")- # code-off mentions and hosted Code can read skills but cannot run bundled local scripts+ # tools-off mentions and hosted Tools can read skills but cannot run bundled local scriptsscripts_tip = (""if can_run_scriptselse " No local python or terminal tool is available, so a skill's bundled scripts cannot ""run: follow its written instructions, never claim to have run a script, and when a step "- "needs one, tell the user it needs Unsloth Studio's local Code tool."+ "needs one, tell the user it needs Unsloth Studio's local Tools.")return ("Enabled Agent Skills are listed below. Use their descriptions to select one when "diff --git a/studio/backend/tests/test_anthropic_messages.py b/studio/backend/tests/test_anthropic_messages.pyindex b267a06e3fa..3819698f230 100644--- a/studio/backend/tests/test_anthropic_messages.py+++ b/studio/backend/tests/test_anthropic_messages.py@@ -623,7 +623,7 @@ class TestToolActionNudge:assert "create_skill" not in nudge# without python or terminal, a skill's bundled scripts cannot run here.assert "bundled scripts cannot run" in nudge- assert "Unsloth Studio's local Code tool" in nudge+ assert "Unsloth Studio's local Tools" in nudge@pytest.mark.parametrize("code_tool", ["python", "terminal"])def test_skill_nudge_with_a_code_tool_does_not_warn_about_scripts(self, monkeypatch, code_tool):diff --git a/studio/backend/tests/test_explicit_skill_loading.py b/studio/backend/tests/test_explicit_skill_loading.pyindex 86dde9f58f9..4416c7610a1 100644--- a/studio/backend/tests/test_explicit_skill_loading.py+++ b/studio/backend/tests/test_explicit_skill_loading.py@@ -42,6 +42,7 @@ def mention_client(tmp_path, monkeypatch):root = tmp_path / "skills"manifest = root / "skill-creator" / "SKILL.md"manifest.parent.mkdir(parents = True)+ # Compared as bytes: write_text stores CRLF on Windows, read_text would turn it back to LF.manifest.write_text("---\nname: skill-creator\ndescription: Test instructions.\n---\n""Complete manifest sentinel: do not execute or create anything.\n",@@ -82,7 +83,7 @@ def test_reporter_manifest_is_in_first_generation_without_model_read(mention_cliassert response.status_code == 200, response.textassert backend.requests, response.textfirst_context = json.dumps(backend.requests[0]["messages"], ensure_ascii = False)- assert manifest.read_text() in "\n".join(+ assert manifest.read_bytes().decode() in "\n".join(message.get("content", "") for message in backend.requests[0]["messages"]), f"complete SKILL.md absent from first generation: {first_context}"assert '"type": "skill_load"' in response.text@@ -113,7 +114,7 @@ def test_actual_local_request_gates_do_not_load(mention_client, gate):)assert response.status_code == 200, response.textassert backend.requests- assert manifest.read_text() not in "\n".join(+ assert manifest.read_bytes().decode() not in "\n".join(m.get("content", "") for m in backend.requests[0]["messages"])assert '"status": "loaded"' not in response.text@@ -128,7 +129,7 @@ def test_code_off_mention_loads_and_says_scripts_need_code(mention_client, code_"messages": [{"role": "user", "content": "@skill-creator what did i just paste?"}],"stream": True,"enable_tools": True,- # a Code-off mention sends read_skill alone.+ # a Tools-off mention sends read_skill alone."enabled_tools": ["read_skill", "python", "terminal"] if code_on else ["read_skill"],"permission_mode": "auto",},@@ -136,7 +137,7 @@ def test_code_off_mention_loads_and_says_scripts_need_code(mention_client, code_)assert response.status_code == 200, response.textcontext = "\n".join(m.get("content", "") for m in backend.requests[0]["messages"])- assert manifest.read_text() in context+ assert manifest.read_bytes().decode() in contextassert '"status": "loaded"' in response.textnames = {t["function"]["name"] for t in backend.requests[0]["tools"]}assert ("python" in names) is code_on@@ -144,4 +145,4 @@ def test_code_off_mention_loads_and_says_scripts_need_code(mention_client, code_note = "bundled scripts cannot run"assert (note in context) is not code_onif not code_on:- assert "Unsloth Studio's local Code tool" in context+ assert "Unsloth Studio's local Tools" in contextdiff --git a/studio/backend/tests/test_hosted_code_execution_placement.py b/studio/backend/tests/test_hosted_code_execution_placement.pyindex 15765e9b279..18860db2dd6 100644--- a/studio/backend/tests/test_hosted_code_execution_placement.py+++ b/studio/backend/tests/test_hosted_code_execution_placement.py@@ -1,7 +1,7 @@# SPDX-License-Identifier: AGPL-3.0-only# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0-"""Which side runs the code when a turn mixes the Code pill with an Unsloth tool.+"""Which side runs the code when a turn mixes the Tools pill with an Unsloth tool.``code_execution`` runs in the provider's sandbox; ``python`` / ``terminal`` runon the machine Unsloth is installed on. They are two trust boundaries, not two@@ -30,7 +30,7 @@ def test_studio_really_has_no_local_code_execution():@pytest.mark.parametrize("provider_type", ["openai", "anthropic", "gemini"])def test_hosted_code_execution_rides_along_with_a_studio_tool(provider_type):- """RAG or MCP selects the Unsloth loop; the Code pill must still reach the+ """RAG or MCP selects the Unsloth loop; the Tools pill must still reach theprovider's sandbox rather than being dropped on the way."""assert hosted_only_tools(provider_type, ["search_knowledge_base", "code_execution"]) == ["code_execution"diff --git a/studio/backend/tests/test_safetensors_capability_advertise.py b/studio/backend/tests/test_safetensors_capability_advertise.pyindex 2902c8ac46c..df5dd708722 100644--- a/studio/backend/tests/test_safetensors_capability_advertise.py+++ b/studio/backend/tests/test_safetensors_capability_advertise.py@@ -164,7 +164,7 @@ def test_detect_reasoning_flags_none_template_returns_all_false():# Tool guards shipped templates actually write, each read as "no tools" by the older-# exact-substring scan. A false greys out the Search and Code pills, so the user cannot correct it.+# exact-substring scan. A false greys out the Search and Tools pills, so the user cannot correct it.@pytest.mark.parametrize("label, guard",[diff --git a/studio/frontend/src/components/assistant-ui/message-response-details-sheet.tsx b/studio/frontend/src/components/assistant-ui/message-response-details-sheet.tsxindex 14878cfb34c..6f3e2706a03 100644--- a/studio/frontend/src/components/assistant-ui/message-response-details-sheet.tsx+++ b/studio/frontend/src/components/assistant-ui/message-response-details-sheet.tsx@@ -94,7 +94,7 @@ function formatDate(value: Date | number | string | undefined): string | null {const TOOL_CATEGORY_LABELS: Record<string, string> = {search: "Search",fetch: "Fetch",- code: "Code",+ code: "Tools",images: "Images",mcp: "MCP",docs: "Docs",diff --git a/studio/frontend/src/components/assistant-ui/thread.tsx b/studio/frontend/src/components/assistant-ui/thread.tsxindex 15584192f64..8b44451ea11 100644--- a/studio/frontend/src/components/assistant-ui/thread.tsx+++ b/studio/frontend/src/components/assistant-ui/thread.tsx@@ -2848,7 +2848,7 @@ const Composer: FC<{useChatRuntimeStore.getState().setDeepResearchEnabled(false);}}, [deepResearchEnabled, hasResearchMessage, researchThreadId, researchUsed]);- // More than 4 pills: collapse to icons only. Search, Code, and permissions+ // More than 4 pills: collapse to icons only. Search, Tools, and permissions// always show; Images, RAG, MCP and Deep Research are conditional.// Narrow viewports collapse too: the labelled row is wider than a phone composer.const isMobile = useIsMobile();@@ -6485,10 +6485,10 @@ const CodeToolsToggle: FC = () => {disabled={disabled}onClick={() => setCodeToolsEnabled(!codeToolsEnabled)}className="composer-pill-btn"- data-pill-label="Code"+ data-pill-label="Tools"data-active={codeToolsEnabled && !disabled ? "true" : "false"}aria-label={- codeToolsEnabled ? "Disable code execution" : "Enable code execution"+ codeToolsEnabled ? "Disable tools" : "Enable tools"}><PillGlyph>@@ -6498,7 +6498,7 @@ const CodeToolsToggle: FC = () => {strokeWidth={2}/></PillGlyph>- <span>Code</span>+ <span>Tools</span></button>);};@@ -7135,7 +7135,7 @@ const ComposerToolsMenu: FC<{strokeWidth={2}className="scale-[1.12]"/>- Code+ Tools{codeToolsEnabled && !codeDisabled ? (<HugeiconsIconicon={Tick02Icon}diff --git a/studio/frontend/src/features/chat/api/chat-adapter.ts b/studio/frontend/src/features/chat/api/chat-adapter.tsindex 4f11af2e992..6f0cfe1d3d7 100644--- a/studio/frontend/src/features/chat/api/chat-adapter.ts+++ b/studio/frontend/src/features/chat/api/chat-adapter.ts@@ -6798,7 +6798,7 @@ export function createOpenAIStreamAdapter(...(externalCapabilities?.presencePenalty? { presence_penalty: params.presencePenalty }: {}),- // studioLocalCodeTools, not codeToolsEnabled: a Code pill that resolved to the provider's+ // studioLocalCodeTools, not codeToolsEnabled: a Tools pill that resolved to the provider's// sandbox is a hosted request and belongs below, where this body would 400 on permission_mode....(supportsStudioToolsForThisTurn &&(toolsEnabled ||diff --git a/studio/frontend/src/features/chat/api/code-tool-placement.ts b/studio/frontend/src/features/chat/api/code-tool-placement.tsindex 9cf9f256568..73b7d9f4b72 100644--- a/studio/frontend/src/features/chat/api/code-tool-placement.ts+++ b/studio/frontend/src/features/chat/api/code-tool-placement.ts@@ -1,7 +1,7 @@// SPDX-License-Identifier: AGPL-3.0-only// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0-/** Which side of the connection the Code pill runs code on. `code_execution` runs in the+/** Which side of the connection the Tools pill runs code on. `code_execution` runs in the* provider's own sandbox and is billed by them; `python` / `terminal` are Unsloth's tools and* run on the machine Unsloth is installed on. They are two different trust boundaries, so which* one a stored toggle means must not change underneath the user. Until Unsloth's tool loop@@ -12,7 +12,7 @@* user's machine. Unsloth's local tools are for connections with no sandbox at all. */export interface CodeToolPlacementInput {- /** The composer's Code pill (persisted as unsloth_chat_code_tools_enabled). */+ /** The composer's Tools pill (persisted as unsloth_chat_code_tools_enabled). */codeToolsEnabled: boolean;/** This provider AND this model expose the provider's own code sandbox. */hostedCodeExecutionForThisTurn: boolean;@@ -36,7 +36,7 @@ export function selectCodeToolNames(input: CodeToolPlacementInput): CodeToolNamereturn { local: ["python", "terminal", "edit_file", "view_image"], hosted: [] };}-/** Whether the Code pill can do anything on this connection, so the composer can offer it and a+/** Whether the Tools pill can do anything on this connection, so the composer can offer it and a* stored preference can be restored. Read out of the placement itself rather than restated,* because the two must not drift: a pill offered where the placement runs nothing is a toggle* the user turns on to no effect. That is the case for a model on a sandbox-owning providerdiff --git a/studio/frontend/src/features/chat/chat-providers-dialog.tsx b/studio/frontend/src/features/chat/chat-providers-dialog.tsxindex 4e27f9fee61..9495e933c50 100644--- a/studio/frontend/src/features/chat/chat-providers-dialog.tsx+++ b/studio/frontend/src/features/chat/chat-providers-dialog.tsx@@ -327,7 +327,7 @@ export function ChatProvidersSettings({(!editingProviderId || editingBackendProviderType === "custom");const showCustomReasoning =isCustomReasoningConnection && apiType === "chat_completions";- // Unsloth runs Search, Code, MCP and RAG on this machine for any provider advertising the+ // Unsloth runs Search, Tools, MCP and RAG on this machine for any provider advertising the// capability, with no extra opt-in. Say so where the connection is created: tool results// also travel back to the provider as the next turn's input.const runsStudioToolsLocally =@@ -1882,8 +1882,8 @@ export function ChatProvidersSettings({{runsStudioToolsLocally ? (<div className="px-4 py-3"><p className="text-xs text-muted-foreground">- Models on this connection can use Unsloth's Search, Code,- MCP and Docs tools. Those run on this machine, and their+ Models on this connection can use Unsloth's Search, Tools,+ MCP and Docs. Those run on this machine, and theirresults are sent back to the provider as part of the nextmessage. Code and terminal calls still ask before anythingrisky runs.diff --git a/studio/frontend/src/features/chat/runtime-provider.tsx b/studio/frontend/src/features/chat/runtime-provider.tsxindex d38c19e8316..bb4746f6c70 100644--- a/studio/frontend/src/features/chat/runtime-provider.tsx+++ b/studio/frontend/src/features/chat/runtime-provider.tsx@@ -963,7 +963,7 @@ class ServerDocumentAttachmentAdapter implements AttachmentAdapter {}// Rechecked: without the python tool no original is kept, leaving the model only the placeholder.if (text === null && !pythonToolOpensAttachments()) {- const error = `${attachment.name} has no text to read. Turn on Code so the python tool can open it.`;+ const error = `${attachment.name} has no text to read. Turn on Tools so the python tool can open it.`;toast.error(error);throw new Error(error);}@@ -1213,7 +1213,7 @@ class ToolOnlyAttachmentAdapter implements AttachmentAdapter {file: File;}): AsyncGenerator<PendingAttachment, void> {const refusal = !pythonToolRunsInStudio()- ? `Turn on Code with a model that runs the python tool to attach ${file.name}.`+ ? `Turn on Tools with a model that runs the python tool to attach ${file.name}.`: useChatRuntimeStore.getState().incognito? `Temporary chats save no files, so the python tool cannot open ${file.name}.`: file.size > MAX_TOOL_ONLY_ATTACHMENT_BYTESdiff --git a/studio/frontend/src/features/chat/shared-composer.tsx b/studio/frontend/src/features/chat/shared-composer.tsxindex da5eb3f9f2e..4b3497a336b 100644--- a/studio/frontend/src/features/chat/shared-composer.tsx+++ b/studio/frontend/src/features/chat/shared-composer.tsx@@ -991,7 +991,7 @@ export function SharedComposer({const ragDisabled =modelLoaded && ((!externalUsesStudioTools && isExternalModel) || !supportsTools);const showRagPill = !isExternalModel || externalUsesStudioTools;- // Above 4 pills, collapse to icons only. Compare, Search, Code and permissions always show.+ // Above 4 pills, collapse to icons only. Compare, Search, Tools and permissions always show.// Narrow viewports collapse too: the labelled row is wider than a phone-width composer.const isMobile = useIsMobile();const pillCount =@@ -2904,7 +2904,7 @@ export function SharedComposer({strokeWidth={2}className="scale-[1.12]"/>- Code+ Tools{codeToolsEnabled && !codeDisabled ? (<HugeiconsIconicon={MenuTickIcon}@@ -3012,12 +3012,12 @@ export function SharedComposer({disabled={codeDisabled}onClick={() => setCodeToolsEnabled(!codeToolsEnabled)}className="composer-pill-btn"- data-pill-label="Code"+ data-pill-label="Tools"data-active={codeToolsEnabled && !codeDisabled ? "true" : "false"}aria-label={codeToolsEnabled- ? "Disable code execution"- : "Enable code execution"+ ? "Disable tools"+ : "Enable tools"}><PillGlyph>@@ -3027,7 +3027,7 @@ export function SharedComposer({strokeWidth={2}/></PillGlyph>- <span>Code</span>+ <span>Tools</span></button><BrowserAgentPill glyph={(icon) => <PillGlyph>{icon}</PillGlyph>} />{showImagePill && (diff --git a/studio/frontend/src/features/chat/stores/chat-runtime-store.ts b/studio/frontend/src/features/chat/stores/chat-runtime-store.tsindex f56ed0ccdf1..0466e3b2e44 100644--- a/studio/frontend/src/features/chat/stores/chat-runtime-store.ts+++ b/studio/frontend/src/features/chat/stores/chat-runtime-store.ts@@ -1125,7 +1125,7 @@ function buildThreadScopedSnapshot(settings.permissionMode = activeThreadScopedSettings.permissionMode;}// Same for deep research, which apply() also holds back, or toggling any other pill erases- // the stored true. Unless the user just cleared it by enabling Search, Code or Images.+ // the stored true. Unless the user just cleared it by enabling Search, Tools or Images.if (threadId === threadScopedSettingsThreadId &&!explicitlyEditedThreadFields.has("deepResearchEnabled") &&@@ -1907,7 +1907,7 @@ function savePermissionMode(mode: PermissionMode): void {const INITIAL_PERMISSION_MODE: PermissionMode = loadPermissionMode();-/** Re-picking the level already in force is not a fresh grant, so a manual Code-off stands. */+/** Re-picking the level already in force is not a fresh grant, so a manual Tools-off stands. */function codeDeclinedOnEnteringFullAccess(state: ChatRuntimeStore): boolean {return state.permissionMode === "full"? state.codeToolsDeclinedUnderFullAccessdiff --git a/studio/frontend/src/features/chat/types/api.ts b/studio/frontend/src/features/chat/types/api.tsindex 7e2d05800eb..0e9ebd769db 100644--- a/studio/frontend/src/features/chat/types/api.ts+++ b/studio/frontend/src/features/chat/types/api.ts@@ -762,7 +762,7 @@ export interface OpenAIChatCompletionsRequest {* container. OpenAI cloud and the gpt-5.5 family only. */openai_code_exec_container_id?: string | null;/** Anthropic code_execution container id from the prior response in this thread. When set and the- * Code pill is on, the backend forwards a top-level `container` on /v1/messages so filesystem+ * Tools pill is on, the backend forwards a top-level `container` on /v1/messages so filesystem* state persists; unset is auto-created. */anthropic_code_exec_container_id?: string | null;/** Anthropic fast-mode toggle. Opus 4.6 / 4.7 only; dropped silently elsewhere. */diff --git a/studio/frontend/src/features/native-intents/drop-paths.ts b/studio/frontend/src/features/native-intents/drop-paths.tsindex 928a061201b..442fda71301 100644--- a/studio/frontend/src/features/native-intents/drop-paths.ts+++ b/studio/frontend/src/features/native-intents/drop-paths.ts@@ -66,7 +66,7 @@ const VIDEO_EXTS = CHAT_VIDEO_DROP_ACCEPT.split(",").map((ext) =>);/** What the window actually takes, for the rejection toast and the overlay. */-export const SUPPORTED_DROP_HINT = `Supported files: ${DOC_EXTS.join(",")}, ${OPEN_DOCUMENT_ATTACHMENT_EXTENSIONS}, ${RTF_ATTACHMENT_EXTENSIONS}, source and text files, ${TOOL_ONLY_ATTACHMENT_EXTENSIONS} with Code on, ${CHAT_IMAGE_DROP_ACCEPT}, up to ${MAX_AUDIO_FILES} of ${CHAT_AUDIO_DROP_ACCEPT}, one of ${CHAT_VIDEO_DROP_ACCEPT}, or a single .gguf model.`;+export const SUPPORTED_DROP_HINT = `Supported files: ${DOC_EXTS.join(",")}, ${OPEN_DOCUMENT_ATTACHMENT_EXTENSIONS}, ${RTF_ATTACHMENT_EXTENSIONS}, source and text files, ${TOOL_ONLY_ATTACHMENT_EXTENSIONS} with Tools on, ${CHAT_IMAGE_DROP_ACCEPT}, up to ${MAX_AUDIO_FILES} of ${CHAT_AUDIO_DROP_ACCEPT}, one of ${CHAT_VIDEO_DROP_ACCEPT}, or a single .gguf model.`;/** Last path segment of a native path, for display and extension checks. */export function nativeFileName(path: string): string {diff --git a/studio/frontend/tests/code-tool-placement.test.ts b/studio/frontend/tests/code-tool-placement.test.tsindex ec04a9b055f..f903485b5c4 100644--- a/studio/frontend/tests/code-tool-placement.test.ts+++ b/studio/frontend/tests/code-tool-placement.test.ts@@ -1,7 +1,7 @@// SPDX-License-Identifier: AGPL-3.0-only// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0-// Where the Code pill runs code.+// Where the Tools pill runs code.//// Before Unsloth's tool loop reached the general external providers, only// openai_codex carried studio_tools, so `codeToolsEnabled` on an OpenAI,@@ -91,7 +91,7 @@ test("a provider with no sandbox uses Unsloth's own tools", () => {});test("edit_file is local-only, never a stand-in for a hosted sandbox", () => {- // It must not creep into the hosted branch just because the Code pill is+ // It must not creep into the hosted branch just because the Tools pill is// what turns it on.for (const hosted of [true, false]) {const names = selectCodeToolNames({@@ -136,7 +136,7 @@ test("the Unsloth branch never hardcodes local code tools", () => {assert.doesNotMatch(branch,/codeToolsEnabled \? \["python", "terminal"\]/,- "the Code pill must not send local execution regardless of provider",+ "the Tools pill must not send local execution regardless of provider",);// Both sides come from the one helper above, so the local and hosted names// cannot drift apart or both be sent for a single pill.@@ -178,7 +178,7 @@ test("response details record Code from the placement, local or hosted", () => {// ── Whether the pill is offered at all ─────────────────────────────// Until Unsloth's loop reached the general external providers, the composer-// keyed the Code pill on the hosted flag alone, so a model without the hosted+// keyed the Tools pill on the hosted flag alone, so a model without the hosted// sandbox simply did not offer it. Keying it on the Unsloth-tools flag instead// offered it everywhere, including where the rule above deliberately runs// nothing, and the user got a lit toggle that sent enable_tools: false.diff --git a/studio/frontend/tests/hosted-image-tool-with-studio-tools.test.ts b/studio/frontend/tests/hosted-image-tool-with-studio-tools.test.tsindex 336a7abdcc0..262e0500bba 100644--- a/studio/frontend/tests/hosted-image-tool-with-studio-tools.test.ts+++ b/studio/frontend/tests/hosted-image-tool-with-studio-tools.test.ts@@ -25,7 +25,7 @@ function studioToolsBranch(): string {// Images and Fetch have their own toggles and no local implementation. Before// this PR an OpenAI or Gemini connection never took the Unsloth branch, so the-// hosted branch below always carried them; now that Search, Code, MCP or a+// hosted branch below always carried them; now that Search, Tools, MCP or a// project's automatic RAG selects the Unsloth branch instead, a list of purely// local names would leave a lit Images pill out of the request entirely.test("the Unsloth-tools branch still asks for the hosted tools Unsloth cannot run", () => {diff --git a/studio/frontend/tests/provider-capabilities-current-models.test.ts b/studio/frontend/tests/provider-capabilities-current-models.test.tsindex 9d644a3e7ba..48c83c30a5e 100644--- a/studio/frontend/tests/provider-capabilities-current-models.test.ts+++ b/studio/frontend/tests/provider-capabilities-current-models.test.ts@@ -302,7 +302,7 @@ test("the chat-latest aliases advertise no reasoning at all", () => {);});-test("GPT-6 Sol and Luna subscription models use local Code tools", () => {+test("GPT-6 Sol and Luna subscription models use local Tools", () => {setProviderModelCapabilities("openai_codex", {"gpt-6-sol": { vision: true, studio_tools: true },"gpt-6-luna": { vision: true, studio_tools: true },diff --git a/studio/frontend/tests/skills-token-count-discovery.test.ts b/studio/frontend/tests/skills-token-count-discovery.test.tsindex ee191669fc3..720e6164c83 100644--- a/studio/frontend/tests/skills-token-count-discovery.test.ts+++ b/studio/frontend/tests/skills-token-count-discovery.test.ts@@ -81,7 +81,7 @@ test("a sign-out drops the module-level skills snapshot", () => {assert.ok(SKILLS_API_SOURCE.includes("publish(EMPTY_SNAPSHOT)"));});-test("the count passes the counted history so a Code-off @mention is priced like the send", () => {+test("the count passes the counted history so a Tools-off @mention is priced like the send", () => {const refresh = readFileSync(new URL("../src/features/chat/utils/refresh-context-usage.ts", import.meta.url),"utf8",diff --git a/tests/studio/playwright_chat_ui.py b/tests/studio/playwright_chat_ui.pyindex d9c461b9cb9..83f3a459898 100644--- a/tests/studio/playwright_chat_ui.py+++ b/tests/studio/playwright_chat_ui.py@@ -515,7 +515,7 @@ def exercise_permission_mode_controls(page, shoot):choose("Run automatically")expect_mode("Run automatically")expect(page.locator('button[data-pill-label="Search"]:visible').first).to_be_visible()- expect(page.locator('button[data-pill-label="Code"]:visible').first).to_be_visible()+ expect(page.locator('button[data-pill-label="Tools"]:visible').first).to_be_visible()stored = page.evaluate("() => localStorage.getItem('unsloth_chat_permission_mode')")if stored != "off":fail(f"Run automatically persisted {stored!r}, expected 'off'")@@ -1868,8 +1868,8 @@ with sync_playwright() as p:# 7. Composer toggle buttons. Each aria-label flips between# "Disable X" / "Enable X" with state (shared-composer.tsx).# ─────────────────────────────────────────────────────- step("composer toggle buttons (Thinking / Web search / Code execution)")- for feature in ("thinking", "web search", "code execution"):+ step("composer toggle buttons (Thinking / Web search / Tools)")+ for feature in ("thinking", "web search", "tools"):# Match whichever of "Disable X" / "Enable X" is rendered.toggle = page.locator(f'button[aria-label="Disable {feature}"], button[aria-label="Enable {feature}"]'diff --git a/tests/studio/playwright_thread_scoped_settings.py b/tests/studio/playwright_thread_scoped_settings.pyindex c63b15d29d7..d6826748800 100644--- a/tests/studio/playwright_thread_scoped_settings.py+++ b/tests/studio/playwright_thread_scoped_settings.py@@ -375,7 +375,7 @@ def choose_permission(page, label):def expect_pills(page, where, search, code, permission):- for label, wanted in (("Search", search), ("Code", code)):+ for label, wanted in (("Search", search), ("Tools", code)):expect(pill(page, label)).to_have_attribute("data-active", "true" if wanted else "false", timeout = TIMEOUT_MS)@@ -577,8 +577,8 @@ def main():open_thread(page, thread_b)expect_pills(page, "B on first open", False, False, "Approve for me")- step("set Chat B to Code on, Run automatically")- pill(page, "Code").click()+ step("set Chat B to Tools on, Run automatically")+ pill(page, "Tools").click()choose_permission(page, "Run automatically")expect_pills(page, "B after editing", False, True, "Run automatically")shoot(page, "02-chat-b-edited")