From d48ff3368e899250e0ce8376d7d22f117e597b5e Mon Sep 17 00:00:00 2001 From: Dotta Date: Fri, 11 Sep 2026 16:26:38 -0500 Subject: [PATCH] test: select campaign runner generation explicitly Co-Authored-By: Paperclip --- tests/runner-e2e/runner.spec.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/runner-e2e/runner.spec.ts b/tests/runner-e2e/runner.spec.ts index 6b15304284..b1d48a3e42 100644 --- a/tests/runner-e2e/runner.spec.ts +++ b/tests/runner-e2e/runner.spec.ts @@ -798,12 +798,11 @@ for (const execution of executions) { }); try { - const initialExperimental = await api.get<{ - enableNativeRunner: boolean; - }>("/api/instance/settings/experimental"); - expect(initialExperimental.enableNativeRunner).toBe(false); + // Each isolated campaign selects its generation explicitly; the app's + // default can change without changing which runtime this cell exercises. + const enableNativeRunner = execution.profile.generation === "native"; await api.patch("/api/instance/settings/experimental", { - enableNativeRunner: true, + enableNativeRunner, ...(execution.task.flow === "warm_three_turn" ? { enableIsolatedWorkspaces: true } : {}), @@ -813,6 +812,11 @@ for (const execution of executions) { : {}), }); + const configuredExperimental = await api.get<{ + enableNativeRunner: boolean; + }>("/api/instance/settings/experimental"); + expect(configuredExperimental.enableNativeRunner).toBe(enableNativeRunner); + fixtures = await setupLiveFixtures({ api, execution,