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.

narrow stale selection guard to only skip clearing for uploaded files

Roland Tannousfbcd111a701e
diff --git a/studio/frontend/src/features/studio/sections/dataset-section.tsx b/studio/frontend/src/features/studio/sections/dataset-section.tsx
index a72c21100a2..576b45610b7 100644
--- a/studio/frontend/src/features/studio/sections/dataset-section.tsx
+++ b/studio/frontend/src/features/studio/sections/dataset-section.tsx
@@ -293,7 +293,7 @@ export function DatasetSection() {
if (!uploadedFile) return;
if (selectedLocalDataset) return;
// Don't clear if this is a direct file upload (not a recipe directory)
- if (isLikelyLocalDatasetRef(uploadedFile)) return;
+ if (uploadedFile.includes("/dataset-uploads/")) return;
selectLocalDataset(null);
}, [
datasetSource,