diff --git a/scripts/scenarios/start-app.ts b/scripts/scenarios/start-app.ts index 63f9cb9ddd..26dc6c82ab 100644 --- a/scripts/scenarios/start-app.ts +++ b/scripts/scenarios/start-app.ts @@ -22,7 +22,7 @@ import { ScenarioError } from "./shell.ts"; // The dev runner's web port is 5733 plus an offset. Mirror of BASE_WEB_PORT in dev-runner.ts. const BASE_WEB_PORT = 5733; // The replay agent `vp run dev` registers: free, recorded turns through the real adapter. -const REPLAY = { instanceId: "devReplay", model: "showcase" }; +const REPLAY = { instanceId: "imageReplay", model: "multi-turn" }; // Generated text (titles) cannot go to the replay agent: the server swaps an ACP agent for the // first enabled real provider, else its default, Codex. So every provider it could fall back to // is off and Codex is a command that only fails: no run reaches a paid model. @@ -71,14 +71,14 @@ export const prepareHome = Effect.fn("startApp.prepareHome")(function* (home: st yield* encodeSettings({ defaultModelSelection: REPLAY, providerInstances: Object.fromEntries( - REAL_PROVIDERS.map((driver) => [ + [["imageReplay", { driver: "acpRegistry", displayName: "Replay with images", enabled: true, config: { source: "local", commandPath: process.execPath, commandArgs: [new URL("./image-replay.cjs", import.meta.url).pathname, path.join(process.cwd(), "apps/server/scripts/dev-replay-agent.ts")] } }], ...REAL_PROVIDERS.map((driver) => [ driver, { driver, enabled: false, ...(driver === "codex" ? { config: { binaryPath: noModel } } : {}), }, - ]), + ])], ), }), ); diff --git a/scripts/scenarios/t3.ts b/scripts/scenarios/t3.ts index 113916cf94..d21ef4a7e8 100644 --- a/scripts/scenarios/t3.ts +++ b/scripts/scenarios/t3.ts @@ -110,7 +110,7 @@ export function makeState(home: string, env: NodeJS.ProcessEnv = {}) { const turn = (args: ReadonlyArray) => cli(["thread", ...args, "--wait", "--json"], [0, 2]); const [first = "Start", ...rest] = input.messages; - const replay = ["--provider", "devReplay", "--model", input.model ?? "multi-turn"]; + const replay = ["--provider", "imageReplay", "--model", input.model ?? "multi-turn"]; const started = yield* turn(["start", input.project, first, "--title", input.title, ...replay]); const { threadId } = yield* decodeLaunched(started.stdout); for (const message of rest) yield* turn(["send", threadId, message]);