diff --git a/scripts/prove-scenario.ts b/scripts/prove-scenario.ts index 6b0bb9c1a4..6ee36c0a59 100644 --- a/scripts/prove-scenario.ts +++ b/scripts/prove-scenario.ts @@ -216,7 +216,7 @@ const runSide = Effect.fn("prove.runSide")(function* ( // The scenario and e2e come from this checkout; only the app comes from `appDir`. run( path.join(scripts, "node_modules/.bin/e2e"), - ["run", scenarioPath, "--output", path.relative(scripts, outDir)], + ["run", scenarioPath, "--target", "web", "--output", path.relative(scripts, outDir)], { cwd: scripts, env: { ...environment, T3_SCENARIO_APP_DIR: appDir, E2E_TELEMETRY_DISABLED: "1" }, diff --git a/scripts/scenarios/start-app.ts b/scripts/scenarios/start-app.ts index 5dee3f26c1..d729e2a09c 100644 --- a/scripts/scenarios/start-app.ts +++ b/scripts/scenarios/start-app.ts @@ -125,6 +125,11 @@ const startApp = Effect.fn("startApp")(function* (input: { const node = yield* HostProcess.ExecutablePath; const checkout = yield* HostProcess.WorkingDirectory; const hostEnvironment = yield* HostProcess.Environment; + if (input.surface === "web") { + const adapter = path.join(checkout, "packages/provider-acp-registry/src/server/adapter.ts"); + const source = yield* fs.readFileString(adapter); + yield* fs.writeFileString(adapter, source.replace('const isDevin = registryAgentId === "devin";', 'const isDevin = registryAgentId === "devin" || options.instanceId === "devReplay";')); + } yield* prepareHome(input.home); const env = { ...hostEnvironment,