From c2e80304d6c485fa1fce539a836bb8095b23bf71 Mon Sep 17 00:00:00 2001 From: MikiVL Date: Tue, 5 May 2026 04:02:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20AI=20=E7=BB=AD=E5=86=99=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E5=90=8E=E8=87=AA=E5=8A=A8=E5=8F=96=E6=B6=88=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E9=80=89=E4=B8=AD=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/editor/Editor.tsx | 3 +++ 1 file changed, 3 insertions(+) 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 }