mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
10 lines
413 B
TypeScript
10 lines
413 B
TypeScript
import type { Poll } from "../../src/effect.js"
|
|
|
|
/**
|
|
* Queued generations take minutes live, so record with a realistic interval. Replay consumes the recorded polls in
|
|
* cassette order regardless of timing, so it runs them back-to-back instead of sleeping between each one.
|
|
*/
|
|
export const queuedPoll: Poll = {
|
|
interval: process.env.RECORD === "true" ? "10 seconds" : "10 millis",
|
|
timeout: "15 minutes",
|
|
}
|