diff --git a/src/components/editor/Editor.tsx b/src/components/editor/Editor.tsx index 7157178..fc2971c 100644 --- a/src/components/editor/Editor.tsx +++ b/src/components/editor/Editor.tsx @@ -320,6 +320,9 @@ export function Editor() { } catch (e) { if ((e as Error).name === 'AbortError') return } finally { + if (editor) { + editor.commands.setTextSelection(editor.state.doc.content.size) + } setAiContinuing(false) aiAbortRef.current = null }