From 609180022e07086d2e39d7db35311075ac4aedf4 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Thu, 29 Jan 2026 16:07:52 +0800 Subject: [PATCH] feat(chat): refactor message rendering and introduce ToolCallItem component --- dashboard/src/components/chat/MessageList.vue | 138 +------- .../message_list_comps/IPythonToolBlock.vue | 67 ++-- .../MessagePartsRenderer.vue | 334 ++++++++++++++++++ .../chat/message_list_comps/ToolCallItem.vue | 74 ++++ 4 files changed, 438 insertions(+), 175 deletions(-) create mode 100644 dashboard/src/components/chat/message_list_comps/MessagePartsRenderer.vue create mode 100644 dashboard/src/components/chat/message_list_comps/ToolCallItem.vue diff --git a/dashboard/src/components/chat/MessageList.vue b/dashboard/src/components/chat/MessageList.vue index bfba6a83a..bd59d4c5a 100644 --- a/dashboard/src/components/chat/MessageList.vue +++ b/dashboard/src/components/chat/MessageList.vue @@ -94,80 +94,9 @@ :reasoning="msg.content.reasoning" :is-dark="isDark" :initial-expanded="isReasoningExpanded(index)" /> - - +
@@ -250,14 +179,13 @@ diff --git a/dashboard/src/components/chat/message_list_comps/ToolCallItem.vue b/dashboard/src/components/chat/message_list_comps/ToolCallItem.vue new file mode 100644 index 000000000..f3755da8a --- /dev/null +++ b/dashboard/src/components/chat/message_list_comps/ToolCallItem.vue @@ -0,0 +1,74 @@ + + + + +