Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix(settings): persist dictation cleanup custom API key across restarts (#893)

Gabriel Stein18063b34584a
diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.ts
index c388a19c2..cc303b091 100644
--- a/src/stores/settingsStore.ts
+++ b/src/stores/settingsStore.ts
@@ -1592,6 +1592,13 @@ export function setResolvedLLMConfig(
if (value === undefined) continue;
const storeKey = def.storeKeys[field as keyof InferenceScopeStoreKeys];
if (!storeKey) continue;
+ // cleanupCustomApiKey is a secret kept in the OS secure store, not
+ // localStorage (which is stripped on startup). Route it through the
+ // dedicated setter so it survives restarts.
+ if (storeKey === "cleanupCustomApiKey") {
+ useSettingsStore.getState().setCleanupCustomApiKey(value as string);
+ continue;
+ }
if (isBrowser) {
localStorage.setItem(
storeKey as string,