Skip to content

Studio: add Search Hub to the Images, Video and Audio model pickers - #11756

Merged
shimmyshimmer merged 3 commits into
mainfrom
studio-media-search-hub
Sep 24, 2026
Merged

shimmyshimmer merged 3 commits into
mainfrom
studio-media-search-hub

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Summary

The Images, Video and Audio model pickers now have the same Search Hub button as the chat model picker. It opens the Model hub on Discover with the matching capability filter already on:

Picker Hub filter
Images Image/video gen
Video Image/video gen
Audio Audio

The owner filter is also set to Unsloth, since these pages run curated Unsloth uploads.

Before this, Images and Video had no Search Hub button at all, and Audio's opened the unfiltered Discover feed.

Changes

  • app/routes/hub.tsx: /hub accepts a capability search param, validated against the Discover capability filter values.
  • hub-page.tsx: a capability link switches to Models, clears the query, sets the format filter to All formats, applies the capability filter and opens the sorted Discover list. The feed's trending carousel ignores the capability filter, so the flat list is what makes the filter actually hold. It also sets the owner filter to Unsloth, and lands on the Discover tab with Models selected even if the link carried tab=downloaded or kind=datasets. The param is then removed from the URL, so later filter changes stick and clicking Search Hub again re-applies it.
  • model-selector.tsx: new optional hubCapability prop. When set, Search Hub navigates with it and is shown even on curated task pickers, which previously hid the button.
  • images-page.tsx, video-page.tsx: pass hubCapability="diffusion". audio-page.tsx: passes hubCapability="audio".
  • features/hub/index.ts: exports the CapabilityKey type for the route and the picker.

The chat picker does not set the prop, so its Search Hub is unchanged.

Testing

  • tsc -b in studio/frontend: pass.
  • Full frontend suite: 8614 of 8614 pass.
  • ESLint on the touched files: one new react-hooks/set-state-in-effect finding for the URL param effect in hub-page.tsx, the same pattern the page already uses for its section and kind params.

The button opens the Hub on Discover with the matching capability filter on: Image/video gen for Images and Video, Audio for Audio. The Hub route takes a new capability search param.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-24T03:11:08.245873Z ff279b1 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

A capability link that also carried tab=downloaded or kind=datasets kept those params, so the filter never showed. Consuming the link now sets tab=discover and clears kind.
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

chatgpt-codex-connector[bot]

This comment was marked as resolved.

The Images, Video and Audio pages run curated Unsloth uploads, so a capability link now also sets the Hub's owner filter to Unsloth.
@shimmyshimmer
shimmyshimmer merged commit 4f3b104 into main Sep 24, 2026
31 of 32 checks passed
@shimmyshimmer
shimmyshimmer deleted the studio-media-search-hub branch September 24, 2026 03:03
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 4f3b104804

ℹ️ 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".

deepspace28 pushed a commit to deepspace28/unsloth that referenced this pull request Sep 24, 2026
…rings (unslothai#11772)

* studiobench: do not fail UI parity on repetitions that swap two renderings

The parity verdict on unslothai#11756 (run 35949769378) failed on four stable pairs,
delete_message and thread_reopen at r100K, in both repetitions. The two
repetitions held the same two renderings with the arms swapped: rep0's
(base, head) captures are rep1's (head, base) captures, field for field.
The extra 2012 and 2022 characters of scaffold are the attachment chip
image_upload leaves in the composer when it reaches its 800ms slot, and
which cells reached it was a race (base missed, head ran, head missed,
base ran). The null control shows one build rendering both states.

corroborated() already refuses to let two one-arm failures that blame
opposite arms corroborate each other, but treated a digest difference as
having no direction. swapped_between_arms() now finds a differing pair
whose two renderings another repetition of the same action and rung holds
on the opposite arms, compared exactly on every capture field, and report()
prints those as UNCORROBORATED instead of counting them. The null audit
scope and the evidence step apply the same predicate so all three agree.
A consistent difference, or a real change on top of the race, does not
line up as a swap and still fails. Captures without a digest and
--min-reps 1 are scored as before.

* studiobench parity: match swapped repetitions one-to-one

A differing pair was excused whenever any other repetition held its reverse,
so three repetitions of (R1, R2) against one (R2, R1) were all excused and a
difference seen three times passed. Each reversal now excuses exactly one
observation in the other direction; the rest go to corroborated() as before,
so the example above leaves two firm repetitions.

* studiobench parity: match swaps by observation, not row

One-to-one by row let a reversed repetition carried by two shards partner
two forward repetitions, while corroborated() counts it once. Swaps are now
matched on distinct (repetition, direction) observations, and every row of a
matched observation is excused together, so the duplicate leaves two firm
forward repetitions in Codex's example.

* studiobench parity: each repetition joins at most one swap

Keying observations on (repetition, direction) let a repetition recorded by
two shards in opposite directions join two swaps, excusing a difference seen
in two other repetitions. A repetition is now the unit: it takes part in at
most one swap, and one that holds more than one outcome pair (shards that
disagree) is never excused.
shaojun pushed a commit to shaojun/unsloth that referenced this pull request Sep 29, 2026
…nslothai#11756)

* Studio: add Search Hub to the Images, Video and Audio model pickers

The button opens the Hub on Discover with the matching capability filter on: Image/video gen for Images and Video, Audio for Audio. The Hub route takes a new capability search param.

* Studio: make a capability link always land on Discover models

A capability link that also carried tab=downloaded or kind=datasets kept those params, so the filter never showed. Consuming the link now sets tab=discover and clears kind.

* Studio: open Search Hub from the media pickers on the Unsloth filter

The Images, Video and Audio pages run curated Unsloth uploads, so a capability link now also sets the Hub's owner filter to Unsloth.
shaojun pushed a commit to shaojun/unsloth that referenced this pull request Sep 29, 2026
…rings (unslothai#11772)

* studiobench: do not fail UI parity on repetitions that swap two renderings

The parity verdict on unslothai#11756 (run 35949769378) failed on four stable pairs,
delete_message and thread_reopen at r100K, in both repetitions. The two
repetitions held the same two renderings with the arms swapped: rep0's
(base, head) captures are rep1's (head, base) captures, field for field.
The extra 2012 and 2022 characters of scaffold are the attachment chip
image_upload leaves in the composer when it reaches its 800ms slot, and
which cells reached it was a race (base missed, head ran, head missed,
base ran). The null control shows one build rendering both states.

corroborated() already refuses to let two one-arm failures that blame
opposite arms corroborate each other, but treated a digest difference as
having no direction. swapped_between_arms() now finds a differing pair
whose two renderings another repetition of the same action and rung holds
on the opposite arms, compared exactly on every capture field, and report()
prints those as UNCORROBORATED instead of counting them. The null audit
scope and the evidence step apply the same predicate so all three agree.
A consistent difference, or a real change on top of the race, does not
line up as a swap and still fails. Captures without a digest and
--min-reps 1 are scored as before.

* studiobench parity: match swapped repetitions one-to-one

A differing pair was excused whenever any other repetition held its reverse,
so three repetitions of (R1, R2) against one (R2, R1) were all excused and a
difference seen three times passed. Each reversal now excuses exactly one
observation in the other direction; the rest go to corroborated() as before,
so the example above leaves two firm repetitions.

* studiobench parity: match swaps by observation, not row

One-to-one by row let a reversed repetition carried by two shards partner
two forward repetitions, while corroborated() counts it once. Swaps are now
matched on distinct (repetition, direction) observations, and every row of a
matched observation is excused together, so the duplicate leaves two firm
forward repetitions in Codex's example.

* studiobench parity: each repetition joins at most one swap

Keying observations on (repetition, direction) let a repetition recorded by
two shards in opposite directions join two swaps, excusing a difference seen
in two other repetitions. A repetition is now the unit: it takes part in at
most one swap, and one that holds more than one outcome pair (shards that
disagree) is never excused.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant