Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(desktop): preserve notification calls without options
guyong7386cee6988c
diff --git a/apps/desktop/src/renderer/features/cc-agent/CCAgentSidebarUpper.tsx b/apps/desktop/src/renderer/features/cc-agent/CCAgentSidebarUpper.tsxindex 97895fc256..d4bc3e4446 100644--- a/apps/desktop/src/renderer/features/cc-agent/CCAgentSidebarUpper.tsx+++ b/apps/desktop/src/renderer/features/cc-agent/CCAgentSidebarUpper.tsx@@ -1229,7 +1229,8 @@ function ExpandedView({projectDraftSessionTitle(session.title, unnamedLabelRef.current),leadSession ? projectDraftSessionTitle(leadSession.title, unnamedLabelRef.current) : null,);- sendSessionEventNotification(sessionId, title, kind, options);+ if (options) sendSessionEventNotification(sessionId, title, kind, options);+ else sendSessionEventNotification(sessionId, title, kind);return;}// /review 审查任务不单独通知:结果回到来源任务,由来源任务的轮次收尾通知。@@ -1250,7 +1251,8 @@ function ExpandedView({const botTitle = await botOwnedSessionNotificationTitle(sessionId);// 伙伴群专线不发系统通知,确认请求在群聊里提示(docs/product-rules/bot-group-chat.md §3)。if (botTitle === BOT_GROUP_LANE_SESSION) return;- sendSessionEventNotification(sessionId, botTitle ?? unnamedLabelRef.current, kind, options);+ if (options) sendSessionEventNotification(sessionId, botTitle ?? unnamedLabelRef.current, kind, options);+ else sendSessionEventNotification(sessionId, botTitle ?? unnamedLabelRef.current, kind);})();},[],