🤯 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
✨ feat: add Agent Signal marker to receipt descriptions (#14764)
AmAzing-44892960e01a
diff --git a/src/features/Conversation/ChatList/components/AgentSignalReceiptList.test.tsx b/src/features/Conversation/ChatList/components/AgentSignalReceiptList.test.tsxindex 09578cd424f..bc8f0aac454 100644--- a/src/features/Conversation/ChatList/components/AgentSignalReceiptList.test.tsx+++ b/src/features/Conversation/ChatList/components/AgentSignalReceiptList.test.tsx@@ -72,6 +72,7 @@ describe('AgentSignalReceiptList', () => {expect(screen.getByText('GitHub PR review workflow')).toBeInTheDocument();expect(screen.getByText('Memory saved')).toBeInTheDocument();expect(screen.getByText('Skill updated')).toBeInTheDocument();+ expect(screen.getAllByTitle('Agent Signal')).toHaveLength(2);});it('renders receipt cards without the recent activity label', () => {diff --git a/src/features/Conversation/ChatList/components/AgentSignalReceiptList.tsx b/src/features/Conversation/ChatList/components/AgentSignalReceiptList.tsxindex c4a6a07e22d..4a837886789 100644--- a/src/features/Conversation/ChatList/components/AgentSignalReceiptList.tsx+++ b/src/features/Conversation/ChatList/components/AgentSignalReceiptList.tsx@@ -1,8 +1,9 @@'use client';+import { Icon } from '@lobehub/ui';import { createStaticStyles } from 'antd-style';import type { LucideIcon } from 'lucide-react';-import { Brain, ClipboardCheck, FileText } from 'lucide-react';+import { Brain, ClipboardCheck, FileText, RadioTower } from 'lucide-react';import { memo, useCallback } from 'react';import { useTranslation } from 'react-i18next';@@ -14,7 +15,25 @@ import type { AgentSignalReceiptView } from '../hooks/useAgentSignalReceipts';const PAGE_ROUTE_PATTERN = /^\/agent\/([^/]+)\/([^/]+)\/page(?:\/[^/?#]+)?/;-const styles = createStaticStyles(({ css }) => ({+const styles = createStaticStyles(({ css, cssVar }) => ({+ agentSignalDescription: css`+ display: inline-flex;+ gap: 4px;+ align-items: center;+ max-width: 100%;+ `,+ agentSignalMarker: css`+ display: inline-flex;+ flex: none;+ align-items: center;+ color: ${cssVar.colorPrimary};+ `,+ descriptionText: css`+ overflow: hidden;+ min-width: 0;+ text-overflow: ellipsis;+ white-space: nowrap;+ `,list: css`display: flex;flex-direction: column;@@ -50,6 +69,19 @@ const AgentSignalReceiptItem = memo<AgentSignalReceiptItemProps>(({ receipt }) =const description = receipt.target ? fallbackTitle : detail;const summary = receipt.target?.summary ?? detail;const tooltip = `${fallbackTitle}: ${summary}`;+ const agentSignalLabel = t('agentSignal.receipts.agentSignalLabel', 'Agent Signal');+ const descriptionRender = (+ <span className={styles.agentSignalDescription}>+ <span+ aria-label={agentSignalLabel}+ className={styles.agentSignalMarker}+ title={agentSignalLabel}+ >+ <Icon icon={RadioTower} size={12} />+ </span>+ <span className={styles.descriptionText}>{description}</span>+ </span>+ );const target = receipt.target;const documentId = target?.type === 'skill' ? (target.documentId ?? target.id) : undefined;const canOpen = target?.type === 'memory' || Boolean(documentId);@@ -75,7 +107,7 @@ const AgentSignalReceiptItem = memo<AgentSignalReceiptItemProps>(({ receipt }) =return (<PortalResourceCard- description={description}+ description={descriptionRender}icon={ReceiptIcon}openLabel={canOpen ? t('common:cmdk.toOpen', 'Open') : undefined}title={title}diff --git a/src/locales/default/chat.ts b/src/locales/default/chat.tsindex 8310d5d0214..cbb05646247 100644--- a/src/locales/default/chat.ts+++ b/src/locales/default/chat.ts@@ -32,6 +32,7 @@ export default {'agentProfile.knowledgeBases_other': '{{count}} knowledge bases','agentProfile.skills_one': '{{count}} skill','agentProfile.skills_other': '{{count}} skills',+ 'agentSignal.receipts.agentSignalLabel': 'Agent Signal','agentSignal.receipts.memory.detail': 'Saved this for future replies','agentSignal.receipts.memory.title': 'Memory saved','agentSignal.receipts.recentActivity': 'Recent activity',