fix: always keep draft
This commit is contained in:
+1
-9
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user