Repository navigation
Studio: pick which LoRA to add from a searchable list instead of cycling through them - #16964
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis 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. |
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! 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
pushed a commit
to danielhanchen/unsloth-staging-2
that referenced
this pull request
Nov 7, 2026
danielhanchen
pushed a commit
to danielhanchen/unsloth-staging-2
that referenced
this pull request
Nov 7, 2026
danielhanchen
pushed a commit
to danielhanchen/unsloth-staging-2
that referenced
this pull request
Nov 7, 2026
danielhanchen
pushed a commit
to danielhanchen/unsloth-staging-2
that referenced
this pull request
Nov 7, 2026
This was referenced Nov 7, 2026
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.
Closes #16900.
Problem
On the Images page, "Add LoRA" appended the next unused LoRA instead of asking which one. With 9 LoRAs installed, getting the 5th took 5 clicks and 4 row deletions, and the 9th could not be added at all because the button hides at 8 rows.
The auto-fill made sense when each row was a dropdown, since you changed the LoRA in place. #6789 turned rows into free-text fields with a
<datalist>, which only suggests entries matching the current text, so a pre-filled row no longer shows the alternatives.Fix
"Add LoRA" now opens a searchable list, using the Popover and Command components the Settings language selector uses. LoRAs are grouped as fine-tuned in Unsloth, on this device, and from Hugging Face, and picking one adds it as a row. Beyond what the screenshots show:
owner/nameorowner/name:filethat isn't listed offersUse <id>. "Enter a Hugging Face repo or file…" adds an empty row with the cursor in it.Rows still accept free text. The 8-row limit, default weights and request payload are unchanged, and there are no backend changes.
Before and after
Main (
992185ae8e) vs this PR (ab59e0e738), with 9 Z-Image-Turbo LoRAs installed:Verification
Live in Studio with Z-Image-Turbo loaded, driven with Playwright:
owner/name:fileid downloaded on first use. Each request carried the id, and the backend logged the LoRA as applied.tests/image-lora-add-options.test.ts(5 tests) andnode scripts/typecheck.mjs --testspass, and ESLint reports no new findings. The full frontend suite has 7 failures, all in memory and context-window tests that don't import these files.Before and after: merge base vs head, independent check
Two Studio installs, merge base
992185ae8(left) and head6e68b3136(right), same 9-LoRA catalog for Z-Image-Turbo on both sides.One click on Add LoRA. Before: a
sks-dogrow is appended. After: the grouped, searchable list opens and nothing is added yet.Getting to
pixel_art. Before: a second click appendsjyzjk. After: typingpixelnarrows the list to that entry.Target reached. Before: 4 clicks and 3 rows to delete. After: one row,
pixel_art.The same flows (keyboard open and search, Enter to add, focus back on the button, duplicates disabled, a pasted
owner/name:fileid, the empty row taking focus, the Hugging Face entry visible at 1000x500) give identical results in Chromium, Firefox and WebKit. WebKit at 1000x500: