From aea43cfc104c7a4fef88c62681e0f4fcd2aadea7 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 11:03:44 +0800 Subject: [PATCH] style: update editor agent conversation selection UI --- .../EditorAgentConversationPanelView.tsx | 82 ++++++++++++------- 1 file changed, 54 insertions(+), 28 deletions(-) diff --git a/src/components/image-editor/EditorAgentConversation/EditorAgentConversationPanelView.tsx b/src/components/image-editor/EditorAgentConversation/EditorAgentConversationPanelView.tsx index 80ae0a832..d047a8965 100644 --- a/src/components/image-editor/EditorAgentConversation/EditorAgentConversationPanelView.tsx +++ b/src/components/image-editor/EditorAgentConversation/EditorAgentConversationPanelView.tsx @@ -1,5 +1,6 @@ import { Bot, + ChevronDown, Loader2, MessageCircle, Paperclip, @@ -251,6 +252,7 @@ export function EditorAgentConversationPanelView({ const effectiveProjectId = hasConversationMounted ? projectId : null; const { conversations, + activeConversation, activeConversationId, messages, isLoadingConversations, @@ -308,6 +310,9 @@ export function EditorAgentConversationPanelView({ const hasProject = Boolean(projectId?.trim()); const isConversationBusy = isWaiting || isToolCallActionPending; const hasCurrentConversationContent = messages.length > 0; + const isConversationSelectDisabled = + !conversations.length || isLoadingConversations || isConversationBusy; + const currentConversationTitle = activeConversation?.title ?? '新对话'; const handleCreateConversation = () => { void createConversation() @@ -525,35 +530,56 @@ export function EditorAgentConversationPanelView({ >