Repository navigation
Studio: point Desktop Chat only users at Repair installation on the Export page - #14438
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. |
|
Reached Codex review convergence at oobabooga#399. |
|
@codex review |
1 similar comment
|
@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". |
On a Desktop install where the user ticked "Chat only (GGUF)", the Export page says:
The user never typed
--no-torch, and the app has no way to reinstall without it. The fix that works from inside the app is Settings > Repair installation, which the Train tooltip in the sidebar already recommends.Cause
#14245 made a Windows or Linux Chat only install report
no_torchinstead ofno_gpu. That sends Desktop users to the backend'sno_torchexport message, which was written for CLIinstall.sh --no-torchusers.ExportPageshows it unchanged in the banner and in the tooltip on the greyed method cards. The same PR gave the Train hint a Desktop variant, but Export did not get one.Fix
exportUnsupportedText()instudio/frontend/src/features/export/lib/unsupported-text.ts(lazy Export chunk, not the startup bundle) decides the page's text. When the reason isno_torchand a Repair action is available (the Train hint'scanRepaircheck), it returns "Export was left out of this install (Chat only). Use Repair installation in Settings to add it." Otherwise it returns the backend message as before. Web users, CLI users and a Desktop attached to a terminal-started backend have no Repair action, so they keep the--no-torchadvice. After a successful Repair, the Desktop also drops the cached hardware verdict, so Export re-reads the new backend instead of staying disabled. There are no backend, API or locale changes.Verification
tests/export-unsupported-text.test.tscoversno_torchwith and without Repair available, other reasons, no backend message, and that a successful repair invalidates the cached hardware verdict before the backend restarts. The full frontend suite, typecheck and lint show no new failures.Following the new text, Settings > Repair installation installed torch 2.11.0+rocm7.14.0:
The web UI and an external-server Desktop were not tested live. Only the unit test covers them.
Web parity check
Web Studio built from the merge base (BEFORE) and from this branch (AFTER), Chromium, with
/api/system/hardwarereturning the backend'sno_torchexport verdict on both sides. The web build has no Repair action, so both keep the--no-torchadvice and neither shows the Repair installation text.