Skip to content

Say "Unsloth" on desktop surfaces, and sweep the whole crate for it - #11255

Merged
danielhanchen merged 2 commits into
mainfrom
fix-desktop-branding-contract
Sep 18, 2026
Merged

danielhanchen merged 2 commits into
mainfrom
fix-desktop-branding-contract

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

What

tests/studio/test_tauri_branding_contract.py::test_desktop_surfaces_do_not_restore_studio_branding has been failing on main since #11251 merged at 6803a826e, with 29 offenders. It fails Backend CI / Repo tests (CPU, studio), so every open PR inherits it.

#11251's complaint was right: user-facing copy said bare "Studio". Its replacement was not. The desktop app displays itself as Unsloth, which is pinned all over this same file: productName == "Unsloth", window title "Unsloth", release assets Unsloth-Desktop-*, plain Unsloth artwork, no studio.png. The frontend is shared with Desktop, so "The Unsloth Studio backend restarted during generation." is what a Desktop user sees.

This uses Unsloth in the swept surfaces, which is also the rule #11254 wrote down 33 minutes after #11251 merged: "Use Unsloth for short app messages and Unsloth Studio where the distinction from the core library matters." The app's own quit menu in src-tauri/src/main.rs already read "Quit Unsloth".

Changes

Copy (string literals only, no identifiers, keys or paths)

  • settings.accounts.description and settings.debugging.exportForbidden in en plus 11 locales. The settings.agents.remote.* keys keep the full name: they name a remote server the user points this app at, which really is an Unsloth Studio, and the contract already exempts them.
  • Blender MCP panel, chat generation failure toasts, API monitor tour, desktop runtime-lock errors in process.rs.
  • The log-export sentinel moves in lockstep in native_file_dialogs.rs and debug-logs.ts, which is what the existing Rust test the_login_required_sentinel_matches_what_the_frontend_looks_for requires.

The sweep
The Rust half was a hand-kept list of six files, and two live violations sat in files nobody had added to it:

File String On the list?
src-tauri/src/native_file_dialogs.rs the log-export sentinel the settings tab renders no
src-tauri/src/staged_update.rs "Quit Unsloth Studio, reopen it, and update again." no

Both are fixed here, and the sweep now walks studio/src-tauri/src whole at line granularity. One verbatim exemption remains, for the AMSI stderr transcribed in install.rs from #8523 - that line is captured output, and rewriting it would stop the fixture reproducing the error it was captured from. Line granularity rather than file granularity so that one fixture does not buy the rest of install.rs an exemption.

test_the_branding_sweep_still_covers_the_crate pins that the crate walk stays non-empty, that the two formerly missed files stay in it, that the exemption is still spent on a line that exists in the tree, and that the filter drops nothing beyond the allowlist.

Verification

  • Reproduced on main be95e417b before touching anything: 1 failed, 29 offenders (5 files, 24 locale keys). Every one blames to 6803a826e (Studio: say "Unsloth Studio" in user-facing strings #11251).
  • After: tests/studio/test_tauri_branding_contract.py 10 passed.
  • Sabotage-proved both halves. Restoring one Studio: say "Unsloth Studio" in user-facing strings #11251 locale string: FAILED. Restoring the staged_update.rs sentence: FAILED - and that one is the case the old hand-kept list could not see at all.
  • tests/studio full suite: 11566 passed, 107 skipped. The single collection error is test_mlx_context_platform_matrix.py, which cannot import unsloth on this host and errors identically on unmodified main.
  • Grepped the repo for the previous sentences: no other test asserts them.

Before / after

Settings -> Accounts, the one string this PR changes that renders unconditionally. Two isolated installs: BEFORE is this PR's own merge base (c9bb2750f, the tip of #11262), AFTER is its head (c9796c8c5), each built by install.sh --local from its own tree so the bundle really differs.

Settings Accounts, before and after

The scene reads the sentence out of the live DOM rather than trusting the picture:

side accounts_description accounts_says_studio
BEFORE Create private Unsloth Studio accounts. New users sign in with a one-time setup code and choose a password. true
AFTER Create private Unsloth accounts. New users sign in with a one-time setup code and choose a password. false

Everything else on the pane is unchanged: same tab, same account row, same controls.

Two notes on how this was made honest, since a clean-looking identical pair is the normal failure mode here:

  • The first run failed rather than producing a pair. /settings opens the settings dialog on its remembered tab, so arriving there is not the same as being on Accounts, and a dialog sitting on General renders identically on both sides. The scene now clicks data-testid="settings-tab-accounts" (the stable handle the dialog ships for UI tests, since the label is translated) and then confirms the pane by its own rendered sentence before shooting.
  • The locator is anchored on the half of the sentence this PR does not touch ("New users sign in with a one-time setup code"), so the same selector works on both sides and cannot silently match nothing on one of them.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-18T12:24:04.002606Z c9796c8 Manual request
🔒 Security Review ✅ Completed 2026-09-18T11:25:07.896210Z 7243661 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@danielhanchen

Copy link
Copy Markdown
Member Author

Triage of the two reds here, per section 10a. Neither is caused by this PR.

Repo tests (CPU, python) - main's, fixed elsewhere. It fails on tests/python/test_docker_studio_home_volume.py, from #11254's rewording of docker/studio_home.sh. It reproduces on unmodified main at be95e417b and also fails on #11257, which touches one backend test file and nothing else. #11262 fixes it.

desktop windows - infra. The step log is:

APP_EXE: C:\Users\runneradmin\AppData\Local\Unsloth Studio (Desktop)\unsloth-studio.exe
This command cannot be run due to the error: This version of %1 is not compatible with the version of Windows
::error::the app wrote no tauri.log; it never reached setup_logging

An architecture mismatch launching the freshly built exe. The same job failed the same two steps ("Launch and prove it stays up", "What did its own log say?") on main at 16408b25f, which predates this branch. This PR changes string literals and one test file, so it cannot reach a Windows loader check.

The Composer compatibility failure from the first run has cleared on the current head and is not in the failing set any more.

@danielhanchen

Copy link
Copy Markdown
Member Author

Follow-up on the browser lanes, after re-running both.

Both failed again, but with different symptoms each time, which is the opposite of what a content change produces.

Windows Unsloth UI CI attempt 1:

[ui-extra] FAIL: [data-tour='chat-compare-view'] not found after Compare click

attempt 2:

[ui-extra] WARN Compare: 2 bubbles didn't appear (panes likely have no model selected): TimeoutError
[banner] FAIL 921x534 at 20px: the footer stays inside the viewport footer=None
[banner] FAIL 921x534 at 20px: the rail has cards to judge railCards=[]
[banner] FAIL 921x534 at 20px: the card does not clip its own card away card=None

Everything reading None / [] is the shape of an app that did not come up, not of a string that changed.

I took the hypothesis seriously that my locale rewrite had corrupted a catalog and broken the bundle, since that would explain both attempts at once. It did not:

  • every touched .ts / .tsx file parses under esbuild
  • the diff is one string literal per line, no structural change
  • Frontend CI, Unsloth UI CI and studiobench CI are all green on this branch. Unsloth UI CI is the Linux run of the same suite, against the same bundle, so the app builds and drives fine

studiobench UI parity fails on reasoning_toggle, which its own verdict lists under unstable_but_not_declared, and whose imported exemption it dropped this run because the null control happened not to reproduce the race. The delta is 10 characters of thread scaffolding outside any message; the edits here remove 7 characters each and none of them render in a chat thread.

desktop windows and Repo tests (CPU, python) are as described in my previous comment: infra, and main's, with #11262 fixing the latter.

So: nothing here is attributable to this diff, and I am not going to keep re-running the Windows and macOS lanes to prove a negative. The green Linux twin of the failing Windows suite is the strongest evidence available on this branch.

@shimmyshimmer

Copy link
Copy Markdown
Member

@codex review

@shimmyshimmer

Copy link
Copy Markdown
Member

@codex security review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 724366135f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 724366135f

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@danielhanchen
danielhanchen changed the base branch from main to fix-docker-restore-hint-drift September 18, 2026 11:49
@danielhanchen
danielhanchen force-pushed the fix-desktop-branding-contract branch 2 times, most recently from 76d1742 to c9796c8 Compare September 18, 2026 12:15
@shimmyshimmer

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: c9796c8c52

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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
danielhanchen deleted the branch main September 18, 2026 12:50
@danielhanchen danielhanchen reopened this Sep 18, 2026
@danielhanchen
danielhanchen changed the base branch from fix-docker-restore-hint-drift to main September 18, 2026 12:50
danielhanchen and others added 2 commits September 18, 2026 12:51
#11251 replaced bare "Studio" with "Unsloth Studio" in user-facing copy. The
complaint was right, the replacement was not: the desktop app displays itself
as "Unsloth", so tests/studio/test_tauri_branding_contract.py has been red on
main since that merge with 29 offenders. Use "Unsloth" in the swept surfaces,
which is also the rule #11254 wrote down half an hour later ("Unsloth for short
app messages, Unsloth Studio where the distinction from the core library
matters"). The app's own quit menu in main.rs already said "Quit Unsloth".

The i18n change is the two keys the sweep flags, in en plus 11 locales. The
remote-server keys keep the full name: they name a server the user points this
app at, which really is an Unsloth Studio. The log-export sentinel moves in
lockstep in native_file_dialogs.rs and debug-logs.ts, as its own Rust test
requires.

The test half is the more useful half. Its Rust sources were a hand-kept list
of six files, and two live violations sat in files nobody had added to it:
native_file_dialogs.rs owned the sentinel the settings tab renders, and
staged_update.rs told the user to "Quit Unsloth Studio". The sweep now walks
studio/src-tauri/src whole, at line granularity, with one verbatim exemption
for the AMSI stderr transcribed in install.rs from #8523 - rewriting that line
would stop the fixture reproducing the error it was captured from. A coverage
test pins that the crate walk stays non-empty, that the two formerly missed
files stay in it, that the exemption is still spent on a line that exists, and
that nothing is dropped beyond it.
@danielhanchen
danielhanchen force-pushed the fix-desktop-branding-contract branch from c9796c8 to b430ebb Compare September 18, 2026 12:51
@danielhanchen
danielhanchen merged commit 9d77e21 into main Sep 18, 2026
50 of 56 checks passed
@danielhanchen
danielhanchen deleted the fix-desktop-branding-contract branch September 18, 2026 12:52
shaojun pushed a commit to shaojun/unsloth that referenced this pull request Sep 29, 2026
…nslothai#11255)

* Say "Unsloth" on desktop surfaces, and sweep the whole crate for it

unslothai#11251 replaced bare "Studio" with "Unsloth Studio" in user-facing copy. The
complaint was right, the replacement was not: the desktop app displays itself
as "Unsloth", so tests/studio/test_tauri_branding_contract.py has been red on
main since that merge with 29 offenders. Use "Unsloth" in the swept surfaces,
which is also the rule unslothai#11254 wrote down half an hour later ("Unsloth for short
app messages, Unsloth Studio where the distinction from the core library
matters"). The app's own quit menu in main.rs already said "Quit Unsloth".

The i18n change is the two keys the sweep flags, in en plus 11 locales. The
remote-server keys keep the full name: they name a server the user points this
app at, which really is an Unsloth Studio. The log-export sentinel moves in
lockstep in native_file_dialogs.rs and debug-logs.ts, as its own Rust test
requires.

The test half is the more useful half. Its Rust sources were a hand-kept list
of six files, and two live violations sat in files nobody had added to it:
native_file_dialogs.rs owned the sentinel the settings tab renders, and
staged_update.rs told the user to "Quit Unsloth Studio". The sweep now walks
studio/src-tauri/src whole, at line granularity, with one verbatim exemption
for the AMSI stderr transcribed in install.rs from unslothai#8523 - rewriting that line
would stop the fixture reproducing the error it was captured from. A coverage
test pins that the crate walk stays non-empty, that the two formerly missed
files stay in it, that the exemption is still spent on a line that exists, and
that nothing is dropped beyond it.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants