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(im): 补齐轮次观察器测试的 Session 来源接口

Dashf891801f6e03
diff --git a/apps/desktop/src/main/maker-ipc/__tests__/sessionTurnObserver.test.ts b/apps/desktop/src/main/maker-ipc/__tests__/sessionTurnObserver.test.ts
index cd19552bf7..d81750b7ec 100644
--- a/apps/desktop/src/main/maker-ipc/__tests__/sessionTurnObserver.test.ts
+++ b/apps/desktop/src/main/maker-ipc/__tests__/sessionTurnObserver.test.ts
@@ -31,6 +31,7 @@ function setup(fields: { remoteHostId?: string | null; agentDeviceId?: string |
agentDeviceId: fields.agentDeviceId ?? null,
setTurnLifecycleObserver: (next: Observer | null) => { observer = next; },
claimHostTurnContinuation: vi.fn(),
+ getCurrentTurnOrigin: () => null,
} as unknown as Session;
const deps = {
beforeLocalProviderStart: vi.fn(async () => undefined),