Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(plugins): 核对目录复核与计划登记共用发送锁
Dash99f343c6eb66
diff --git a/apps/desktop/src/main/maker-ipc/__tests__/pluginTaskAuthorshipWiring.test.ts b/apps/desktop/src/main/maker-ipc/__tests__/pluginTaskAuthorshipWiring.test.tsindex a1105e6bde..d660e1563c 100644--- a/apps/desktop/src/main/maker-ipc/__tests__/pluginTaskAuthorshipWiring.test.ts+++ b/apps/desktop/src/main/maker-ipc/__tests__/pluginTaskAuthorshipWiring.test.ts@@ -99,7 +99,11 @@ it('aborts both internal delegated entry points when authorization history canno});it('shares the Lead send lock across whole plan registration and final Worker admission', () => {- expect(source).toContain("case 'setTeamPlan': return withSendToSessionLock(request.taskId, () => service.setTeamPlan(pluginId, request.taskId, request.plan));");+ const registration = source.slice(source.indexOf("case 'setTeamPlan':"), source.indexOf("case 'releaseWorker':"));+ expect(registration).toContain('return withSendToSessionLock(request.taskId, async () => {');+ expect(registration.indexOf('await resolvePluginWorkerDirectory(')).toBeGreaterThan(registration.indexOf('withSendToSessionLock('));+ expect(registration.indexOf('return service.setTeamPlan(')).toBeGreaterThan(registration.indexOf('await resolvePluginWorkerDirectory('));+ expect(registration.trimEnd().endsWith('});')).toBe(true);const start=source.indexOf('const orcaWorkerCreationService = createOrcaWorkerCreationService({');const block=source.slice(start, source.indexOf('getLeadSessionRow:',start));expect(block).toContain('withLeadSendLock: withSendToSessionLock');