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。

test(handoff): cover verified create queue provenance

Chris037045741f8d
diff --git a/apps/desktop/src/main/maker-ipc/__tests__/pluginTaskAuthorshipWiring.test.ts b/apps/desktop/src/main/maker-ipc/__tests__/pluginTaskAuthorshipWiring.test.ts
index c6a2f6659f..bd1da52687 100644
--- a/apps/desktop/src/main/maker-ipc/__tests__/pluginTaskAuthorshipWiring.test.ts
+++ b/apps/desktop/src/main/maker-ipc/__tests__/pluginTaskAuthorshipWiring.test.ts
@@ -98,7 +98,8 @@ it('marks plugin dispatch and every queue fallback with the host-only receipt',
const dispatch = source.slice(start, end);
expect(dispatch).toContain("message: text, autoReviewUserText: { kind: 'delegated-continuation' }, forceQueue: true");
const queues = [...dispatch.matchAll(/await enqueueSendToSessionMessage\(\{([\s\S]*?)\}\);/g)];
- expect(queues).toHaveLength(4);
+ // Verified create handoffs add a fifth durable entry; all must retain provenance.
+ expect(queues).toHaveLength(5);
for (const call of queues) {
expect(call[1]).toContain('autoReviewUserText: params.autoReviewUserText');
// 插件来源随每个入队回退分支传递(含 queued-before-dispatch 竞态),排队项不丢插件身份。