Files
oh-my-pi/packages/coding-agent/src/modes/setup-version.ts
T
can1357 51dbe05364 fix(setup): stopped re-running the wizard on existing installs
- Reverted the CURRENT_SETUP_VERSION bump (2 -> 1) introduced with the
  default-model setup step (#5982): the new scene now only runs for fresh
  installs instead of re-prompting every upgraded install once.
- Installs that already advanced to setupVersion 2 stay non-stale under
  the cold-launch gate, so no repeat prompt either way.
2026-07-20 23:45:02 +02:00

12 lines
598 B
TypeScript

/**
* Setup version the wizard advances a fresh install to. Bump it whenever a new
* setup scene lands (or an existing scene raises its `minVersion`).
*
* Kept in its own dependency-free module so the cold-launch gate in `main.ts`
* can answer "is the stored setup version stale?" without statically importing
* the full wizard — every scene (sign-in/OAuth, web search, theme previews) plus
* the overlay component and their TUI deps. MUST equal `max(scene.minVersion)`
* across `ALL_SCENES`; the `setup-wizard` barrel and test suite guard it.
*/
export const CURRENT_SETUP_VERSION = 1;