Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix(settings): bump the store version so loopMaxPasses actually lands

purple8fb9a01e389e
diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.ts
index f30cbdbc..5c9b6902 100644
--- a/src/stores/settingsStore.ts
+++ b/src/stores/settingsStore.ts
@@ -41,7 +41,12 @@ import { DEFAULT_SETTINGS, BUILT_IN_PERSONAS } from '../lib/constants'
// shell-confirm was hard-wired in useCodex, so the existing confirm toggle did
// nothing on a cloud model. Additive merge backfills the default — behaviour is
// byte-for-byte what 2.5.8 did until the user turns the new switch off.
-const STORE_VERSION = 15
+// v16 (2.5.9): added settings.loopMaxPasses (default 0 = unlimited). Additive,
+// but the bump is what makes the merge RUN — without it an existing profile
+// keeps the field undefined and the Settings number box renders empty, which
+// is how this was caught on the ship exe (2026-07-25). Behaviour was already
+// correct via `?? 0`; this is so the UI shows the real value.
+const STORE_VERSION = 16
interface SettingsState {
settings: Settings