diff --git a/src/frontend/apps/conversations/src/features/chat/components/Chat.tsx b/src/frontend/apps/conversations/src/features/chat/components/Chat.tsx index 4203739..ef6a5ae 100644 --- a/src/frontend/apps/conversations/src/features/chat/components/Chat.tsx +++ b/src/frontend/apps/conversations/src/features/chat/components/Chat.tsx @@ -701,7 +701,23 @@ export const Chat = ({ > - {t('Search...')} + {(() => { + const toolInvocation = message.parts?.find( + (part) => + part.type === 'tool-invocation' && + part.toolInvocation.toolName !== + 'document_parsing', + ); + if ( + toolInvocation?.type === + 'tool-invocation' && + toolInvocation.toolInvocation.toolName === + 'summarize' + ) { + return t('Summarizing...'); + } + return t('Search...'); + })()} )} diff --git a/src/frontend/apps/conversations/src/features/chat/components/ToolInvocationItem.tsx b/src/frontend/apps/conversations/src/features/chat/components/ToolInvocationItem.tsx index a6f8305..de5a712 100644 --- a/src/frontend/apps/conversations/src/features/chat/components/ToolInvocationItem.tsx +++ b/src/frontend/apps/conversations/src/features/chat/components/ToolInvocationItem.tsx @@ -68,7 +68,7 @@ export const ToolInvocationItem: React.FC = ({ > - {toolInvocation.toolName === 'summarize' ? t('Summarizing...') : t('Search...')} + {t('Search...')} )}