From aa743a32c38076f5a65f167a5497a96e380c0eab Mon Sep 17 00:00:00 2001 From: probe Date: Sun, 4 Oct 2026 04:33:02 +0900 Subject: [PATCH] test(sdk): retain lifecycle marker after session close Session close revokes the ready marker but keeps lifecycle.json until session.delete. Update the topology assertion to match the existing lifecycle contract. --- .../coding-agent/test/sdk-machine-lifecycle-topology.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/coding-agent/test/sdk-machine-lifecycle-topology.test.ts b/packages/coding-agent/test/sdk-machine-lifecycle-topology.test.ts index 6634e11a422..2a08d74c338 100644 --- a/packages/coding-agent/test/sdk-machine-lifecycle-topology.test.ts +++ b/packages/coding-agent/test/sdk-machine-lifecycle-topology.test.ts @@ -638,7 +638,7 @@ test("shared-agent equal saved IDs select one owner without cross-workspace effe await expect(fs.access(path.join(winner.stateRoot, "sdk", `${A.source.id}.lifecycle.json`))).resolves.toBeNull(); await expect( fs.access(path.join(winner.stateRoot, "sdk", `${A.source.id}.lifecycle.ready.json`)), - ).resolves.toBeNull(); + ).rejects.toThrow(); await assertEndpointAndMarkerAbsent(loser, A.source.id); const deleteCall = winner === A ? a : b; const deletion = await (deleteCall === "mcp" ? mcpGlobal : daemonGlobal)(