(args: {
workspaceId: string;
streamMessage?: AIService["streamMessage"];
config?: Config;
captureEvents?: boolean;
})
| 30 | }); |
| 31 | |
| 32 | async function createSessionHarness(args: { |
| 33 | workspaceId: string; |
| 34 | streamMessage?: AIService["streamMessage"]; |
| 35 | config?: Config; |
| 36 | captureEvents?: boolean; |
| 37 | }) { |
| 38 | const harness = await createAgentSessionHarness({ |
| 39 | workspaceId: args.workspaceId, |
| 40 | config: args.config, |
| 41 | aiServiceOverrides: args.streamMessage ? { streamMessage: args.streamMessage } : undefined, |
| 42 | captureEvents: args.captureEvents, |
| 43 | }); |
| 44 | historyCleanup = harness.cleanup; |
| 45 | return harness; |
| 46 | } |
| 47 | |
| 48 | test("does not persist or emit snapshots before forced on-send compaction", async () => { |
| 49 | const workspaceId = "ws-auto-compaction-snapshot-deferral"; |
no test coverage detected