diff --git a/src/components/notebook/NotebookAssistant.client.tsx b/src/components/notebook/NotebookAssistant.client.tsx index dfb155fea..754b54fb9 100644 --- a/src/components/notebook/NotebookAssistant.client.tsx +++ b/src/components/notebook/NotebookAssistant.client.tsx @@ -1139,6 +1139,7 @@ export function NotebookAssistant({ return 'error' } } finally { + abortController.abort() if (abortRef.current === abortController) abortRef.current = null onFinish?.() }