diff --git a/scripts/scenarios/start-app.ts b/scripts/scenarios/start-app.ts index 5dee3f26c1..24acd372b2 100644 --- a/scripts/scenarios/start-app.ts +++ b/scripts/scenarios/start-app.ts @@ -1,6 +1,7 @@ #!/usr/bin/env node // The app command of e2e.config.ts: starts the dev stack of the checkout it runs in on a fresh // T3 home. e2e stops it with a signal, which ends the scope and the processes it started. +import { tmpdir } from "node:os"; import * as NodeCrypto from "@effect/platform-node/NodeCrypto"; import * as NodeRuntime from "@effect/platform-node/NodeRuntime"; import * as NodeServices from "@effect/platform-node/NodeServices"; @@ -70,16 +71,33 @@ const prepareHome = Effect.fn("startApp.prepareHome")(function* (home: string) { path.join(home, "userdata/settings.json"), yield* encodeSettings({ defaultModelSelection: REPLAY, - providerInstances: Object.fromEntries( - REAL_PROVIDERS.map((driver) => [ - driver, - { + providerInstances: { + devReplay: { + driver: "acpRegistry", + environment: [ + { + name: "NODE_OPTIONS", + value: `--import ${tmpdir()}/factory-pr-34163-evidence-1/delay-replay.mjs`, + sensitive: false, + }, + { + name: "T3_STOP_PROOF_DIR", + value: `${tmpdir()}/factory-pr-34163-evidence-1`, + sensitive: false, + }, + ], + }, + ...Object.fromEntries( + REAL_PROVIDERS.map((driver) => [ driver, - enabled: false, - ...(driver === "codex" ? { config: { binaryPath: noModel } } : {}), - }, - ]), - ), + { + driver, + enabled: false, + ...(driver === "codex" ? { config: { binaryPath: noModel } } : {}), + }, + ]), + ), + }, }), ); });