test(agents): isolate lifecycle registry persistence

This commit is contained in:
Vincent Koc
2026-08-11 07:29:52 +08:00
parent 9c7cbc5035
commit eda55511eb
@@ -186,6 +186,9 @@ describe("subagent registry lifecycle error grace", () => {
loadAgentRuntimePluginRegistryHandle: () => undefined,
onAgentEvent:
onAgentEventMock as unknown as typeof import("../infra/agent-events.js").onAgentEvent,
persistSubagentRunsToDisk: noop,
persistSubagentRunsToDiskOrThrow: noop,
restoreSubagentRunsFromDisk: () => 0,
});
subagentAnnounceTesting.setDepsForTest({
callGateway: callGatewayMock as typeof import("../gateway/call.js").callGateway,