Skip to content

Studio: top-level Models block group in picker - #10736

Merged
danielhanchen merged 4 commits into
unslothai:mainfrom
Souravrajvi0:feat/studio-models-block-picker-d00d
Oct 2, 2026
Merged

danielhanchen merged 4 commits into
unslothai:mainfrom
Souravrajvi0:feat/studio-models-block-picker-d00d

Conversation

@Souravrajvi0

@Souravrajvi0 Souravrajvi0 commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Split from #10710 per review feedback.

Adds a top-level Models step group in the block picker (provider connection + model preset). Same blocks as before — just easier to find without digging into AI generation → Setup.

Related: #10637, #10708
Supersedes the Models picker portion of #10710.

Before / after

Built from the merge base (c0a60448e, BEFORE) and this PR's head (73b88f1f0, AFTER) as two isolated Studio installs, driven in Chromium.

Add a step: the root list gains a Models group after Source data.

Root list before and after

Opening Models lists only Provider connection and Model preset (before, they sit under AI generation > Setup).

Models view before and after

Searching inside Models for something outside it shows the empty state.

Search inside Models before and after

Root search is unchanged: searching "model" gives identical results on both builds.

Root search before and after

Surface model provider and model preset blocks in a dedicated Models
section of the block picker instead of burying them under AI generation.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8b71af90e6

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +345 to +347
...(matchesSearch(MODEL_ROOT_GROUP.title, MODEL_ROOT_GROUP.description)
? [MODEL_ROOT_GROUP]
: []),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Render the Models group when its title matches search

When the root query is Models, this branch adds MODEL_ROOT_GROUP to rootGroups, but that collection is rendered only when !hasSearch; the searchable leaf blocks contain only singular model text, so rootSearchBlocks is empty and the UI displays “No matching steps” for the exact visible group title. Either render matching groups during search or incorporate the group title and description into the leaf-result filtering.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kept as on main: root search lists matching blocks only (group rows are hidden while searching), and 'model' already surfaces Provider connection and Model preset there.

Base the Models view no-match check on modelSetupBlocks instead of all
llm scoped blocks, so searches like "AI text" show "No matching steps"
instead of a blank panel. Also render matching root groups during search
so queries like "Models" surface the Models group, and add "model" to
the recipe studio SheetView type.
@danielhanchen

Copy link
Copy Markdown
Member

The Models group itself is a clear win, but this also removes the !hasSearch guard on the root group list so a search now renders both group rows and matching blocks, and it swaps getBlocksForKind(group.kind) for a VIEW_KIND lookup in the same block. Could you narrow it to the new group and leave the search path as it is, or show what the search results look like now?

@danielhanchen danielhanchen self-assigned this Oct 1, 2026
Keep the root search path as on main (groups stay hidden while searching),
drop the dedicated Models render branch in favour of filtering scopedBlocks,
so the Models view and its empty state only consider provider and preset blocks.
@danielhanchen

Copy link
Copy Markdown
Member

Review record for #10736, carried over from the mirror it was reviewed on: danielhanchen/unsloth-staging-review#300.

Findings are quoted as posted and attributed to the account that posted them. The reactions shown are the triage recorded on the mirror; none were re-applied here. Commits are named as the mirror's, with this PR's equivalent where one was found.

Round 1: reviewed mirror aa780de3c (this PR's 73b88f1f0)

chatgpt-codex-connector[bot] on studio/frontend/src/features/recipe-studio/components/block-sheet.tsx (on the mirror)

@@ -130,15 +135,24 @@ const VIEW_KIND: Record<SheetView, SheetKind | null> = {
   sampler: "sampler",
   seed: "seed",
   llm: "llm",
+  model: "llm",
   validator: "validator",
   expression: "expression",
   note: "note",
   processor: null,
 };
 
 const ROOT_GROUPS: RootGroup[] = [...BLOCK_GROUPS];
+const MODEL_ROOT_GROUP: RootGroup = {
+  kind: "model",
+  title: "Models",
+  description: "Connect a provider and pick which model powers your AI steps.",

P2 Badge Make Models searchable by its displayed label

When a user enters the exact new label Models in the root picker search, the UI reports “No matching steps.” Active root searches render only rootSearchBlocks, which matches individual block titles/descriptions, while the group rows are hidden; none of the provider or preset block metadata contains the plural word models. Include this group’s title/description when producing root search results, or otherwise map a matching group query to its model blocks.

Useful? React with 👍 / 👎.

Rejected on the mirror

Reply from danielhanchen:

Root search matches blocks only, by design: on main the group labels Generated fields, AI generation, Checks and Formulas also return no matches. Searching model already lists Provider connection and Model preset.

Round 2: reviewed mirror aa780de3cc (this PR's 73b88f1f0)

chatgpt-codex-connector[bot] (on the mirror)

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

Reviewed commit: aa780de3cc

No triage reaction was recorded on the mirror

Verdict

The round converged at mirror aa780de3cc (this PR's 73b88f1f0).

This is the review as it stood at that commit. Anything pushed to this PR afterwards was not part of it.

danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Oct 1, 2026
danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Oct 1, 2026
danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Oct 1, 2026
danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Oct 1, 2026
@danielhanchen
danielhanchen merged commit f48ce84 into unslothai:main Oct 2, 2026
16 of 54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants