From ef963617fc7bce1dc0fe02333fdafd1de2db29db Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Tue, 12 May 2026 15:26:48 +0800 Subject: [PATCH] =?UTF-8?q?feat(agent):=20=E6=9B=B4=E6=96=B0=E4=BB=A3?= =?UTF-8?q?=E7=90=86=E9=9D=A2=E6=9D=BF=E5=92=8C=E8=BE=93=E5=85=A5=E5=8C=BA?= =?UTF-8?q?=E5=9F=9F=EF=BC=8C=E4=BC=98=E5=8C=96=E7=8A=B6=E6=80=81=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=92=8C=E7=95=8C=E9=9D=A2=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/AgentChatComponent.vue | 48 +++++------------------ web/src/components/AgentInputArea.vue | 21 +--------- web/src/components/AgentPanel.vue | 35 +---------------- web/src/views/AgentView.vue | 17 ++++++-- 4 files changed, 28 insertions(+), 93 deletions(-) diff --git a/web/src/components/AgentChatComponent.vue b/web/src/components/AgentChatComponent.vue index 00c38585..644c37a6 100644 --- a/web/src/components/AgentChatComponent.vue +++ b/web/src/components/AgentChatComponent.vue @@ -12,8 +12,12 @@
- - +
@@ -150,12 +154,10 @@ :send-button-disabled="isSendButtonDisabled" :mention="mentionConfig" :supports-file-upload="supportsFileUpload" - :is-panel-open="isAgentPanelOpen" :has-active-thread="!!currentChatId" :todos="currentTodos" @send="handleSendOrStop" @upload-attachment="handleAttachmentUpload" - @toggle-panel="toggleAgentPanel" > @@ -108,7 +98,7 @@ import { computed, ref, watch } from 'vue' import MessageInputComponent from '@/components/MessageInputComponent.vue' import ImagePreviewComponent from '@/components/ImagePreviewComponent.vue' import AttachmentOptionsComponent from '@/components/AttachmentOptionsComponent.vue' -import { FolderKanban, SquareCheck } from 'lucide-vue-next' +import { SquareCheck } from 'lucide-vue-next' import { CheckCircleOutlined, ClockCircleOutlined, @@ -124,7 +114,6 @@ const props = defineProps({ sendButtonDisabled: { type: Boolean, default: false }, mention: { type: Object, default: () => null }, supportsFileUpload: { type: Boolean, default: false }, - isPanelOpen: { type: Boolean, default: false }, hasActiveThread: { type: Boolean, default: true }, todos: { type: Array, @@ -132,13 +121,7 @@ const props = defineProps({ } }) -const emit = defineEmits([ - 'update:modelValue', - 'send', - 'keydown', - 'upload-attachment', - 'toggle-panel' -]) +const emit = defineEmits(['update:modelValue', 'send', 'keydown', 'upload-attachment']) const inputRef = ref(null) const currentImage = ref(null) diff --git a/web/src/components/AgentPanel.vue b/web/src/components/AgentPanel.vue index d13c8ad1..f0e75c6b 100644 --- a/web/src/components/AgentPanel.vue +++ b/web/src/components/AgentPanel.vue @@ -11,16 +11,6 @@ - - @@ -124,7 +114,7 @@