fix(mcp): include events at the subscription start boundary

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-10-01 12:44:13 -05:00
1 parent a140d533a6
commit 6aa0962d4f
3 files changed
+8 -4

No files matched your search

+2 -2
View File
@@ -447,9 +447,9 @@ describe.skipIf(!support.supported)("public MCP OAuth and tool boundary", () =>
}
});
it("retains changes occurring while callback ownership is being verified", async () => {
it("retains changes at the subscription start while callback ownership is being verified", async () => {
const f = await eventFixture();
f.duringVerification(async () => { await f.activity(); });
f.duringVerification(async () => { f.advance(-100); await f.activity(); });
await f.service.subscribe(f.principal, f.input);
await f.service.tick();
expect(f.received.filter(r => r.body.eventId)).toHaveLength(1);