diff --git a/scripts/scenarios/t3.ts b/scripts/scenarios/t3.ts index 7855d6398e..5038fcab17 100644 --- a/scripts/scenarios/t3.ts +++ b/scripts/scenarios/t3.ts @@ -208,7 +208,7 @@ export function makeState(home: string, env: NodeJS.ProcessEnv = {}) { cli(["thread", ...args, "--wait", "--json"], [0, 2]); const [first = "Start", ...rest] = input.messages; const replay = ["--provider", "devReplay", "--model", input.model ?? "multi-turn"]; - const started = yield* turn(["start", input.project, first, "--title", input.title, ...replay]); + const started = yield* turn(["start", input.project, first, "--title", input.title, ...replay]).pipe(Effect.retry({ schedule: Schedule.spaced("500 millis"), times: 30, while: (error) => error.message.includes("not advertised") })); const { threadId } = yield* decodeLaunched(started.stdout); for (const message of rest) yield* turn(["send", threadId, message]); return { threadId } satisfies T3Thread;