🤯 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(tasks): detail polish round + heartbeat webhook fix + notif deep-link (#14228)
Arvin Xu685b17e59e4c
diff --git a/apps/desktop/src/main/controllers/NotificationCtr.ts b/apps/desktop/src/main/controllers/NotificationCtr.tsindex ed69c24116b..17d0cec89f1 100644--- a/apps/desktop/src/main/controllers/NotificationCtr.ts+++ b/apps/desktop/src/main/controllers/NotificationCtr.ts@@ -155,6 +155,9 @@ export default class NotificationCtr extends ControllerModule {const mainWindow = this.app.browserManager.getMainWindow();mainWindow.show();mainWindow.browserWindow.focus();+ if (params.navigate?.path) {+ mainWindow.broadcast('navigate', params.navigate);+ }});notification.on('close', () => {diff --git a/packages/electron-client-ipc/src/types/notification.ts b/packages/electron-client-ipc/src/types/notification.tsindex 26e94cde88e..344f23a2ab2 100644--- a/packages/electron-client-ipc/src/types/notification.ts+++ b/packages/electron-client-ipc/src/types/notification.ts@@ -1,6 +1,12 @@export interface ShowDesktopNotificationParams {body: string;force?: boolean;+ /**+ * SPA path to navigate to when the user clicks the notification.+ * Reuses the existing `navigate` main-broadcast pipeline, so it requires+ * `DesktopNavigationBridge` to be mounted on the renderer side.+ */+ navigate?: { path: string; replace?: boolean };requestAttention?: boolean;silent?: boolean;title: string;diff --git a/src/features/AgentTasks/AgentTaskDetail/CommentCard.tsx b/src/features/AgentTasks/AgentTaskDetail/CommentCard.tsxindex 4988dab8788..32a6ae27f18 100644--- a/src/features/AgentTasks/AgentTaskDetail/CommentCard.tsx+++ b/src/features/AgentTasks/AgentTaskDetail/CommentCard.tsx@@ -98,7 +98,8 @@ const CommentCard = memo<CommentCardProps>(({ activity }) => {<BlockclassName={styles.commentCard}gap={8}- padding={12}+ paddingBlock={12}+ paddingInline={8}style={{ borderRadius: cssVar.borderRadiusLG }}variant={'outlined'}>diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskActivities.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskActivities.tsxindex 017a3ff1feb..b308f44bfac 100644--- a/src/features/AgentTasks/AgentTaskDetail/TaskActivities.tsx+++ b/src/features/AgentTasks/AgentTaskDetail/TaskActivities.tsx@@ -8,7 +8,6 @@ import { memo, useCallback, useMemo } from 'react';import { useTranslation } from 'react-i18next';import AgentProfilePopup from '@/features/AgentProfileCard/AgentProfilePopup';-import BriefCard from '@/features/DailyBrief/BriefCard';import type { BriefItem } from '@/features/DailyBrief/types';import { useTaskStore } from '@/store/task';import { taskActivitySelectors, taskDetailSelectors } from '@/store/task/selectors';@@ -16,6 +15,7 @@ import { taskActivitySelectors, taskDetailSelectors } from '@/store/task/selectoimport { styles } from '../shared/style';import CommentCard from './CommentCard';import CommentInput from './CommentInput';+import TaskBriefCard from './TaskBriefCard';import TopicCard from './TopicCard';const ROW_TYPE_ICON = {@@ -164,9 +164,8 @@ const TaskActivities = memo(() => {items.map(({ activity, brief, key }) => {if (brief) {return (- <BriefCard+ <TaskBriefCardbrief={brief}- enableNavigation={false}key={key}onAfterAddComment={refreshActiveTask}onAfterResolve={refreshActiveTask}diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskArtifacts.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskArtifacts.tsxnew file mode 100644index 00000000000..a9ab0d1ca53--- /dev/null+++ b/src/features/AgentTasks/AgentTaskDetail/TaskArtifacts.tsx@@ -0,0 +1,118 @@+import type { TaskDetailWorkspaceNode } from '@lobechat/types';+import { Block, Flexbox, Icon, Tag, Text } from '@lobehub/ui';+import { ConfigProvider, Tree } from 'antd';+import type { DataNode } from 'antd/es/tree';+import { cssVar } from 'antd-style';+import { ChevronDown, FileText, FolderClosed, Package } from 'lucide-react';+import { memo, useMemo, useState } from 'react';+import { useTranslation } from 'react-i18next';++import { useTaskStore } from '@/store/task';+import { taskDetailSelectors } from '@/store/task/selectors';++import { styles } from '../shared/style';++const formatSize = (size?: number | null): string | undefined => {+ if (size == null) return undefined;+ if (size < 1000) return `${size} chars`;+ return `${(size / 1000).toFixed(1)}k chars`;+};++const ArtifactTitle = memo<{ node: TaskDetailWorkspaceNode }>(({ node }) => {+ const isFolder = (node.children?.length ?? 0) > 0;+ const sizeLabel = formatSize(node.size);++ return (+ <Flexbox+ horizontal+ align="center"+ gap={8}+ style={{ lineHeight: 1, minWidth: 0, overflow: 'hidden', width: '100%' }}+ >+ <Icon+ color={cssVar.colorTextDescription}+ icon={isFolder ? FolderClosed : FileText}+ size={14}+ style={{ flex: 'none' }}+ />+ <Text ellipsis fontSize={13} style={{ flex: 1, minWidth: 0 }}>+ {node.title || 'Untitled'}+ </Text>+ {sizeLabel && (+ <Text style={{ color: cssVar.colorTextQuaternary, flex: 'none', fontSize: 12 }}>+ {sizeLabel}+ </Text>+ )}+ {node.sourceTaskIdentifier && (+ <Tag size="small" style={{ flexShrink: 0 }}>+ {node.sourceTaskIdentifier}+ </Tag>+ )}+ </Flexbox>+ );+});++const toTreeData = (nodes: TaskDetailWorkspaceNode[]): DataNode[] =>+ nodes.map((node) => ({+ children: node.children?.length ? toTreeData(node.children) : undefined,+ key: node.documentId,+ title: <ArtifactTitle node={node} />,+ }));++const TaskArtifacts = memo(() => {+ const { t } = useTranslation('chat');+ const workspace = useTaskStore(taskDetailSelectors.activeTaskWorkspace);+ const [isExpanded, setIsExpanded] = useState(true);++ const treeData = useMemo(() => toTreeData(workspace), [workspace]);++ if (workspace.length === 0) return null;++ return (+ <Flexbox gap={8}>+ <Flexbox horizontal align="center" justify="space-between">+ <Block+ clickable+ horizontal+ align="center"+ gap={8}+ paddingBlock={4}+ paddingInline={8}+ style={{ cursor: 'pointer', width: 'fit-content' }}+ variant="borderless"+ onClick={() => setIsExpanded((prev) => !prev)}+ >+ <Icon color={cssVar.colorTextDescription} icon={Package} size={16} />+ <Text color={cssVar.colorTextSecondary} fontSize={13} weight={500}>+ {t('taskDetail.artifacts')}+ </Text>+ <Tag size="small">{workspace.length}</Tag>+ <Icon+ color={cssVar.colorTextDescription}+ icon={ChevronDown}+ size={14}+ style={{+ transform: isExpanded ? 'rotate(0deg)' : 'rotate(-90deg)',+ transition: 'transform 200ms',+ }}+ />+ </Block>+ </Flexbox>+ {isExpanded && (+ <ConfigProvider theme={{ components: { Tree: { titleHeight: 32 } } }}>+ <Tree+ blockNode+ defaultExpandAll+ showLine+ className={styles.subtaskTree}+ selectable={false}+ switcherIcon={<Icon icon={ChevronDown} size={14} />}+ treeData={treeData}+ />+ </ConfigProvider>+ )}+ </Flexbox>+ );+});++export default TaskArtifacts;diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskBriefCard.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskBriefCard.tsxnew file mode 100644index 00000000000..a5e1f2baf9d--- /dev/null+++ b/src/features/AgentTasks/AgentTaskDetail/TaskBriefCard.tsx@@ -0,0 +1,48 @@+import { Block, Flexbox, Text } from '@lobehub/ui';+import { cssVar } from 'antd-style';+import { memo } from 'react';++import BriefCardActions from '@/features/DailyBrief/BriefCardActions';+import BriefCardSummary from '@/features/DailyBrief/BriefCardSummary';+import BriefIcon from '@/features/DailyBrief/BriefIcon';+import { styles as briefStyles } from '@/features/DailyBrief/style';+import type { BriefItem } from '@/features/DailyBrief/types';+import Time from '@/routes/(main)/home/features/components/Time';++interface TaskBriefCardProps {+ brief: BriefItem;+ onAfterAddComment?: () => void | Promise<void>;+ onAfterResolve?: () => void | Promise<void>;+}++const TaskBriefCard = memo<TaskBriefCardProps>(({ brief, onAfterResolve, onAfterAddComment }) => {+ return (+ <Block+ className={briefStyles.card}+ gap={12}+ padding={12}+ style={{ borderRadius: cssVar.borderRadiusLG }}+ variant={'outlined'}+ >+ <Flexbox horizontal align={'center'} gap={8} style={{ overflow: 'hidden' }}>+ <BriefIcon size={20} type={brief.type} />+ <Text ellipsis style={{ flex: 1 }} weight={500}>+ {brief.title}+ </Text>+ <Time date={brief.createdAt} />+ </Flexbox>+ <BriefCardSummary summary={brief.summary} />+ <BriefCardActions+ actions={brief.actions}+ briefId={brief.id}+ briefType={brief.type}+ resolvedAction={brief.resolvedAction}+ taskId={brief.taskId}+ onAfterAddComment={onAfterAddComment}+ onAfterResolve={onAfterResolve}+ />+ </Block>+ );+});++export default TaskBriefCard;diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskDetailPage.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskDetailPage.tsxindex b0c345ccebf..4bbe743e43c 100644--- a/src/features/AgentTasks/AgentTaskDetail/TaskDetailPage.tsx+++ b/src/features/AgentTasks/AgentTaskDetail/TaskDetailPage.tsx@@ -12,6 +12,7 @@ import { taskDetailSelectors } from '@/store/task/selectors';import Breadcrumb from '../shared/Breadcrumb';import TaskActivities from './TaskActivities';+import TaskArtifacts from './TaskArtifacts';import TaskDetailAssignee from './TaskDetailAssignee';import TaskDetailHeaderActions from './TaskDetailHeaderActions';import TaskDetailRunPauseAction from './TaskDetailRunPauseAction';@@ -95,6 +96,7 @@ const TaskDetailPage = memo<TaskDetailPageProps>(({ agentId, taskId }) => {<Flexbox gap={24} style={{ paddingBottom: 120 }}><TaskInstruction /><TaskSubtasks />+ <TaskArtifacts /><TaskActivities /></Flexbox></>diff --git a/src/features/AgentTasks/AgentTaskDetail/TopicCard.tsx b/src/features/AgentTasks/AgentTaskDetail/TopicCard.tsxindex 6a1a43913cf..c5524ee16c3 100644--- a/src/features/AgentTasks/AgentTaskDetail/TopicCard.tsx+++ b/src/features/AgentTasks/AgentTaskDetail/TopicCard.tsx@@ -6,17 +6,18 @@ import {type DropdownItem,DropdownMenu,Flexbox,- Icon,Text,} from '@lobehub/ui';import { cssVar } from 'antd-style';import dayjs from 'dayjs';-import { CalendarDays, Copy, ExternalLink, MoreHorizontal } from 'lucide-react';+import { CircleDot, Copy, ExternalLink, MoreHorizontal } from 'lucide-react';import { memo, useCallback, useEffect, useState } from 'react';import { useTranslation } from 'react-i18next';+import AgentProfilePopup from '@/features/AgentProfileCard/AgentProfilePopup';import { useTaskStore } from '@/store/task';+import { styles } from '../shared/style';import TopicStatusIcon from './TopicStatusIcon';const formatDuration = (ms: number): string => {@@ -76,17 +77,39 @@ const TopicCard = memo<TopicCardProps>(({ activity }) => {},];+ const isAgent = activity.author?.type === 'agent';++ const avatarNode = activity.author?.avatar ? (+ <Avatar avatar={activity.author.avatar} size={24} />+ ) : (+ <div className={styles.activityAvatar}>+ <CircleDot size={12} />+ </div>+ );+return (<Blockclickable={!!activity.id}gap={8}- padding={12}+ paddingBlock={8}+ paddingInline={8}style={{ borderRadius: cssVar.borderRadiusLG }}variant={'outlined'}onClick={activity.id ? handleOpen : undefined}>- <Flexbox horizontal align={'center'} gap={12} justify={'space-between'}>+ <Flexbox horizontal align={'center'} gap={8} justify={'space-between'}><Flexbox horizontal align={'center'} gap={8} style={{ minWidth: 0, overflow: 'hidden' }}>+ {isAgent && activity.author?.id ? (+ <AgentProfilePopup+ agent={{ avatar: activity.author.avatar, title: activity.author.name }}+ agentId={activity.author.id}+ trigger={'hover'}+ >+ {avatarNode}+ </AgentProfilePopup>+ ) : (+ avatarNode+ )}<TopicStatusIcon size={16} status={activity.status} /><Text ellipsis weight={500}>{activity.title}@@ -104,21 +127,10 @@ const TopicCard = memo<TopicCardProps>(({ activity }) => {</Flexbox><Flexbox horizontal align={'center'} flex={'none'} gap={8}>- {activity.author && (- <Flexbox horizontal align={'center'} gap={6}>- {activity.author.avatar && <Avatar avatar={activity.author.avatar} size={20} />}- <Text fontSize={12} type={'secondary'}>- {activity.author.name}- </Text>- </Flexbox>- )}{startedAt && (- <Flexbox horizontal align={'center'} gap={4}>- <Icon color={cssVar.colorTextTertiary} icon={CalendarDays} size={12} />- <Text fontSize={12} type={'secondary'}>- {startedAt}- </Text>- </Flexbox>+ <Text fontSize={12} type={'secondary'}>+ {startedAt}+ </Text>)}<DropdownMenu items={menuItems}><ActionIcondiff --git a/src/features/AgentTasks/shared/style.ts b/src/features/AgentTasks/shared/style.tsindex 21ec92bde65..7378a0c3681 100644--- a/src/features/AgentTasks/shared/style.ts+++ b/src/features/AgentTasks/shared/style.ts@@ -144,16 +144,22 @@ export const styles = createStaticStyles(({ css, cssVar }) => ({commentInputCard: css`padding-block: 4px;padding-inline: 8px;- border: 1px solid ${cssVar.colorBorderSecondary};+ border: 1px solid transparent;border-radius: ${cssVar.borderRadiusLG};- background: ${cssVar.colorBgElevated};+ background: ${cssVar.colorFillTertiary};++ transition:+ background 0.15s ease,+ border-color 0.15s ease;- transition: border-color 0.15s ease;+ &:hover {+ background: ${cssVar.colorFillSecondary};+ }- &:hover,&:focus-within {border-color: ${cssVar.colorBorder};+ background: ${cssVar.colorFillTertiary};}`,}));diff --git a/src/features/DailyBrief/BriefCard.tsx b/src/features/DailyBrief/BriefCard.tsxindex bf8d8e4e0a0..bbee41288a5 100644--- a/src/features/DailyBrief/BriefCard.tsx+++ b/src/features/DailyBrief/BriefCard.tsx@@ -1,5 +1,6 @@import { DEFAULT_AVATAR, INBOX_SESSION_ID } from '@lobechat/const';import { Avatar, Block, Flexbox, Text } from '@lobehub/ui';+import { Divider } from 'antd';import { cssVar } from 'antd-style';import { memo } from 'react';import { useTranslation } from 'react-i18next';@@ -80,6 +81,7 @@ const BriefCard = memo<BriefCardProps>(</Flexbox>{brief.agents.length > 0 && <AgentAvatars agents={brief.agents} />}</Flexbox>+ <Divider dashed style={{ marginBlock: 0 }} /><BriefCardSummary summary={brief.summary} /><BriefCardActionsactions={brief.actions}diff --git a/src/features/DailyBrief/BriefCardSummary.tsx b/src/features/DailyBrief/BriefCardSummary.tsxindex 386ab684df0..d7f7595b3cd 100644--- a/src/features/DailyBrief/BriefCardSummary.tsx+++ b/src/features/DailyBrief/BriefCardSummary.tsx@@ -1,6 +1,5 @@import { Button, Flexbox, Markdown, MaskShadow } from '@lobehub/ui';import { useSize } from 'ahooks';-import { Divider } from 'antd';import { ChevronsDownUpIcon, ChevronsUpDownIcon } from 'lucide-react';import { memo, useEffect, useRef, useState } from 'react';import { useTranslation } from 'react-i18next';@@ -33,7 +32,6 @@ const BriefCardSummary = memo<BriefCardSummaryProps>(({ summary }) => {return (<Flexbox gap={4}>- <Divider dashed style={{ marginTop: 0, marginBottom: 8 }} />{isOverflow && !expanded ? (<MaskShadowsize={32}diff --git a/src/locales/default/chat.ts b/src/locales/default/chat.tsindex 68b43d5343c..cffdee8de48 100644--- a/src/locales/default/chat.ts+++ b/src/locales/default/chat.ts@@ -531,6 +531,7 @@ export default {'taskSchedule.title': 'Schedule','taskDetail.activities': 'Activities','taskDetail.activitiesEmpty': 'No activity yet',+ 'taskDetail.artifacts': 'Artifacts','taskDetail.activities.agentTag': 'Agent','taskDetail.activities.fallback.brief': 'posted a brief','taskDetail.activities.fallback.comment': 'left a comment',diff --git a/src/routes/(main)/agent/features/Conversation/Header/ViewSwitcher/index.tsx b/src/routes/(main)/agent/features/Conversation/Header/ViewSwitcher/index.tsxindex 2f5e71166b3..2acf63f3ccd 100644--- a/src/routes/(main)/agent/features/Conversation/Header/ViewSwitcher/index.tsx+++ b/src/routes/(main)/agent/features/Conversation/Header/ViewSwitcher/index.tsx@@ -25,6 +25,11 @@ const styles = createStaticStyles(({ css }) => ({align-items: center;justify-content: center;}++ .ant-segmented-item,+ .ant-segmented-thumb {+ border-radius: 999px;+ }`,icon: css`display: none;@@ -121,6 +126,7 @@ const ViewSwitcher = memo(() => {<SegmentedclassName={styles.switcher}options={options}+ shape={'round'}size={'small'}value={currentTab}onChange={handleChange}diff --git a/src/routes/(main)/agent/features/Conversation/WorkingSidebar/ProgressSection/index.tsx b/src/routes/(main)/agent/features/Conversation/WorkingSidebar/ProgressSection/index.tsxindex b8a9540fd00..d8912cce6f8 100644--- a/src/routes/(main)/agent/features/Conversation/WorkingSidebar/ProgressSection/index.tsx+++ b/src/routes/(main)/agent/features/Conversation/WorkingSidebar/ProgressSection/index.tsx@@ -1,174 +1,257 @@-import type { StepContextTodoStatus } from '@lobechat/types';-import { Accordion, AccordionItem, Checkbox, Flexbox, Icon, Tag, Text } from '@lobehub/ui';-import { Progress } from 'antd';+import { Checkbox, Flexbox, Icon, Tag } from '@lobehub/ui';import { createStaticStyles, cssVar, cx } from 'antd-style';-import { CircleArrowRight } from 'lucide-react';-import { memo, type ReactNode, useMemo } from 'react';+import { ChevronDown, ChevronUp, CircleArrowRight } from 'lucide-react';+import { type KeyboardEvent, memo, useCallback, useId, useMemo, useState } from 'react';import { useTranslation } from 'react-i18next';-import { useIsDark } from '@/hooks/useIsDark';import { useChatStore } from '@/store/chat';-import { selectTodosFromMessages } from '@/store/chat/slices/message/selectors/dbMessage';+import { selectCurrentTurnTodosFromMessages } from '@/store/chat/slices/message/selectors/dbMessage';import { messageMapKey } from '@/store/chat/utils/messageMapKey';import { useAgentContext } from '../../useAgentContext';import { normalizeTaskProgress } from './taskProgressAdapter';-const styles = createStaticStyles(({ css }) => ({- barWrap: css`- margin-block-end: 2px;- margin-inline: -16px;+const RING_SIZE = 14;+const RING_STROKE = 2;+const RING_RADIUS = (RING_SIZE - RING_STROKE) / 2;+const RING_CIRCUM = 2 * Math.PI * RING_RADIUS;- :where(.ant-progress-line) .ant-progress-rail {- border-radius: 0;- }+const styles = createStaticStyles(({ css, cssVar }) => ({+ collapsed: css`+ grid-template-rows: 0fr;++ margin-block-start: 0 !important;+ padding-block: 0 !important;+ border-block-start: none !important;++ opacity: 0;`,- chevron: css`- color: ${cssVar.colorTextQuaternary};+ container: css`+ margin-block-start: 4px;+ margin-inline: 16px;+ padding-block: 8px 10px;+ padding-inline: 12px;+ border: 1px solid ${cssVar.colorBorderSecondary};+ border-radius: 12px;++ background: ${cssVar.colorBgElevated};++ transition: all 0.2s ${cssVar.motionEaseInOut};`,- progressBadge: css`- color: ${cssVar.colorTextLightSolid};+ count: css`+ font-family: ${cssVar.fontFamilyCode};+ font-size: 12px;+ color: ${cssVar.colorTextSecondary};`,- progressBadge_dark: css`- color: ${cssVar.colorBgBase};+ expanded: css`+ grid-template-rows: 1fr;+ opacity: 1;`,- progressBadge_neutral: css`- color: ${cssVar.colorTextSecondary};+ header: css`+ overflow: hidden;++ font-size: 13px;+ font-weight: 500;+ color: ${cssVar.colorText};+ text-overflow: ellipsis;+ white-space: nowrap;`,- sectionTitle: css`- color: ${cssVar.colorTextSecondary};+ headerRow: css`+ cursor: pointer;+ user-select: none;+ border-radius: 4px;++ &:focus-visible {+ outline: 2px solid ${cssVar.colorPrimaryBorder};+ outline-offset: 2px;+ }`,itemRow: css`padding-block: 6px;- padding-inline: 0;+ padding-inline: 4px;+ border-block-end: 1px dashed ${cssVar.colorBorderSecondary};+ font-size: 13px;++ &:last-child {+ border-block-end: none;+ }+ `,+ listContainer: css`+ display: grid;++ margin-block-start: 8px;+ padding-block: 4px;+ border-block-start: 1px solid ${cssVar.colorBorderSecondary};++ transition:+ grid-template-rows 0.25s ${cssVar.motionEaseInOut},+ opacity 0.2s ${cssVar.motionEaseInOut},+ margin-block-start 0.2s ${cssVar.motionEaseInOut},+ padding 0.2s ${cssVar.motionEaseInOut};+ `,+ listInner: css`+ overflow: hidden;+ min-height: 0;`,processingRow: css`display: flex;- gap: 7px;+ gap: 6px;align-items: center;`,+ ring: css`+ transform: rotate(-90deg);+ flex-shrink: 0;+ `,+ ringProgress: css`+ transition:+ stroke-dashoffset 240ms ease,+ stroke 240ms ease;+ `,+ ringTrack: css`+ stroke: ${cssVar.colorFillSecondary};+ `,textCompleted: css`- color: ${cssVar.colorTextSecondary};+ color: ${cssVar.colorTextQuaternary};+ text-decoration: line-through;`,textProcessing: css`- color: ${cssVar.colorTextSecondary};+ color: ${cssVar.colorText};`,textTodo: css`color: ${cssVar.colorTextSecondary};`,}));-interface ReadOnlyTodoItemProps {- status: StepContextTodoStatus;- text: ReactNode;-}--const ReadOnlyTodoItem = memo<ReadOnlyTodoItemProps>(({ status, text }) => {- const isCompleted = status === 'completed';- const isProcessing = status === 'processing';-- if (isProcessing) {- return (- <div className={cx(styles.itemRow, styles.processingRow)}>- <Icon icon={CircleArrowRight} size={17} style={{ color: cssVar.colorTextSecondary }} />- <span className={styles.textProcessing}>{text}</span>- </div>- );- }-- return (- <Checkbox- backgroundColor={cssVar.colorSuccess}- checked={isCompleted}- shape={'circle'}- style={{ borderWidth: 1.5, cursor: 'default', pointerEvents: 'none' }}- classNames={{- text: cx(styles.textTodo, isCompleted && styles.textCompleted),- wrapper: styles.itemRow,- }}- textProps={{- type: isCompleted ? 'secondary' : undefined,- }}- >- {text}- </Checkbox>- );-});--ReadOnlyTodoItem.displayName = 'ReadOnlyTodoItem';-const ProgressSection = memo(() => {const { t } = useTranslation('chat');- const isDarkMode = useIsDark();+ const [expanded, setExpanded] = useState(true);const context = useAgentContext();const chatKey = messageMapKey(context);const dbMessages = useChatStore((s) => s.dbMessagesMap[chatKey]);+ const listId = useId();const progress = useMemo(- () => normalizeTaskProgress(selectTodosFromMessages(dbMessages || [])),+ () => normalizeTaskProgress(selectCurrentTurnTodosFromMessages(dbMessages || [])),[dbMessages],);- const hasTasks = progress.items.length > 0;- if (!hasTasks) return null;+ const items = progress.items;+ const total = items.length;+ const completed = items.filter((item) => item.status === 'completed').length;++ const toggleExpanded = useCallback(() => setExpanded((prev) => !prev), []);+ const handleHeaderKeyDown = useCallback(+ (event: KeyboardEvent<HTMLDivElement>) => {+ if (event.key === 'Enter' || event.key === ' ') {+ event.preventDefault();+ toggleExpanded();+ }+ },+ [toggleExpanded],+ );++ if (total === 0) return null;++ const allDone = completed === total;+ const ringColor = allDone ? cssVar.colorSuccess : cssVar.colorInfo;+ const ringOffset = RING_CIRCUM * (1 - progress.completionPercent / 100);return (- <>- <div className={styles.barWrap}>- <Progress- percent={progress.completionPercent}- railColor={cssVar.colorFillTertiary}- showInfo={false}- strokeColor={cssVar.colorSuccess}- strokeWidth={4}- />- </div>- <Flexbox data-testid="workspace-progress" padding={16}>- <Flexbox horizontal gap={8}>- <Accordion defaultExpandedKeys={['progress']} gap={0}>- <AccordionItem- itemKey={'progress'}- paddingBlock={2}- paddingInline={6}- title={<Text strong>{t('workingPanel.progress')}</Text>}- styles={{- header: {- width: 'fit-content',- },- }}- >- <div style={{ paddingTop: 2 }}>- {progress.items.map((item, index) => (- <ReadOnlyTodoItem key={index} status={item.status} text={item.text} />- ))}- </div>- </AccordionItem>- </Accordion>- <Tag- size={'small'}- variant={'filled'}- style={{- background: hasTasks ? cssVar.colorSuccess : cssVar.colorFillTertiary,- borderRadius: 999,- flexShrink: 0,- minWidth: 42,- paddingInline: 8,- textAlign: 'center',- }}- >- <span- className={- hasTasks- ? cx(styles.progressBadge, isDarkMode && styles.progressBadge_dark)- : styles.progressBadge_neutral- }- >- {progress.completionPercent}%+ <div className={styles.container} data-testid="workspace-progress">+ <Flexbox+ horizontal+ align="center"+ aria-controls={listId}+ aria-expanded={expanded}+ className={styles.headerRow}+ gap={8}+ justify="space-between"+ role="button"+ tabIndex={0}+ onClick={toggleExpanded}+ onKeyDown={handleHeaderKeyDown}+ >+ <Flexbox horizontal align="center" gap={8} style={{ flex: 1, minWidth: 0 }}>+ <svg className={styles.ring} height={RING_SIZE} width={RING_SIZE}>+ <circle+ className={styles.ringTrack}+ cx={RING_SIZE / 2}+ cy={RING_SIZE / 2}+ fill="none"+ r={RING_RADIUS}+ strokeWidth={RING_STROKE}+ />+ <circle+ className={styles.ringProgress}+ cx={RING_SIZE / 2}+ cy={RING_SIZE / 2}+ fill="none"+ r={RING_RADIUS}+ stroke={ringColor}+ strokeDasharray={RING_CIRCUM}+ strokeDashoffset={ringOffset}+ strokeLinecap="round"+ strokeWidth={RING_STROKE}+ />+ </svg>+ <span className={styles.header}>{t('workingPanel.progress')}</span>+ <Tag size="small" style={{ flexShrink: 0 }}>+ <span className={styles.count}>+ {completed}/{total}</span></Tag></Flexbox>+ <Icon+ icon={expanded ? ChevronUp : ChevronDown}+ size={16}+ style={{ color: cssVar.colorTextTertiary, flexShrink: 0 }}+ /></Flexbox>- </>++ <div+ className={cx(styles.listContainer, expanded ? styles.expanded : styles.collapsed)}+ id={listId}+ >+ <div className={styles.listInner}>+ {items.map((item, index) => {+ const isCompleted = item.status === 'completed';+ const isProcessing = item.status === 'processing';++ if (isProcessing) {+ return (+ <div className={cx(styles.itemRow, styles.processingRow)} key={item.id ?? index}>+ <Icon+ icon={CircleArrowRight}+ size={17}+ style={{ color: cssVar.colorTextSecondary }}+ />+ <span className={styles.textProcessing}>{item.text}</span>+ </div>+ );+ }++ return (+ <Checkbox+ backgroundColor={cssVar.colorSuccess}+ checked={isCompleted}+ key={item.id ?? index}+ shape="circle"+ style={{ borderWidth: 1.5, cursor: 'default', pointerEvents: 'none' }}+ classNames={{+ text: cx(styles.textTodo, isCompleted && styles.textCompleted),+ wrapper: styles.itemRow,+ }}+ textProps={{+ type: isCompleted ? 'secondary' : undefined,+ }}+ >+ {item.text}+ </Checkbox>+ );+ })}+ </div>+ </div>+ </div>);});diff --git a/src/routes/(main)/home/_layout/Body/CustomizeSidebarModal.tsx b/src/routes/(main)/home/_layout/Body/CustomizeSidebarModal.tsxindex 2ab84ef797f..4cbb8cc0db5 100644--- a/src/routes/(main)/home/_layout/Body/CustomizeSidebarModal.tsx+++ b/src/routes/(main)/home/_layout/Body/CustomizeSidebarModal.tsx@@ -48,8 +48,8 @@ interface SidebarItemConfig {}const ALL_SIDEBAR_ITEMS: SidebarItemConfig[] = [- { id: 'pages', labelKey: 'tab.pages', routeId: 'page' },{ id: 'tasks', labelKey: 'tab.tasks', routeId: 'tasks' },+ { id: 'pages', labelKey: 'tab.pages', routeId: 'page' },{ id: 'recents', labelKey: 'recents' },{ alwaysVisible: true, id: 'agent', labelKey: 'navPanel.agent' },{ id: 'community', labelKey: 'tab.community', routeId: 'community' },diff --git a/src/routes/(main)/home/_layout/Body/index.tsx b/src/routes/(main)/home/_layout/Body/index.tsxindex 57dfbc1c6b2..93a17ae027f 100644--- a/src/routes/(main)/home/_layout/Body/index.tsx+++ b/src/routes/(main)/home/_layout/Body/index.tsx@@ -29,6 +29,10 @@ export enum GroupKey {const ACCORDION_KEYS = new Set<string>([GroupKey.Recents, GroupKey.Agent]);+/** Keys rendered in the header — must be excluded from the body to avoid duplicates+ * when migrating users whose persisted sidebarItems still include them. */+const HEADER_KEYS = new Set<string>(['home', 'search']);+const accordionComponents: Record<string, (key: string) => ReactElement> = {[GroupKey.Agent]: (key) => <Agent itemKey={key} key={key} />,[GroupKey.Recents]: (key) => <Recents itemKey={key} key={key} />,@@ -83,7 +87,10 @@ const Body = memo(() => {[hiddenSections],);- const visibleKeys = useMemo(() => sidebarItems.filter(isVisible), [sidebarItems, isVisible]);+ const visibleKeys = useMemo(+ () => sidebarItems.filter((k) => !HEADER_KEYS.has(k) && isVisible(k)),+ [sidebarItems, isVisible],+ );const renderNavLink = useCallback((key: string) => {diff --git a/src/routes/(main)/home/_layout/Header/components/Nav.tsx b/src/routes/(main)/home/_layout/Header/components/Nav.tsxindex fb3611ba48b..723a8344428 100644--- a/src/routes/(main)/home/_layout/Header/components/Nav.tsx+++ b/src/routes/(main)/home/_layout/Header/components/Nav.tsx@@ -30,7 +30,7 @@ const Nav = memo(() => {return (<Flexbox gap={1} paddingInline={4}>{items- .filter((item) => HEADER_KEYS.has(item.key))+ .filter((item) => HEADER_KEYS.has(item.key) && !item.hidden).map((item) => {const extra = item.isNew ? newBadge : undefined;diff --git a/src/server/services/agentEvalRun/__tests__/trajectoryMethods.test.ts b/src/server/services/agentEvalRun/__tests__/trajectoryMethods.test.tsindex aa7ba085a34..3c77c479d68 100644--- a/src/server/services/agentEvalRun/__tests__/trajectoryMethods.test.ts+++ b/src/server/services/agentEvalRun/__tests__/trajectoryMethods.test.ts@@ -197,6 +197,7 @@ describe('AgentEvalRunService', () => {type: 'onComplete',webhook: {body: { runId: run.id, testCaseId: testCase.id, userId },+ delivery: 'qstash',url: '/api/workflows/agent-eval-run/on-trajectory-complete',},}),diff --git a/src/server/services/agentEvalRun/index.ts b/src/server/services/agentEvalRun/index.tsindex 6b97f73d16c..754dbd22650 100644--- a/src/server/services/agentEvalRun/index.ts+++ b/src/server/services/agentEvalRun/index.ts@@ -567,6 +567,7 @@ export class AgentEvalRunService {type: 'onComplete' as const,webhook: {body: { runId, testCaseId, userId },+ delivery: 'qstash' as const,url: webhookUrl,},},@@ -708,6 +709,7 @@ export class AgentEvalRunService {type: 'onComplete' as const,webhook: {body: { runId, testCaseId, threadId, topicId, userId },+ delivery: 'qstash' as const,url: webhookUrl,},},@@ -987,6 +989,7 @@ export class AgentEvalRunService {type: 'onComplete' as const,webhook: {body: { runId, testCaseId, userId },+ delivery: 'qstash' as const,url: webhookUrl,},},@@ -1143,6 +1146,7 @@ export class AgentEvalRunService {type: 'onComplete' as const,webhook: {body: { runId, testCaseId, threadId, topicId, userId },+ delivery: 'qstash' as const,url: webhookUrl,},},diff --git a/src/server/services/taskRunner/index.ts b/src/server/services/taskRunner/index.tsindex 4b261996bfc..50104559d3f 100644--- a/src/server/services/taskRunner/index.ts+++ b/src/server/services/taskRunner/index.ts@@ -163,6 +163,7 @@ export class TaskRunnerService {type: 'onComplete' as const,webhook: {body: { taskId, taskIdentifier, userId },+ delivery: 'qstash' as const,url: '/api/workflows/task/on-topic-complete',},},diff --git a/src/server/services/toolExecution/serverRuntimes/__tests__/agentDocuments.test.ts b/src/server/services/toolExecution/serverRuntimes/__tests__/agentDocuments.test.tsindex 2e774530cd6..11bbf658156 100644--- a/src/server/services/toolExecution/serverRuntimes/__tests__/agentDocuments.test.ts+++ b/src/server/services/toolExecution/serverRuntimes/__tests__/agentDocuments.test.ts@@ -1,9 +1,13 @@import { AgentDocumentsExecutionRuntime } from '@lobechat/builtin-tool-agent-documents/executionRuntime';-import { describe, expect, it, vi } from 'vitest';+import { beforeEach, describe, expect, it, vi } from 'vitest';++import { TaskModel } from '@/database/models/task';+import { AgentDocumentsService } from '@/server/services/agentDocuments';import { agentDocumentsRuntime } from '../agentDocuments';vi.mock('@/server/services/agentDocuments');+vi.mock('@/database/models/task');describe('agentDocumentsRuntime', () => {it('should have correct identifier', () => {@@ -23,6 +27,101 @@ describe('agentDocumentsRuntime', () => {});});+describe('agentDocumentsRuntime auto-pin to task', () => {+ const newDoc = {+ documentId: 'documents-row-id',+ filename: 'daily-brief',+ id: 'agent-doc-assoc-id',+ title: 'Daily Brief',+ };++ let serviceImpl: {+ copyDocumentById: ReturnType<typeof vi.fn>;+ createDocument: ReturnType<typeof vi.fn>;+ createForTopic: ReturnType<typeof vi.fn>;+ upsertDocumentByFilename: ReturnType<typeof vi.fn>;+ };+ let pinDocument: ReturnType<typeof vi.fn>;++ beforeEach(() => {+ serviceImpl = {+ copyDocumentById: vi.fn().mockResolvedValue(newDoc),+ createDocument: vi.fn().mockResolvedValue(newDoc),+ createForTopic: vi.fn().mockResolvedValue(newDoc),+ upsertDocumentByFilename: vi.fn().mockResolvedValue(newDoc),+ };+ pinDocument = vi.fn().mockResolvedValue(undefined);++ vi.mocked(AgentDocumentsService).mockImplementation(() => serviceImpl as any);+ vi.mocked(TaskModel).mockImplementation(() => ({ pinDocument }) as any);+ });++ const buildContext = (taskId?: string) => ({+ serverDB: {} as never,+ taskId,+ toolManifestMap: {},+ userId: 'user-1',+ });++ it('pins newly created document when taskId is in context', async () => {+ const runtime = agentDocumentsRuntime.factory(buildContext('task-1'));++ await runtime.createDocument({ content: 'body', title: 'Daily Brief' }, { agentId: 'agent-1' });++ expect(pinDocument).toHaveBeenCalledWith('task-1', 'documents-row-id', 'agent');+ });++ it('skips pin when no taskId is provided', async () => {+ const runtime = agentDocumentsRuntime.factory(buildContext());++ await runtime.createDocument({ content: 'body', title: 'Daily Brief' }, { agentId: 'agent-1' });++ expect(pinDocument).not.toHaveBeenCalled();+ });++ it('pins documents created via createTopicDocument', async () => {+ const runtime = agentDocumentsRuntime.factory(buildContext('task-1'));++ await runtime.createDocument(+ { content: 'body', target: 'currentTopic', title: 'Topic Note' },+ { agentId: 'agent-1', topicId: 'topic-1' },+ );++ expect(pinDocument).toHaveBeenCalledWith('task-1', 'documents-row-id', 'agent');+ });++ it('pins documents produced by copyDocument', async () => {+ const runtime = agentDocumentsRuntime.factory(buildContext('task-1'));++ await runtime.copyDocument(+ { id: 'agent-doc-assoc-id', newTitle: 'Copy' },+ { agentId: 'agent-1' },+ );++ expect(pinDocument).toHaveBeenCalledWith('task-1', 'documents-row-id', 'agent');+ });++ it('pins documents produced by upsertDocumentByFilename', async () => {+ const runtime = agentDocumentsRuntime.factory(buildContext('task-1'));++ await runtime.upsertDocumentByFilename(+ { content: 'body', filename: 'daily-brief.md' },+ { agentId: 'agent-1' },+ );++ expect(pinDocument).toHaveBeenCalledWith('task-1', 'documents-row-id', 'agent');+ });++ it('does not pin when service returns undefined (e.g. copy of missing doc)', async () => {+ serviceImpl.copyDocumentById.mockResolvedValue(undefined);+ const runtime = agentDocumentsRuntime.factory(buildContext('task-1'));++ await runtime.copyDocument({ id: 'missing' }, { agentId: 'agent-1' });++ expect(pinDocument).not.toHaveBeenCalled();+ });+});+describe('AgentDocumentsExecutionRuntime.createDocument', () => {const makeStub = () => ({copyDocument: vi.fn(),diff --git a/src/server/services/toolExecution/serverRuntimes/agentDocuments.ts b/src/server/services/toolExecution/serverRuntimes/agentDocuments.tsindex 12b7e6cea4d..d55b3b8372f 100644--- a/src/server/services/toolExecution/serverRuntimes/agentDocuments.ts+++ b/src/server/services/toolExecution/serverRuntimes/agentDocuments.ts@@ -2,6 +2,7 @@ import type { DocumentLoadRule } from '@lobechat/agent-templates';import { AgentDocumentsIdentifier } from '@lobechat/builtin-tool-agent-documents';import { AgentDocumentsExecutionRuntime } from '@lobechat/builtin-tool-agent-documents/executionRuntime';+import { TaskModel } from '@/database/models/task';import { AgentDocumentsService } from '@/server/services/agentDocuments';import { type ServerRuntimeRegistration } from './types';@@ -13,13 +14,23 @@ export const agentDocumentsRuntime: ServerRuntimeRegistration = {}const service = new AgentDocumentsService(context.serverDB, context.userId);+ const taskModel = new TaskModel(context.serverDB, context.userId);+ const { taskId } = context;++ const pinToTask = async <T extends { documentId?: string } | undefined>(doc: T): Promise<T> => {+ if (taskId && doc?.documentId) {+ await taskModel.pinDocument(taskId, doc.documentId, 'agent');+ }+ return doc;+ };return new AgentDocumentsExecutionRuntime({- copyDocument: ({ agentId, id, newTitle }) => service.copyDocumentById(id, newTitle, agentId),- createDocument: ({ agentId, content, title }) =>- service.createDocument(agentId, title, content),- createTopicDocument: ({ agentId, content, title, topicId }) =>- service.createForTopic(agentId, title, content, topicId),+ copyDocument: async ({ agentId, id, newTitle }) =>+ pinToTask(await service.copyDocumentById(id, newTitle, agentId)),+ createDocument: async ({ agentId, content, title }) =>+ pinToTask(await service.createDocument(agentId, title, content)),+ createTopicDocument: async ({ agentId, content, title, topicId }) =>+ pinToTask(await service.createForTopic(agentId, title, content, topicId)),editDocument: ({ agentId, content, id }) => service.editDocumentById(id, content, agentId),listDocuments: async ({ agentId }) => {const docs = await service.listDocuments(agentId);@@ -53,8 +64,8 @@ export const agentDocumentsRuntime: ServerRuntimeRegistration = {{ ...rule, rule: rule.rule as DocumentLoadRule | undefined },agentId,),- upsertDocumentByFilename: ({ agentId, content, filename }) =>- service.upsertDocumentByFilename({ agentId, content, filename }),+ upsertDocumentByFilename: async ({ agentId, content, filename }) =>+ pinToTask(await service.upsertDocumentByFilename({ agentId, content, filename })),});},identifier: AgentDocumentsIdentifier,diff --git a/src/store/chat/slices/aiChat/actions/heterogeneousAgentExecutor.ts b/src/store/chat/slices/aiChat/actions/heterogeneousAgentExecutor.tsindex f4683d6a3e2..b5ad47dad78 100644--- a/src/store/chat/slices/aiChat/actions/heterogeneousAgentExecutor.ts+++ b/src/store/chat/slices/aiChat/actions/heterogeneousAgentExecutor.ts@@ -29,6 +29,7 @@ import { heterogeneousAgentService } from '@/services/electron/heterogeneousAgenimport { messageService } from '@/services/message';import { threadService } from '@/services/thread';import { type ChatStore, useChatStore } from '@/store/chat/store';+import { resolveNotificationNavigatePath } from '@/store/chat/utils/desktopNotification';import { markdownToTxt } from '@/utils/markdownToTxt';import { messageMapKey } from '../../../utils/messageMapKey';@@ -43,12 +44,21 @@ const generateThreadId = () => `thd_${createNanoId(16)()}`;* Notification only shows when the window is hidden (enforced in main); the* badge is always set so a minimized/backgrounded app still signals completion.*/-const notifyCompletion = async (title: string, body: string) => {+const notifyCompletion = async (title: string, body: string, context: ConversationContext) => {if (!isDesktop) return;try {const { desktopNotificationService } = await import('@/services/electron/desktopNotification');+ const navigatePath = resolveNotificationNavigatePath({+ agentId: context.agentId,+ groupId: context.groupId,+ topicId: context.topicId,+ });await Promise.allSettled([- desktopNotificationService.showNotification({ body, title }),+ desktopNotificationService.showNotification({+ body,+ navigate: navigatePath ? { path: navigatePath } : undefined,+ title,+ }),desktopNotificationService.setBadgeCount(1),]);} catch (error) {@@ -1719,7 +1729,11 @@ export const executeHeterogeneousAgent = async (const body = accumulatedContent? markdownToTxt(accumulatedContent): t('notification.finishChatGeneration', { ns: 'electron' });- notifyCompletion(t('notification.finishChatGeneration', { ns: 'electron' }), body);+ notifyCompletion(+ t('notification.finishChatGeneration', { ns: 'electron' }),+ body,+ context,+ );}},diff --git a/src/store/chat/slices/aiChat/actions/streamingExecutor.ts b/src/store/chat/slices/aiChat/actions/streamingExecutor.tsindex a075331b8a6..c982ee734d6 100644--- a/src/store/chat/slices/aiChat/actions/streamingExecutor.ts+++ b/src/store/chat/slices/aiChat/actions/streamingExecutor.ts@@ -30,7 +30,10 @@ import { agentSelectors } from '@/store/agent/selectors';import { createAgentExecutors } from '@/store/chat/agents/createAgentExecutors';import { emitClientAgentSignalSourceEvent } from '@/store/chat/slices/aiChat/actions/agentSignalBridge';import { type ChatStore, useChatStore } from '@/store/chat/store';-import { notifyDesktopHumanApprovalRequired } from '@/store/chat/utils/desktopNotification';+import {+ notifyDesktopHumanApprovalRequired,+ resolveNotificationNavigatePath,+} from '@/store/chat/utils/desktopNotification';import { getTaskStoreState } from '@/store/task';import { pageAgentRuntime } from '@/store/tool/slices/builtin/executors/lobe-page-agent';import { type StoreSetter } from '@/store/types';@@ -846,8 +849,11 @@ export class StreamingExecutorActionImpl {if (agentMeta?.title) notificationTitle = agentMeta.title;}+ const navigatePath = resolveNotificationNavigatePath({ agentId, groupId, topicId });+await desktopNotificationService.showNotification({body: markdownToTxt(lastAssistant.content),+ navigate: navigatePath ? { path: navigatePath } : undefined,title: notificationTitle,});}diff --git a/src/store/chat/utils/desktopNotification.ts b/src/store/chat/utils/desktopNotification.tsindex ae003e157ed..d55631ffbc7 100644--- a/src/store/chat/utils/desktopNotification.ts+++ b/src/store/chat/utils/desktopNotification.ts@@ -1,4 +1,9 @@-import { isDesktop } from '@lobechat/const';+import {+ GROUP_CHAT_URL,+ isDesktop,+ SESSION_CHAT_TOPIC_URL,+ SESSION_CHAT_URL,+} from '@lobechat/const';import type { ConversationContext } from '@lobechat/types';import { t } from 'i18next';@@ -8,12 +13,29 @@ import type { ChatStore } from '@/store/chat/store';import { topicMapKey } from './topicMapKey';-interface DesktopNotificationContext {+export interface DesktopNotificationContext {agentId?: ConversationContext['agentId'];groupId?: ConversationContext['groupId'];topicId?: ConversationContext['topicId'];}+/**+ * Resolve the SPA path that should be opened when the user clicks a desktop+ * notification, based on the conversation context. Group chats land on the+ * group root (topic is selected from store), 1:1 chats deep-link to the+ * specific topic.+ */+export const resolveNotificationNavigatePath = (+ context: DesktopNotificationContext,+): string | undefined => {+ if (context.groupId) return GROUP_CHAT_URL(context.groupId);+ if (context.agentId && context.topicId) {+ return SESSION_CHAT_TOPIC_URL(context.agentId, context.topicId);+ }+ if (context.agentId) return SESSION_CHAT_URL(context.agentId);+ return undefined;+};+const resolveNotificationTitle = (get: () => ChatStore,context: DesktopNotificationContext,@@ -47,11 +69,14 @@ export const notifyDesktopHumanApprovalRequired = async (const { desktopNotificationService } = await import('@/services/electron/desktopNotification');const title = resolveNotificationTitle(get, context);+ const navigatePath = resolveNotificationNavigatePath(context);+await Promise.allSettled([desktopNotificationService.setBadgeCount(1),desktopNotificationService.showNotification({body: t('desktopNotification.humanApprovalRequired.body', { ns: 'chat' }),force: true,+ navigate: navigatePath ? { path: navigatePath } : undefined,requestAttention: true,title,}),diff --git a/src/store/global/selectors/systemStatus.test.ts b/src/store/global/selectors/systemStatus.test.tsindex 548bdb4f79b..bf6bee25020 100644--- a/src/store/global/selectors/systemStatus.test.ts+++ b/src/store/global/selectors/systemStatus.test.ts@@ -123,8 +123,8 @@ describe('systemStatusSelectors', () => {const items = systemStatusSelectors.sidebarItems(s);// accordion slot in the default list now uses the user's legacy orderexpect(items).toEqual([- 'pages','tasks',+ 'pages','agent','recents','community',diff --git a/src/store/global/selectors/systemStatus.ts b/src/store/global/selectors/systemStatus.tsindex 09ee668ac53..5677ace0c85 100644--- a/src/store/global/selectors/systemStatus.ts+++ b/src/store/global/selectors/systemStatus.ts@@ -44,8 +44,8 @@ const hiddenSidebarSections = (s: GlobalState): string[] =>s.status.hiddenSidebarSections ?? DEFAULT_HIDDEN_SECTIONS;export const DEFAULT_SIDEBAR_ITEMS: string[] = [- 'pages','tasks',+ 'pages','recents','agent','community',