Repository navigation
Unsloth Studio / Desktop: setting to choose the model picker's org filters - #18109
LeoBorcherding wants to merge 4 commits into
Conversation
|
@codex review |
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. |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ 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". |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4b0af2cea6
ℹ️ 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".
| update(); | ||
| strip.addEventListener("scroll", update, { passive: true }); | ||
| const observer = new ResizeObserver(update); | ||
| observer.observe(strip); |
There was a problem hiding this comment.
Recompute org-strip fades when its tabs change
When inventory adds org tabs while the strip is already mounted, its viewport can stay the same size while only scrollWidth changes. The observer watches the strip's size, and the effect does not depend on the tab list, so update() may not add the fade for the newly overflowing row. Since the scrollbar is hidden, users may not realize more filters are available; rerun the measurement when the org tabs change.
Useful? React with 👍 / 👎.
|
Folded into #18108. |
Stacked on #18108. Until that merges this diff also shows its commit; the change here is the second commit.
Opt-in switch under Settings > Chat > Model selection: Choose organizations. On, it lists every known org as a toggle and the picker shows exactly the ones picked instead of its own suggestions (3+ models on device). Off (default), nothing changes. Stored in
unsloth_chat_picker_orgs(null= suggestions), cleared by the settings reset.Tests: store default, settings wiring and the picker's use of the chosen list. Typecheck and tests pass.
Screenshots at
8c94322, Unsloth Studio (web) on macOS (Apple M5), headless Chromium.Setting off (default): the picker suggests its own orgs; only Qwen has 3+ models on this device.
Settings > Chat > Model selection > Choose organizations, on, with NVIDIA, Qwen and Google picked:
On Device, Qwen pressed: the row shows exactly the picked orgs (NVIDIA too, with no NVIDIA model on device):
Discover, NVIDIA and Discover, Google: