🤯 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: slove when pwa user info have code cannot be viewed in full (#9817)
Shinji-Li6734a47759a4
diff --git a/src/features/Conversation/Messages/User/index.tsx b/src/features/Conversation/Messages/User/index.tsxindex e2ce4041225..a3a9233a6a7 100644--- a/src/features/Conversation/Messages/User/index.tsx+++ b/src/features/Conversation/Messages/User/index.tsx@@ -44,18 +44,8 @@ const remarkPlugins = markdownElements.filter(Boolean);const UserMessage = memo<UserMessageProps>((props) => {- const {- id,- ragQuery,- content,- createdAt,- error,- role,- index,- extra,- disableEditing,- targetId,- } = props;+ const { id, ragQuery, content, createdAt, error, role, index, extra, disableEditing, targetId } =+ props;const { t } = useTranslation('chat');const { mobile } = useResponsive();@@ -71,14 +61,14 @@ const UserMessage = memo<UserMessageProps>((props) => {]);const loading = isInRAGFlow || generating;-+// Get target name for DM indicatorconst userName = useUserStore(userProfileSelectors.nickName) || 'User';const agents = useSessionStore(sessionSelectors.currentGroupAgents);-+const dmIndicator = useMemo(() => {if (!targetId) return undefined;-+let targetName = targetId;if (targetId === 'user') {targetName = userName;@@ -86,7 +76,7 @@ const UserMessage = memo<UserMessageProps>((props) => {const targetAgent = agents?.find((agent) => agent.id === targetId);targetName = targetAgent?.title || targetId;}-+return <Tag>{t('dm.visibleTo', { target: targetName })}</Tag>;}, [targetId, userName, agents, t]);@@ -167,7 +157,7 @@ const UserMessage = memo<UserMessageProps>((props) => {direction={placement === 'left' ? 'horizontal' : 'horizontal-reverse'}gap={8}>- <Flexbox flex={1} style={{ minWidth: 0 }}>+ <Flexbox flex={1} style={{ maxWidth: '100%', minWidth: 0 }}><MessageContentediting={editing}id={id}