diff --git a/studio/frontend/src/components/shutdown-dialog.tsx b/studio/frontend/src/components/shutdown-dialog.tsx index dfeafb33eb..d572f2e31d 100644 --- a/studio/frontend/src/components/shutdown-dialog.tsx +++ b/studio/frontend/src/components/shutdown-dialog.tsx @@ -72,7 +72,15 @@ export function ShutdownDialog({ Cancel { + // AlertDialogAction auto-closes the dialog by default. + // On the shutdown error path we toast + reset `stopping` + // to let the user retry, which only works if the dialog + // stays open. preventDefault keeps it open; on success + // the handler replaces document.body anyway. + event.preventDefault(); + void handleStop(); + }} disabled={stopping} variant="destructive" >