🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🐛 fix: show fallback title for custom assistant in chat messages (#11820)
Arvin Xu0c96b5a03455
diff --git a/src/features/Conversation/ChatItem/components/Title.tsx b/src/features/Conversation/ChatItem/components/Title.tsxindex 34aa262a692..4b3e0b94dc5 100644--- a/src/features/Conversation/ChatItem/components/Title.tsx+++ b/src/features/Conversation/ChatItem/components/Title.tsx@@ -1,6 +1,7 @@import { Text } from '@lobehub/ui';import dayjs from 'dayjs';import { memo } from 'react';+import { useTranslation } from 'react-i18next';import { type ChatItemProps } from '../type';@@ -12,11 +13,14 @@ export interface TitleProps {}const Title = memo<TitleProps>(({ showTitle, time, avatar, titleAddon }) => {+ const { t } = useTranslation('chat');+ const title = avatar.title || t('untitledAgent');+return (<>- {showTitle && avatar.title && (+ {showTitle && (<Text fontSize={14} weight={500}>- {avatar.title}+ {title}</Text>)}{showTitle ? titleAddon : undefined}