Repository navigation
Call the app Unsloth or Unsloth Studio, never a bare Studio - #14473
Merged
Merged
Conversation
Locale strings, hard-coded UI text, backend and CLI messages, installer and uninstaller output, the Windows SAC probe and Studio docs now say Unsloth (running copy) or Unsloth Studio (formal names). Adds guards over every locale and every backend string literal.
Member
Author
|
@codex review |
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. |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
danielhanchen
added a commit
that referenced
this pull request
Oct 21, 2026
## Problem Five checks fail on main, so the `Repo tests (CPU, studio)`, `Repo tests (CPU, rest)` and `workflow-trigger lint` shards are red on every open PR (for example #14472, #14482, #14488, #14490 and #14494). All five reproduce on main `4d7ebf5cea`. | Test | Introduced by | Fault | |---|---|---| | `tests/security/test_lint_risky_loaders.py::test_the_tree_matches_the_baseline` | #14437 | Baseline. Two new dynamic-import sites: `import_module` in `studio/backend/core/rag/embeddings.py`, and a third `import_from_string` in `unsloth/models/sentence_transformer.py` (`_require_word_tokenizer`). Both are safe, see below. | | `tests/studio/test_tauri_branding_contract.py::test_desktop_surfaces_do_not_restore_studio_branding` | #14473 | Product. "Studio" became "Unsloth Studio" in the Markdown import errors and the Tauri webview reject message. The desktop contract allows "Unsloth" there, never "Unsloth Studio". "Unsloth" meets both #14473's rule (no bare "Studio") and this one. | | `tests/studio/test_usage_examples_model_source_contract.py::test_auto_switch_section_sits_above_the_usage_examples` | #14455 | Test. The redesign moved the usage examples above the monitor link on purpose, and its own `api-settings-tab.test.ts` pins that. | | `tests/studio/test_usage_examples_model_source_contract.py::test_monitor_can_unload_the_loaded_model` | #14455 | Test. Unloading moved from a standalone button on the page into the model picker's eject (`ApiModelLoadControls`). The `/unload` path itself is unchanged. | | `tests/studio/test_settings_compact_overflow_contract.py::test_api_monitor_entries_and_expanded_text_can_shrink` | #14455 | Test. Entry rows are now rounded cards (no `border-b`), and the prompt/reply box's `rounded-lg` became conditional, so the class literals the test matched are gone. The overflow guards themselves are still in the source. | ## Fix - **Risky loaders:** two baseline entries with reasons. - `embeddings.py` imports only the three `sentence_transformers.models` paths written out in a literal tuple, to wrap their `import_from_string` with the trust gate. - `_require_word_tokenizer` imports only after its caller has refused any `tokenizer_class` outside `sentence_transformers.*`, and only dotted identifiers. - **Branding:** "Unsloth Studio" to "Unsloth" in those seven Markdown import errors and the Rust reject message. `conversation-markdown-import.test.ts` now matches `/Unsloth Markdown/`. - **#14455 contracts:** rewritten to guard what the redesign keeps: - the auto-switch section still follows the monitor link, and the usage examples come before both; - the page passes `unloadActiveModel` to the load controls as `onUnloadActive`, and eject is withheld while `busy` (`modelLoading || unloading`, #11223's rule); - the `/unload` call still reads the internal id from status; - entry rows keep `w-full min-w-0`; - the prompt/reply box keeps `max-h-72 overflow-auto break-words`; - the model id keeps `min-w-0 break-all`. ## Verification - The four Python files: 78 passed (5 failed on main). - `studio/frontend/tests/conversation-markdown-import.test.ts`: 20 passed. - Sabotage, each run against the rewritten tests, each failing exactly one test: - removing `min-w-0` from the entry row, or `break-words` from the text box: the overflow test fails; - dropping `unloading` from `busy`, or passing `onEject` while busy: the unload test fails; - putting the auto-switch section above the monitor link: the order test fails.
danielhanchen
added a commit
that referenced
this pull request
Oct 21, 2026
…ender ML false positive) (#14520) ## Summary On main, VirusTotal's Microsoft engine flags `studio/setup.ps1` as `Trojan:Script/Wacatac.C!ml` (engine 1.26090, signatures 2026-10-20). That is the Windows Defender cloud machine-learning verdict. Every other engine is clean. `setup.ps1` runs on every Windows install and `unsloth studio update`, and PowerShell passes the script text to AMSI before it runs it. If the endpoint agrees with this verdict, it can stop the install partway through. This PR changes one comment and no code. ## How it was found The file was scanned at each step between the last clean main and the current one: | `studio/setup.ps1` | sha256 | Microsoft | engines | |---|---|---|---| | main `d9aded3801` | `c90a3460...` | clean | 0 / 61 | | after #14293 (UNSLOTH_HOME) | `1a7529b6...` | clean | 0 / 61 | | after #14473 (Unsloth Studio wording), current main | `c3bd31a3...` | `Trojan:Script/Wacatac.C!ml` | 1 / 61 | | current main with the three #14473 strings reverted | `1a7529b6...` | clean | 0 / 61 | | current main with the old 5-line comment restored | `0820e9d2...` | clean | 0 / 61 | | this PR | `f752d87c...` | clean | 0 / 61 | Neither change was a problem alone. The detection needed both #14293 shortening a 5-line explanatory comment in `Test-MasterRootNoteIsHonoured` to one line and #14473's "Unsloth Studio" wording. Together they pushed the ML score over its threshold. Nothing in either change downloads, runs or hides anything, so this is a false positive. ## The change The comment is restored as a 4-line explanation. Its wording is updated for current behaviour: the old text said install.ps1 does not read `UNSLOTH_HOME`, which #14293 made untrue. The #14473 branding stays as it is. ## Testing - `comment_tools.py check --strict-ext`: comment-only, no code changed. - `studio/setup.ps1` parses with 0 errors in PowerShell. - All 69 test files that read `studio/setup.ps1`: 9391 passed, 0 failed. ## Notes - `!ml` verdicts are fragile, so a later edit to this file could tip it over again. Re-scan `studio/setup.ps1` and `install.ps1` on VirusTotal before each release. - `studio/setup.sh` carries the same one-line comment. Defender does not scan it on Windows, so it is left unchanged.
danielhanchen
added a commit
that referenced
this pull request
Oct 21, 2026
…utoopt parity checks (#14522) ## Problem #14473 renamed user-facing "Studio" to "Unsloth" in the backend messages, but three tests still expect the old wording. They fail on main and on open PRs (for example #14494 and #14488): | Test | Expects | Product now says | |---|---|---| | `test_sandbox_linux.py::test_an_interpreter_symlinked_out_of_the_workdir_fails_the_call` | `Python that runs Studio` | `Python that runs Unsloth` (`sandbox_linux.py`) | | `test_diffusion_attention.py::test_a_hidden_xformers_is_not_reinstalled_in_the_same_process` | `restart Studio` | `restart Unsloth` (`diffusion_attention.py`) | | `test_diffusion_autoopt_parity.py` (two tests) | `the Studio fast step that replays decode steps from tensors`, 16 times in `fixtures/diffusion_autoopt_parity.json` | `the Unsloth fast step ...` (`diffusion_capture_safe.py`) | The rename was intended, so the tests are what is out of date. ## Fix Test only. Both assertions and the 16 recorded reasons in the parity fixture now use "Unsloth". Those 16 strings were the only "Studio" in the fixture. Nothing else in it changes. ## Verification - `test_sandbox_linux.py` and `test_diffusion_attention.py`: both target tests fail on main and pass with this change. - The one remaining local failure, `test_active_attention_backend_reads_tuple_return`, is an `ImportError` from this host's `huggingface_hub` and fails the same way on main. - `test_diffusion_autoopt_parity.py` (CPU torch 2.10, diffusers 0.41.0.dev0): - with main's fixture: 2 failed, 1 passed; - with this change: 3 passed.
danielhanchen
added a commit
that referenced
this pull request
Oct 21, 2026
…ser smoke (#14542) The "Browser smoke for project working folders" step in Frontend CI fails on every PR that runs it, e.g. #14515 (job 119337054207): ``` Expect "to_be_visible" get_by_role("dialog").get_by_text("Studio-managed folder", exact=True) ``` #14473 renamed the picker's empty-state label to "Unsloth-managed folder" (`working-folder-picker.tsx`), but `tests/studio/playwright_project_folders.py` kept waiting for the old text in four places. The product is right; the driver is stale. ## Changes - `playwright_project_folders.py`: one `MANAGED_FOLDER = "Unsloth-managed folder"` constant used by all four waits. - `tests/studio/test_playwright_brand_labels.py`: a static guard over every `tests/studio/playwright_*.py` driver. Any locator text (`get_by_text`, `get_by_label`, `get_by_placeholder`, `get_by_title`, or a `get_by_role(name=...)`) that contains "Unsloth" or "Studio" must still appear in `studio/frontend/src` or `studio/backend`. Module-level string constants are resolved, so the new constant is checked too. A scan of all drivers on main found this file to be the only one with a stale branded label. ## Testing - `python3 tests/studio/playwright_project_folders.py --out ...` locally: all 14 scenes pass. - `pytest tests/studio/test_playwright_brand_labels.py`: 53 passed in under a second. - Sabotage: putting the old "Studio-managed folder" text back makes the guard fail and name all four lines.
danielhanchen
added a commit
that referenced
this pull request
Oct 28, 2026
…15759) ## Summary `Repo tests (CPU, studio)` fails on main with two product slips on the new login and change-password layout from #15726 / #15678: ``` tests/studio/test_tauri_branding_contract.py::test_desktop_surfaces_do_not_restore_studio_branding studio/frontend/src/features/auth/components/auth-shell.tsx tests/studio/test_ui_font_scale_contract.py::test_no_raw_pixel_text_utilities features/auth/components/auth-form.tsx: text-[26px] ``` - **Branding:** the auth footer reads "Unsloth Studio". The app displays itself as "Unsloth" everywhere in the frontend (#14473, guarded by the branding contract), and this screen is the first one the desktop app shows. - **Font scale:** the auth title uses a raw `text-[26px]`, so it ignores the UI font-size preference while everything around it scales. ## Change - `auth-shell.tsx`: footer label "Unsloth Studio" becomes "Unsloth". - `index.css`: adds `--text-ui-28: calc(1.75rem * var(--ui-font-scale, 1))` between `--text-ui-25` and `--text-ui-30`, in the same form as the other `text-ui-*` tokens. - `auth-form.tsx`: the title uses `text-ui-28`. Every `text-ui-N` token renders at 0.9375 x N under the default 15px UI font size, so `text-ui-26` would have shrunk the title to 24.4px; `text-ui-28` lands on 26.25px, the same look as before, and now follows the font-size preference. ## Testing - `tests/studio/test_tauri_branding_contract.py` + `tests/studio/test_ui_font_scale_contract.py`: 2 failed on main, 22 passed with this change. - Before / after on the signed-out login page, built from the merge base and this head. Measured title size: 26px -> 26.25px at the default font size, and 26px -> 35px with the UI font scale at 1.25 (before ignores it). ## Screenshots Default font size: the footer now reads "Unsloth", the title is unchanged.  UI font scale 1.25: the title now scales with the rest of the card. 
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Call the app "Unsloth" or "Unsloth Studio", never a bare "Studio"
User-visible text sometimes called the product just "Studio". This changes it to "Unsloth" in running UI copy and backend messages, and to "Unsloth Studio" where the product is named formally (CLI help and output, installer and uninstaller messages, the Windows SAC probe, the Tauri command rejection).
What changed
engineStudioand the third-party "LM Studio" are untouched). Hebrew drops the article prefix (ה-Unslothreads as "the Unsloth"); SwedishStudiosbecomesUnsloths.unsloth_cli,studio/setup.sh,studio/setup.ps1,scripts/uninstall.{sh,ps1},scripts/windows_sac_probe,studio/install_audio_cpp_prebuilt.py: "Unsloth Studio".studio/INFERENCE_ENGINES.md,studio/MCP.md,studio/SKILL_MENTIONS.md,studio/backend/vendor/README.md,docker/DOCKERHUB-ROCM.md.Left alone on purpose
Identifiers, routes, env vars,
unsloth studiocommands, storage keys, "LM Studio", "Visual Studio", "Recipe Studio" (a feature name), the "Studio Sans" font, the FLUX prompt upsampler's "Studio photograph" (a photography term), the fixed chat-template replay probe text, release-body fixtures, CI workflow text and code comments.No new tests. Existing assertions that matched the old wording (17 backend tests, the SAC probe test, the RAG preview toast test) are updated to the new strings.
Verified
npm run typecheck,npm test(13139 pass, 0 fail) andnpm run i18n:check:strictinstudio/frontend.mainon this host (Docker helpers, HF cache settings and similar environment-bound tests).tests/shshell suites (no assertion references the changed setup or uninstall lines), Desktop builds.