From 4635b0bc360ddc46af313c51d11905649e4bbd24 Mon Sep 17 00:00:00 2001 From: Roland Tannous Date: Fri, 29 May 2026 13:04:00 +0400 Subject: [PATCH] Studio: add dismiss X alongside Cancel on the indexing toast --- .../rag/components/ingestion-toast-stack.tsx | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/studio/frontend/src/features/rag/components/ingestion-toast-stack.tsx b/studio/frontend/src/features/rag/components/ingestion-toast-stack.tsx index 54f8e1972f..662d9e4b02 100644 --- a/studio/frontend/src/features/rag/components/ingestion-toast-stack.tsx +++ b/studio/frontend/src/features/rag/components/ingestion-toast-stack.tsx @@ -122,27 +122,31 @@ export function IngestionToastStack() { )} - {allDone ? ( +
+ {/* While indexing: "Cancel" stops the batch and resets the + index; the "X" only dismisses the toast and lets indexing + continue in the background. When done, just the dismiss X. */} + {!allDone && ( + + )} - ) : ( - - )} +