diff --git a/src/components/Layout/index.tsx b/src/components/Layout/index.tsx index 685531bfe..525fcbc8b 100644 --- a/src/components/Layout/index.tsx +++ b/src/components/Layout/index.tsx @@ -18,7 +18,7 @@ const Layout = () => { useEffect(() => { const handleBeforeClose = () => { const currentStatus = chatStore.tasks[chatStore.activeTaskId as string]?.status; - if(["pending", "running", "pause"].includes(currentStatus)) { + if(["running", "pause"].includes(currentStatus)) { setNoticeOpen(true); } else { window.electronAPI.closeWindow(true);