Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(sidebar): 自动化分组列表子项也显示来源标签
Dasha4477cbf5174
diff --git a/apps/desktop/src/renderer/__tests__/machineSwitcherMenu.test.ts b/apps/desktop/src/renderer/__tests__/machineSwitcherMenu.test.tsindex e7d3a3ab12..f0296d6fe4 100644--- a/apps/desktop/src/renderer/__tests__/machineSwitcherMenu.test.ts+++ b/apps/desktop/src/renderer/__tests__/machineSwitcherMenu.test.ts@@ -226,6 +226,13 @@ describe('远程机器切换入口并入 SidebarTopNav(置顶段上方,固定不expect(entryListSource.match(/sourceLabel=\{sourceLabelMap\?\.get\(entry\.session\.id\)\}/g)).toHaveLength(2,);+ const automationGroupSource = read(+ 'features',+ 'cc-agent',+ 'sidebar',+ 'AutomationSessionGroupItem.tsx',+ );+ expect(automationGroupSource).toContain('sourceLabel: sourceLabelMap?.get(session.id)');const cardSource = read('features', 'cc-agent', 'sidebar', 'SessionCard.tsx');expect(cardSource).toContain('sourceLabel,');expect(cardSource).toContain('{sourceLabel ? (');diff --git a/apps/desktop/src/renderer/features/cc-agent/sidebar/AutomationSessionGroupItem.tsx b/apps/desktop/src/renderer/features/cc-agent/sidebar/AutomationSessionGroupItem.tsxindex 3a558cffd3..4c04f677eb 100644--- a/apps/desktop/src/renderer/features/cc-agent/sidebar/AutomationSessionGroupItem.tsx+++ b/apps/desktop/src/renderer/features/cc-agent/sidebar/AutomationSessionGroupItem.tsx@@ -625,6 +625,7 @@ export function AutomationSessionGroupItem({onRename,onTogglePin,indented,+ sourceLabel: sourceLabelMap?.get(session.id),};return sessionVariant === 'list' ? (@@ -639,7 +640,6 @@ export function AutomationSessionGroupItem({<SessionItemkey={session.id}{...commonProps}- sourceLabel={sourceLabelMap?.get(session.id)}insideAutomationGroup/>);