From 3815aa435327f023fb860e9a103dca37e18d0cd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Wed, 22 Jul 2026 12:05:45 +0800 Subject: [PATCH] fix: always keep draft --- .../EditorAgentConversationPanelView.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/image-editor/EditorAgentConversation/EditorAgentConversationPanelView.tsx b/src/components/image-editor/EditorAgentConversation/EditorAgentConversationPanelView.tsx index 155589f32..ec5cbed8b 100644 --- a/src/components/image-editor/EditorAgentConversation/EditorAgentConversationPanelView.tsx +++ b/src/components/image-editor/EditorAgentConversation/EditorAgentConversationPanelView.tsx @@ -315,15 +315,7 @@ export function EditorAgentConversationPanelView({ const currentConversationTitle = activeConversation?.title ?? '新对话'; const handleCreateConversation = () => { - void createConversation() - .then(() => { - setDraftText(''); - setAttachments([]); - setAttachmentError(null); - setDraftAttachmentKeys(new Set()); - setAttachmentPickerOpen(false); - }) - .catch(() => undefined); + void createConversation().catch(() => undefined); }; const openAttachmentPicker = () => {