diff --git a/.changeset/refactor-continue-timeout.md b/.changeset/refactor-continue-timeout.md new file mode 100644 index 00000000..9605992a --- /dev/null +++ b/.changeset/refactor-continue-timeout.md @@ -0,0 +1,5 @@ +--- +"perstack": patch +--- + +Extract continue timeout as named constant in start command diff --git a/packages/perstack/src/start.ts b/packages/perstack/src/start.ts index 5418cbfe..4a5902ca 100644 --- a/packages/perstack/src/start.ts +++ b/packages/perstack/src/start.ts @@ -19,6 +19,9 @@ import { getEventsWithDetails, getRecentExperts, } from "./lib/run-manager.js" + +const CONTINUE_TIMEOUT_MS = 60_000 + export const startCommand = new Command() .command("start") .description("Start Perstack with interactive TUI") @@ -180,7 +183,7 @@ export const startCommand = new Command() resolveContinueQuery = null resolve(null) } - }, 60000) + }, CONTINUE_TIMEOUT_MS) }) if (nextQuery) { finalQuery = nextQuery