diff --git a/scripts/scenarios/start-app.ts b/scripts/scenarios/start-app.ts index 5dee3f26c1..67af2bc885 100644 --- a/scripts/scenarios/start-app.ts +++ b/scripts/scenarios/start-app.ts @@ -75,8 +75,8 @@ const prepareHome = Effect.fn("startApp.prepareHome")(function* (home: string) { driver, { driver, - enabled: false, - ...(driver === "codex" ? { config: { binaryPath: noModel } } : {}), + enabled: driver === "codex", + ...(driver === "codex" ? { config: { binaryPath: "codex" } } : {}), }, ]), ), @@ -128,7 +128,7 @@ const startApp = Effect.fn("startApp")(function* (input: { yield* prepareHome(input.home); const env = { ...hostEnvironment, - PATH: `${path.join(input.home, "bin")}:${hostEnvironment.PATH ?? ""}`, + PATH: `${hostEnvironment.CODEX_SCENARIO_PATH}:${path.join(input.home, "bin")}:${hostEnvironment.PATH ?? ""}`, T3CODE_AUTO_BOOTSTRAP_PROJECT_FROM_CWD: "0", }; const devRunner = (mode: string, args: ReadonlyArray) => [