Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(desktop): allow independent notification identity enrichment
guyong61059590e27f
diff --git a/apps/desktop/src/main/__tests__/notificationService.test.ts b/apps/desktop/src/main/__tests__/notificationService.test.tsindex a8c51a1dea..d58e84021d 100644--- a/apps/desktop/src/main/__tests__/notificationService.test.ts+++ b/apps/desktop/src/main/__tests__/notificationService.test.ts@@ -229,7 +229,7 @@ describe('notificationService — channels 分发', () => {});it.each(['owned', 'owner-changed', 'focused'] as const)(- 'keeps desktop immediate and rechecks delayed handoff ownership (%s)', async outcome => {+ 'keeps desktop independent of delayed handoff ownership (%s)', async outcome => {const { initNotificationService } = await freshService();const { notifyInputHandoffOnce, forgetInputHandoffNotice, clearInputHandoffChannelNotices } =await import('../im/shared/inputHandoffChannelNotice');@@ -244,6 +244,9 @@ describe('notificationService — channels 分发', () => {sessionId: 'bot', title: 'Bot', kind: 'needs-reply', inputHandoffRequestId: 'request',channels: { desktop: true, feishu: true, mobile: false },});+ // Allow Main's independent identity enrichment to finish; the handoff+ // routing promise below stays unresolved throughout this desktop check.+ await flushAsync();expect(notificationCtor).toHaveBeenCalledOnce();expect(feishuIm.sendMarkdownText).not.toHaveBeenCalled();forgetInputHandoffNotice('bot', 'request'); // completion cleanup while resolution is in flight