From 030a565b063bcba0667b07a814e8a155b03c87ab Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Thu, 25 Jun 2026 00:01:58 -0300 Subject: [PATCH] Drop the Search Hub button from the image tab picker --- .../frontend/src/components/assistant-ui/model-selector.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/studio/frontend/src/components/assistant-ui/model-selector.tsx b/studio/frontend/src/components/assistant-ui/model-selector.tsx index 77a4d3262c..71d75b68f5 100644 --- a/studio/frontend/src/components/assistant-ui/model-selector.tsx +++ b/studio/frontend/src/components/assistant-ui/model-selector.tsx @@ -662,7 +662,10 @@ export function ModelSelector({ onEject={onEject ? handleEject : undefined} onFoldersChange={onFoldersChange} onPickLocalModel={onPickLocalModel ? handlePickLocalModel : undefined} - onBrowseHub={handleBrowseHub} + // The image tab (the only caller passing `task`) is a self-contained + // curated + on-device picker, so it omits the "Search Hub" button that + // navigates to the general Hub page. + onBrowseHub={task ? undefined : handleBrowseHub} onModelsChange={onModelsChange} deleteDisabled={deleteDisabled} className={contentClassName}