From c60bf4b6b9ee7a6052ae9c95bd10fef90f3418f7 Mon Sep 17 00:00:00 2001 From: Dotta Date: Mon, 12 Oct 2026 19:31:38 -0500 Subject: [PATCH] test(runner): allow complete durable resume timeout envelope Co-Authored-By: Paperclip --- packages/paperclip-runner/src/live/live-session.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/paperclip-runner/src/live/live-session.test.ts b/packages/paperclip-runner/src/live/live-session.test.ts index 27fdc73202d..6e050568d29 100644 --- a/packages/paperclip-runner/src/live/live-session.test.ts +++ b/packages/paperclip-runner/src/live/live-session.test.ts @@ -1766,6 +1766,9 @@ describe("Capability live runnerd and Codex session", () => { expect((await store.load(replacement.id))?.status).toBe("suspended"); }); + // This case includes a deliberate 500 ms killed turn, a resumed turn with + // its own 5-second bound, and durable writes. The enclosing test must not + // expire at the resumed turn's deadline before those assertions can finish. it("durably resumes a distinct attempt, preserves partial usage, and deduplicates the semantic effect", async () => { const state = providerState(); const directory = await mkdtemp(join(tmpdir(), "capability-live-durable-")); @@ -1871,7 +1874,7 @@ describe("Capability live runnerd and Codex session", () => { reasoningTokens: 5, costNanodollars: 2_500, }); - }); + }, 15_000); it("does not raise an unhandled rejection when interrupt() outlasts the turn timeout during reconcileActiveTurn", async () => { const state = providerState();