Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Studio: clicking a gallery item no longer replaces the typed prompt (#11930)

Michael Hand9b5f99c6665
diff --git a/studio/frontend/src/features/audio/audio-page.tsx b/studio/frontend/src/features/audio/audio-page.tsx
index 75a0cab8c30..0755d41a0c7 100644
--- a/studio/frontend/src/features/audio/audio-page.tsx
+++ b/studio/frontend/src/features/audio/audio-page.tsx
@@ -3269,11 +3269,7 @@ export function AudioPage({
)}
<button
type="button"
- onClick={() => {
- selectClip(clip.id);
- // Show the text this clip was made with.
- setPrompt(clip.prompt);
- }}
+ onClick={() => selectClip(clip.id)}
aria-current={
clip.id === selectedId ? "true" : undefined
}
diff --git a/studio/frontend/src/features/images/images-page.tsx b/studio/frontend/src/features/images/images-page.tsx
index 31ba229a702..9250b336b69 100644
--- a/studio/frontend/src/features/images/images-page.tsx
+++ b/studio/frontend/src/features/images/images-page.tsx
@@ -5354,11 +5354,7 @@ export function ImagesPage({
)}
<button
type="button"
- onClick={() => {
- setSelectedId(image.id);
- // Show the prompt this image was made with.
- setPrompt(image.prompt);
- }}
+ onClick={() => setSelectedId(image.id)}
className="relative size-full overflow-hidden rounded-[10px] bg-muted/40 outline-none ring-1 ring-transparent transition-shadow hover:ring-border focus-visible:ring-2 focus-visible:ring-ring"
>
{srcById[image.id] ? (
diff --git a/studio/frontend/src/features/video/video-page.tsx b/studio/frontend/src/features/video/video-page.tsx
index 8081be96d51..b60e6bdae2d 100644
--- a/studio/frontend/src/features/video/video-page.tsx
+++ b/studio/frontend/src/features/video/video-page.tsx
@@ -4359,11 +4359,7 @@ function VideoGenerator({
<TooltipTrigger asChild={true}>
<button
type="button"
- onClick={() => {
- setSelectedId(video.id);
- // Show the prompt this clip was made with.
- setPrompt(video.prompt);
- }}
+ onClick={() => setSelectedId(video.id)}
className="relative flex size-full flex-col justify-end overflow-hidden rounded-[10px] bg-muted/40 outline-none ring-1 ring-transparent transition-shadow hover:ring-border focus-visible:ring-2 focus-visible:ring-ring"
>
{thumbnailById[video.id] ? (