fix: always keep draft
Project CI / Frontend tests (pull_request) Successful in 1m33s
Project CI / Repository checks (pull_request) Successful in 2m36s
Project CI / Native shell tests (pull_request) Successful in 8m2s
Project CI / Backend tests (pull_request) Successful in 8m28s

This commit is contained in:
2026-07-22 12:05:45 +08:00
parent 460bad3953
commit 3815aa4353
@@ -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 = () => {