test(server): distinguish Hub execution sessions

This commit is contained in:
Mohamed Boudra
2026-08-09 02:39:21 +02:00
parent cb4976289b
commit 3a3751f1bf
2 changed files with 6 additions and 2 deletions
@@ -187,7 +187,7 @@ test("reserved Paseo MCP input does not invalidate replay of an owned execution"
type: "hub.execution.agent.create.response",
payload: { success: true, executionId: "replayed-execution" },
});
const providerCreations = hub.providerCreations();
const executionProviderCreations = hub.executionProviderCreations();
hub.beginOwnedCreate("replay-create", "replayed-execution", {
mcpServers: {
@@ -204,7 +204,7 @@ test("reserved Paseo MCP input does not invalidate replay of an owned execution"
agentId: original.payload.agentId,
},
});
expect(hub.providerCreations()).toBe(providerCreations);
expect(hub.executionProviderCreations()).toBe(executionProviderCreations);
expect(await hub.durableOwnedAgentIds()).toEqual([original.payload.agentId]);
});
@@ -820,6 +820,10 @@ export class HubRelationshipHarness {
);
}
providerCreations(): number {
return this.codex.creations;
}
executionProviderCreations(): number {
return this.codex.createdConfigs.filter((config) => config.internal !== true).length;
}