From 1a5b1d608623b5984c507e0d4ac7535a5ffa219b Mon Sep 17 00:00:00 2001 From: Acbox Date: Thu, 16 Apr 2026 16:39:57 +0800 Subject: [PATCH] fix(web): show send tool calls in chat Remove the frontend filter that hid send tool blocks delivered to the current conversation so assistant actions remain visible in chat. --- apps/web/src/pages/home/components/message-item.vue | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/apps/web/src/pages/home/components/message-item.vue b/apps/web/src/pages/home/components/message-item.vue index e2514368..f270abcf 100644 --- a/apps/web/src/pages/home/components/message-item.vue +++ b/apps/web/src/pages/home/components/message-item.vue @@ -192,7 +192,7 @@ @@ -257,7 +257,6 @@ import ChannelBadge from '@/components/chat-list/channel-badge/index.vue' // import { useI18n } from 'vue-i18n' import type { ChatMessage, - ContentBlock, ThinkingBlock as ThinkingBlockType, ToolCallBlock as ToolCallBlockType, AttachmentBlock as AttachmentBlockType, @@ -334,12 +333,6 @@ const userAttachmentBlock = computed(() => { } }) -function isHiddenToolMessage(block: ContentBlock): boolean { - if (block.type !== 'tool') return false - const result = block.result as Record | null - return !!result && typeof result === 'object' && result.delivered === 'current_conversation' -} - function hasLaterAssistantMessage(index: number): boolean { return props.message.role === 'assistant' && props.message.messages.slice(index + 1).length > 0 } @@ -350,7 +343,7 @@ function isAssistantBlockStreaming(index: number): boolean { const hasVisibleAssistantBlocks = computed(() => props.message.role === 'assistant' - && props.message.messages.some(block => block.type !== 'tool' || !isHiddenToolMessage(block)), + && props.message.messages.length > 0, ) const relativeTimestamp = computed(() =>