Repository navigation
Studio: let @skill mentions work without Code and add bulk skill toggles - #13163
mahiatlinux merged 8 commits into
Conversation
With Code off, an @mention of an enabled skill now offers read_skill for that thread, so the backend preloads its SKILL.md before generation. A plain chat with Code off still sends enable_tools: false, which keeps unslothai#11671 fixed, and create_skill stays with Code. The @ suggestion list now shows whenever the model supports tools, ranks name prefixes first and accepts Tab as well as Enter. When no local python or terminal tool is offered, the skill catalog tip and the preloaded skill block tell the model that bundled scripts cannot run and need the Code tool in Unsloth Studio. Manage skills gets a menu with Enable all, Disable all and Reset to defaults, backed by PUT /api/skills. Reset clears every override, back to how a fresh install has it, and asks first.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Tab only accepts an @ suggestion from the composer itself; the popover stays open when focus moves, so Tab in another field used to rewrite the draft. The frontend mention pattern now allows one trailing sentence mark, like the backend preload, so a Code-off mention never opens the tool loop for a name the backend will not load. A bulk skill change no longer publishes its list after a sign-out or a newer read, and a skill's own Enabled switch waits for the bulk change too. The scripts note now points at the local Code tool, which also holds when Code runs in the provider's sandbox.
A skills read that started during a bulk change no longer cancels it: the change's own list is published and broadcast, and only a sign-out drops it. With Code off, a skill name inside code, a blockquote or a quotation no longer offers read_skill, matching the backend preload that treats it as literal text.
…t like the send The Code-off gate no longer guesses which mentions are literal Markdown: the approximation hid real mentions and could backtrack for seconds on pasted text. A mention the backend treats as literal only opens the loop with read_skill. The token count now settles the skills catalog with the counted user text, as the send path does, so a skill made since page load is priced like the request.
…ng skill tools The Code-off gate keeps read_skill offered for a skill mentioned in any earlier turn, so the send and the count now settle the catalog against every user turn, not only the latest one.
|
With Code off, typing @ in the composer now lists the enabled skills, and a message that mentions one loads its SKILL.md before the model answers. A plain Code-off message still sends no tools. Manage skills also gets Enable all, Disable all and Reset to defaults. What changed
On d64b56d with Code off, Qwen3-4B-Instruct-2507 Q4_K_M (llama.cpp) on CPU received |
Review and repair evidenceReviewed the original contributor head Finding fixedA per-skill toggle left other row switches active, so a second toggle or bulk mutation could overlap it. Since the server serializes writes but responses can publish out of order, the UI could finish on stale state. Commit A/B and local verification
UI evidence
CI and independent reviewThe original feature head passed CodeQL, Lint CI, and the composer compatibility matrix on Linux browsers, Windows browsers, macOS Safari, and macOS browsers. The two repair commits are covered by the full local suites, the focused mutation check, and the exact-head Chromium UI run above. At evidence publication, GitHub's final-head workflows were queued behind a repository-wide backlog (more than 100 queued runs) with no completed Actions failure: Frontend CI, Backend CI, CodeQL, and Composer compatibility. The separate pre-commit failure is the demonstrated current-main failure noted above. The staging mirror was tree-identical to upstream main plus repaired source head. Codex completed review with no findings. |
mahiatlinux
left a comment
There was a problem hiding this comment.
LGTM! Ready to merge, all manually checked.






Summary
Skills in Unsloth Studio were tied to the Code tool. With Code off, the request sent
enable_tools: falseeven when the message @mentioned a skill, so the skill was never loaded, and the @ suggestion list in the composer was hidden. The Code gate came from #12118, which only offers Agent Skills when Code is on to fix #11671: home-dir skills are on by default with no pill of their own, so a plain chat with Code off must not open the tool loop. #12538 added mention preloading and put the mention popover behind the same Code gate.Changes:
read_skillalone, so the backend preloads that skill's SKILL.md before generation. A plain message with Code off still sendsenable_tools: false, so [Feature] Option to disable toolcalls #11671 stays fixed.create_skillwrites files and still needs Code. Earlier turns count because the preloaded SKILL.md is not replayed, so a follow-up can read it again.pythonnorterminalis offered, the skill catalog tip and the preloaded skill block tell the model that bundled scripts cannot run, that it must not claim to have run one, and that a script needs the Code tool in Unsloth Studio.PUT /api/skillsendpoint with body{"enabled": true | false | null}backs the menu.true/falseset every valid, unshadowed skill on disk and keep overrides for skills not currently on disk.nulldrops all overrides. It returns the updated skill list.read_skillis counted only when it would be sent.Testing
Frontend (
studio/frontend):npm testpassed 11159/11159,npm run typecheckis clean, andnpm run i18n:checkreports parity across locales.Backend (
studio/backend): 648 passed.cd studio/backend python -m pytest tests/test_skills.py tests/test_explicit_skill_loading.py tests/test_skill_mention_semantics.py tests/test_anthropic_messages.py -qEnd to end on CPU llama.cpp with Qwen3-4B-Instruct-2507 Q4_K_M, Code off, using a test skill named
report-sentinel:@report-sentinelsendsenable_tools: truewithenabled_tools: ["read_skill"]. A plain message sendsenable_tools: false. The chat shows "Loaded report-sentinel · SKILL.md" and the reply follows the skill's instructions.enable_tools: falseand the skill is never loaded.Screenshots (light, dark, narrow) and the end-to-end chat follow in a comment.