Repository navigation
Say "Unsloth" on desktop surfaces, and sweep the whole crate for it - #11255
Conversation
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. |
|
Triage of the two reds here, per section 10a. Neither is caused by this PR.
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 The |
|
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.
attempt 2: Everything reading 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:
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. |
|
@codex review |
|
@codex security review |
|
Codex Review: Didn't find any major issues. Breezy! 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". |
🛡️ Codex Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
76d1742 to
c9796c8
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. 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". |
#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.
c9796c8 to
b430ebb
Compare
…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>
What
tests/studio/test_tauri_branding_contract.py::test_desktop_surfaces_do_not_restore_studio_brandinghas been failing on main since #11251 merged at6803a826e, with 29 offenders. It failsBackend 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 assetsUnsloth-Desktop-*, plain Unsloth artwork, nostudio.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.rsalready read"Quit Unsloth".Changes
Copy (string literals only, no identifiers, keys or paths)
settings.accounts.descriptionandsettings.debugging.exportForbiddeninenplus 11 locales. Thesettings.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.process.rs.native_file_dialogs.rsanddebug-logs.ts, which is what the existing Rust testthe_login_required_sentinel_matches_what_the_frontend_looks_forrequires.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:
src-tauri/src/native_file_dialogs.rssrc-tauri/src/staged_update.rsBoth are fixed here, and the sweep now walks
studio/src-tauri/srcwhole at line granularity. One verbatim exemption remains, for the AMSI stderr transcribed ininstall.rsfrom #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 ofinstall.rsan exemption.test_the_branding_sweep_still_covers_the_cratepins 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
be95e417bbefore touching anything: 1 failed, 29 offenders (5 files, 24 locale keys). Every one blames to6803a826e(Studio: say "Unsloth Studio" in user-facing strings #11251).tests/studio/test_tauri_branding_contract.py10 passed.FAILED. Restoring thestaged_update.rssentence:FAILED- and that one is the case the old hand-kept list could not see at all.tests/studiofull suite: 11566 passed, 107 skipped. The single collection error istest_mlx_context_platform_matrix.py, which cannot importunslothon this host and errors identically on unmodified main.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 byinstall.sh --localfrom its own tree so the bundle really differs.The scene reads the sentence out of the live DOM rather than trusting the picture:
accounts_descriptionaccounts_says_studiotruefalseEverything 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:
/settingsopens 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 clicksdata-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.