🤯 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
💄 style(chat): remove the role tag next to the agent name in chat messages (#17909)
Arvin Xu2a39e4df9f09
diff --git a/src/features/Conversation/ChatItem/components/Title.tsx b/src/features/Conversation/ChatItem/components/Title.tsxindex 446677ebc45..1fabf556e73 100644--- a/src/features/Conversation/ChatItem/components/Title.tsx+++ b/src/features/Conversation/ChatItem/components/Title.tsx@@ -1,5 +1,5 @@import { agentDisplayName } from '@lobechat/types';-import { Tag, Text } from '@lobehub/ui';+import { Text } from '@lobehub/ui';import { memo } from 'react';import { useTranslation } from 'react-i18next';@@ -17,8 +17,6 @@ export interface TitleProps {const Title = memo<TitleProps>(({ showTitle, time, avatar, titleAddon }) => {const { t } = useTranslation('chat');const title = agentDisplayName(avatar, t('untitledAgent'));- // The role is only worth repeating when the personal name took the label slot.- const roleTag = avatar.name?.trim() && avatar.title?.trim() ? avatar.title.trim() : undefined;const { text: timeText, title: timeTitle } = useActivityTime(time);return (@@ -28,7 +26,6 @@ const Title = memo<TitleProps>(({ showTitle, time, avatar, titleAddon }) => {{title}</Text>)}- {showTitle && roleTag && <Tag size={'small'}>{roleTag}</Tag>}{showTitle ? titleAddon : undefined}{!timeText ? null : (<Text