Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(bots): 近况待办来源行不重复显示来源名

zqchris8b62cbde9553
diff --git a/apps/desktop/src/renderer/features/bots/BotGlancePopover.tsx b/apps/desktop/src/renderer/features/bots/BotGlancePopover.tsx
index 203dcf4316..af3a21e92d 100644
--- a/apps/desktop/src/renderer/features/bots/BotGlancePopover.tsx
+++ b/apps/desktop/src/renderer/features/bots/BotGlancePopover.tsx
@@ -305,7 +305,8 @@ function sourceText(todo: TeammateTodo, t: (key: string) => string): string {
if (!source || source.kind === 'conversation') return t('bots.glance.source.conversation');
const kind = t(`bots.glance.source.${source.kind}`);
const label = source.label?.trim();
- return label && label !== kind ? `${kind} · ${label}` : kind;
+ // 来源名已含标签(「来自 GitHub」+「GitHub」)时不再重复。
+ return label && !kind.toLowerCase().includes(label.toLowerCase()) ? `${kind} · ${label}` : kind;
}
function TodoRow({