Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(handoff): reuse production dispatch parameter type
zqchris245ca77e1caa
diff --git a/apps/desktop/src/main/localDb/ipc/__tests__/botCanonicalSession.test.ts b/apps/desktop/src/main/localDb/ipc/__tests__/botCanonicalSession.test.tsindex a27a7c093d..6521fec6f6 100644--- a/apps/desktop/src/main/localDb/ipc/__tests__/botCanonicalSession.test.ts+++ b/apps/desktop/src/main/localDb/ipc/__tests__/botCanonicalSession.test.ts@@ -4037,14 +4037,7 @@ describe('Bot Session task end-to-end runtime', () => {* dispatchBotSessionMessage → sendToSessionInternal)。判据顺序刻意与真机一致:* 任何一条在真机上会挡住会话启动的门,这里也必须挡住。*/- const dispatchDirect = vi.fn(async (params: {- targetSessionId: string;- dispatcherSessionId?: string;- message: string;- persistedContent?: string;- clientId?: string;- onAccepted?: (replayed?: boolean) => void | Promise<void>;- }) => {+ const dispatchDirect = vi.fn(async (params: Parameters<Parameters<typeof createBotDelegationService>[0]['dispatch']>[0]) => {if (params.clientId && hasMessage(params.targetSessionId, params.clientId)) {await params.onAccepted?.(true);return {