Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
fix(groq): delist the Compound systems Groq shut down (#2425)
Abhishek B R6098d452c4a7
diff --git a/openwhispr-mobile/src/config/providerCatalog.json b/openwhispr-mobile/src/config/providerCatalog.jsonindex 5491a2cae..cd613f1eb 100644--- a/openwhispr-mobile/src/config/providerCatalog.json+++ b/openwhispr-mobile/src/config/providerCatalog.json@@ -87,14 +87,6 @@{"id": "openai/gpt-oss-20b","name": "GPT-OSS 20B"- },- {- "id": "groq/compound",- "name": "Compound"- },- {- "id": "groq/compound-mini",- "name": "Compound Mini"}]}diff --git a/src/components/RetiredModelSwitchToastListener.tsx b/src/components/RetiredModelSwitchToastListener.tsxnew file mode 100644index 000000000..3a86537e5--- /dev/null+++ b/src/components/RetiredModelSwitchToastListener.tsx@@ -0,0 +1,38 @@+import { useEffect } from "react";+import { useTranslation } from "react-i18next";+import { useToast } from "./ui/useToast";+import type { RetiredModelProvider } from "../config/retiredCloudModels";+import {+ consumeRetiredModelSwitches,+ useRetiredModelSwitchStore,+} from "../stores/retiredModelSwitchStore";+import { isDictationPanelWindow } from "../utils/windowContext";++const RETIRED_MESSAGE_KEYS: Record<RetiredModelProvider, string> = {+ groq: "reasoning.groq.modelRetired",+ tinfoil: "reasoning.tinfoil.modelRetired",+};++/** Alerts the user when a retired cloud model was switched out from under them. */+export default function RetiredModelSwitchToastListener() {+ const { t } = useTranslation();+ const { toast } = useToast();++ const switchCount = useRetiredModelSwitchStore((s) => s.events.length);++ useEffect(() => {+ if (switchCount === 0) return;+ // The panel may already be hidden after dictation; surface it so the toast is seen.+ if (isDictationPanelWindow()) {+ window.electronAPI?.showDictationPanel?.();+ }+ for (const event of consumeRetiredModelSwitches()) {+ toast({+ title: t("reasoning.modelRetiredTitle"),+ description: t(RETIRED_MESSAGE_KEYS[event.provider], { from: event.from, to: event.to }),+ });+ }+ }, [switchCount, toast, t]);++ return null;+}diff --git a/src/components/TinfoilModelSwitchToastListener.tsx b/src/components/TinfoilModelSwitchToastListener.tsxdeleted file mode 100644index ef3ef7b25..000000000--- a/src/components/TinfoilModelSwitchToastListener.tsx+++ /dev/null@@ -1,32 +0,0 @@-import { useEffect } from "react";-import { useTranslation } from "react-i18next";-import { useToast } from "./ui/useToast";-import {- consumeTinfoilModelSwitches,- useTinfoilModelSwitchStore,-} from "../stores/tinfoilModelSwitchStore";-import { isDictationPanelWindow } from "../utils/windowContext";--/** Alerts the user when a retired Tinfoil model was switched out from under them. */-export default function TinfoilModelSwitchToastListener() {- const { t } = useTranslation();- const { toast } = useToast();-- const switchCount = useTinfoilModelSwitchStore((s) => s.events.length);-- useEffect(() => {- if (switchCount === 0) return;- // The panel may already be hidden after dictation; surface it so the toast is seen.- if (isDictationPanelWindow()) {- window.electronAPI?.showDictationPanel?.();- }- for (const event of consumeTinfoilModelSwitches()) {- toast({- title: t("reasoning.tinfoil.modelRetiredTitle"),- description: t("reasoning.tinfoil.modelRetired", { from: event.from, to: event.to }),- });- }- }, [switchCount, toast, t]);-- return null;-}diff --git a/src/config/retiredCloudModels.ts b/src/config/retiredCloudModels.tsindex 7e9388b2e..65b8ae4bb 100644--- a/src/config/retiredCloudModels.ts+++ b/src/config/retiredCloudModels.ts@@ -23,15 +23,19 @@ export interface RetiredProviderModels {models: Record<string, string>;}-export const RETIRED_CLOUD_MODELS: Record<string, RetiredProviderModels> = {- // Retired 2026-08-16. The key predates this table and is already set on- // installed apps, so it stays exactly as it shipped.+export const RETIRED_CLOUD_MODELS = {+ // qwen3-32b and both Llamas (retired 2026-08-16) were swept under the+ // original key, which predates this table. Groq shut down both Compound+ // systems on 2026-09-21 with no named successor; installed builds had+ // already written that key, so adding them rotated it.groq: {- migratedKey: "_retiredGroqModelsMigrated",+ migratedKey: "_retiredGroqModelsMigrated2",models: {"qwen/qwen3-32b": "openai/gpt-oss-120b","llama-3.3-70b-versatile": "openai/gpt-oss-120b","llama-3.1-8b-instant": "openai/gpt-oss-20b",+ "groq/compound": "openai/gpt-oss-120b",+ "groq/compound-mini": "openai/gpt-oss-20b",},},// All three shipped as seed entries — deepseek-v4-pro in v1.7.4, kimi-k2-6@@ -49,7 +53,9 @@ export const RETIRED_CLOUD_MODELS: Record<string, RetiredProviderModels> = {"kimi-k2-6": "kimi-k3",},},-};+} satisfies Record<string, RetiredProviderModels>;++export type RetiredModelProvider = keyof typeof RETIRED_CLOUD_MODELS;interface RetiredModelStorage {getItem(key: string): string | null;@@ -63,7 +69,7 @@ interface ScopeStorageKeys {export interface SweptModelSelection {storeKey: string;- provider: string;+ provider: RetiredModelProvider;from: string;to: string;}@@ -78,7 +84,8 @@ export function sweepRetiredCloudModelSelections(): SweptModelSelection[] {const swept: SweptModelSelection[] = [];- for (const [providerId, entry] of Object.entries(RETIRED_CLOUD_MODELS)) {+ for (const providerId of Object.keys(RETIRED_CLOUD_MODELS) as RetiredModelProvider[]) {+ const entry: RetiredProviderModels = RETIRED_CLOUD_MODELS[providerId];try {if (storage.getItem(entry.migratedKey) === "1") continue;diff --git a/src/locales/ar/translation.json b/src/locales/ar/translation.jsonindex d8d72ab45..d95debf67 100644--- a/src/locales/ar/translation.json+++ b/src/locales/ar/translation.json@@ -297,8 +297,6 @@"groq_openai_gpt_oss_120b": "نموذج OpenAI مفتوح المصدر الرائد، 500 رمز/ثانية","groq_qwen_qwen3_8_27b": "نموذج Qwen سريع، 450 رمز/ثانية، سياق 131K","groq_openai_gpt_oss_20b": "نموذج سريع مفتوح المصدر، 1000 رمز/ثانية",- "groq_compound": "نظام Groq المركب، 450 رمز/ثانية",- "groq_compound_mini": "نظام مركب سريع، زمن انتقال أقل بمقدار 3 أضعاف","openai_gpt_6_astra": "نموذج OpenAI الأكثر قدرة للبرمجة والبحث","openai_gpt_5_6_sol": "GPT-5.6 الرائد للبرمجة والبحوث المعقدة","openai_gpt_5_6_terra": "GPT-5.6 متوازن للعمل اليومي",@@ -511,8 +509,11 @@"apikeyHelp": "مفتاح Vertex AI Express Mode API من Google AI Studio."}},+ "modelRetiredTitle": "النموذج لم يعد متاحًا",+ "groq": {+ "modelRetired": "قام Groq بإيقاف {{from}}. تم التبديل إلى {{to}}."+ },"tinfoil": {- "modelRetiredTitle": "النموذج لم يعد متاحًا","modelRetired": "قام Tinfoil بإيقاف {{from}}. تم التبديل إلى {{to}}.","refreshingModels": "جاري تحديث النماذج..."},diff --git a/src/locales/de/translation.json b/src/locales/de/translation.jsonindex ac081bcfd..d355b4f2f 100644--- a/src/locales/de/translation.json+++ b/src/locales/de/translation.json@@ -875,8 +875,11 @@"apikeyHelp": "API-Schlüssel für Vertex AI Express Mode aus Google AI Studio."}},+ "modelRetiredTitle": "Modell nicht mehr verfügbar",+ "groq": {+ "modelRetired": "Groq hat {{from}} eingestellt. Zu {{to}} gewechselt."+ },"tinfoil": {- "modelRetiredTitle": "Modell nicht mehr verfügbar","modelRetired": "Tinfoil hat {{from}} eingestellt. Zu {{to}} gewechselt.","refreshingModels": "Modelle werden aktualisiert…"},@@ -2786,8 +2789,6 @@"groq_openai_gpt_oss_120b": "OpenAIs Open-Source-Flaggschiff, 500 T/s","groq_qwen_qwen3_8_27b": "Schnelles Qwen-Modell, 450 T/s, 131K Kontext","groq_openai_gpt_oss_20b": "Schnelles Open-Source-Modell, 1000 T/s",- "groq_compound": "Groqs Compound-System, 450 T/s",- "groq_compound_mini": "Schnelles Compound-System, 3x niedrigere Latenz","openai_gpt_6_astra": "Leistungsstärkstes Modell von OpenAI für Coding und Forschung","openai_gpt_5_6_sol": "Flaggschiff-GPT-5.6 für komplexes Coding und Forschung","openai_gpt_5_6_terra": "Ausgewogenes GPT-5.6 für die tägliche Arbeit",diff --git a/src/locales/en/translation.json b/src/locales/en/translation.jsonindex 738a02ce1..f64d686b8 100644--- a/src/locales/en/translation.json+++ b/src/locales/en/translation.json@@ -875,8 +875,11 @@"apikeyHelp": "Vertex AI Express Mode API key from Google AI Studio."}},+ "modelRetiredTitle": "Model no longer available",+ "groq": {+ "modelRetired": "Groq retired {{from}}. Switched to {{to}}."+ },"tinfoil": {- "modelRetiredTitle": "Model no longer available","modelRetired": "Tinfoil retired {{from}}. Switched to {{to}}.","refreshingModels": "Refreshing models…"},@@ -2786,8 +2789,6 @@"groq_openai_gpt_oss_120b": "OpenAI's open-source flagship, 500 T/sec","groq_qwen_qwen3_8_27b": "Fast Qwen model, 450 T/sec, 131K context","groq_openai_gpt_oss_20b": "Fast open-source model, 1000 T/sec",- "groq_compound": "Groq's compound system, 450 T/sec",- "groq_compound_mini": "Fast compound system, 3x lower latency","openai_gpt_6_astra": "OpenAI's most capable model for coding and research","openai_gpt_5_6_sol": "Flagship GPT-5.6 for complex coding and research","openai_gpt_5_6_terra": "Balanced GPT-5.6 for everyday work",diff --git a/src/locales/es/translation.json b/src/locales/es/translation.jsonindex a52efbfbd..c971dbbd8 100644--- a/src/locales/es/translation.json+++ b/src/locales/es/translation.json@@ -875,8 +875,11 @@"apikeyHelp": "Clave API de Vertex AI Express Mode obtenida en Google AI Studio."}},+ "modelRetiredTitle": "Modelo ya no disponible",+ "groq": {+ "modelRetired": "Groq retiró {{from}}. Se cambió a {{to}}."+ },"tinfoil": {- "modelRetiredTitle": "Modelo ya no disponible","modelRetired": "Tinfoil retiró {{from}}. Se cambió a {{to}}.","refreshingModels": "Actualizando modelos…"},@@ -2740,8 +2743,6 @@"groq_openai_gpt_oss_120b": "Modelo insignia de código abierto de OpenAI, 500 T/seg","groq_qwen_qwen3_8_27b": "Modelo Qwen rápido, 450 T/seg, contexto de 131K","groq_openai_gpt_oss_20b": "Modelo de código abierto rápido, 1000 T/seg",- "groq_compound": "Sistema compound de Groq, 450 T/seg",- "groq_compound_mini": "Sistema compound rápido, 3x menor latencia","openai_gpt_6_astra": "El modelo más capaz de OpenAI para programación e investigación","openai_gpt_5_6_sol": "GPT-5.6 insignia para programación e investigación complejas","openai_gpt_5_6_terra": "GPT-5.6 equilibrado para el trabajo diario",diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.jsonindex b6361b35e..d3283966c 100644--- a/src/locales/fr/translation.json+++ b/src/locales/fr/translation.json@@ -875,8 +875,11 @@"apikeyHelp": "Clé API Vertex AI Express Mode obtenue depuis Google AI Studio."}},+ "modelRetiredTitle": "Modèle non disponible",+ "groq": {+ "modelRetired": "Groq a retiré {{from}}. Basculé vers {{to}}."+ },"tinfoil": {- "modelRetiredTitle": "Modèle non disponible","modelRetired": "Tinfoil a retiré {{from}}. Basculé vers {{to}}.","refreshingModels": "Actualisation des modèles…"},@@ -2786,8 +2789,6 @@"groq_openai_gpt_oss_120b": "Modèle phare open source d'OpenAI, 500 T/s","groq_qwen_qwen3_8_27b": "Modèle Qwen rapide, 450 T/s, contexte 131K","groq_openai_gpt_oss_20b": "Modèle open source rapide, 1000 T/s",- "groq_compound": "Système compound de Groq, 450 T/s",- "groq_compound_mini": "Système compound rapide, 3x latence réduite","openai_gpt_6_astra": "Le modèle le plus performant d'OpenAI pour le codage et la recherche","openai_gpt_5_6_sol": "GPT-5.6 phare pour le codage et la recherche complexes","openai_gpt_5_6_terra": "GPT-5.6 équilibré pour le travail quotidien",diff --git a/src/locales/it/translation.json b/src/locales/it/translation.jsonindex d50306966..83982cda9 100644--- a/src/locales/it/translation.json+++ b/src/locales/it/translation.json@@ -875,8 +875,11 @@"apikeyHelp": "Chiave API Vertex AI Express Mode da Google AI Studio."}},+ "modelRetiredTitle": "Modello non più disponibile",+ "groq": {+ "modelRetired": "Groq ha ritirato {{from}}. Passato a {{to}}."+ },"tinfoil": {- "modelRetiredTitle": "Modello non più disponibile","modelRetired": "Tinfoil ha ritirato {{from}}. Passato a {{to}}.","refreshingModels": "Aggiornamento dei modelli…"},@@ -2688,8 +2691,6 @@"groq_openai_gpt_oss_120b": "Ammiraglia open source di OpenAI, 500 T/sec","groq_qwen_qwen3_8_27b": "Modello Qwen veloce, 450 T/sec, contesto 131K","groq_openai_gpt_oss_20b": "Modello open source veloce, 1000 T/sec",- "groq_compound": "Sistema compound di Groq, 450 T/sec",- "groq_compound_mini": "Sistema compound veloce, 3x latenza ridotta","openai_gpt_6_astra": "Il modello più capace di OpenAI per programmazione e ricerca","openai_gpt_5_6_sol": "GPT-5.6 di punta per programmazione e ricerca complesse","openai_gpt_5_6_terra": "GPT-5.6 bilanciato per il lavoro quotidiano",diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.jsonindex b0dee395a..a1f9ad9fc 100644--- a/src/locales/ja/translation.json+++ b/src/locales/ja/translation.json@@ -875,8 +875,11 @@"apikeyHelp": "Google AI Studio で取得した Vertex AI Express Mode の API キー。"}},+ "modelRetiredTitle": "モデルが利用できません",+ "groq": {+ "modelRetired": "Groq は {{from}} を提供終了しました。{{to}} に切り替えました。"+ },"tinfoil": {- "modelRetiredTitle": "モデルが利用できません","modelRetired": "Tinfoil は {{from}} を提供終了しました。{{to}} に切り替えました。","refreshingModels": "モデルを更新しています…"},@@ -2688,8 +2691,6 @@"groq_openai_gpt_oss_120b": "OpenAI のオープンソースフラッグシップ、500 T/秒","groq_qwen_qwen3_8_27b": "高速 Qwen モデル、450 T/秒、131K コンテキスト","groq_openai_gpt_oss_20b": "高速オープンソースモデル、1000 T/秒",- "groq_compound": "Groq の Compound システム、450 T/秒",- "groq_compound_mini": "高速 Compound システム、3x 低レイテンシー","openai_gpt_6_astra": "コーディングと研究のための OpenAI の最も高性能なモデル","openai_gpt_5_6_sol": "複雑なコーディングと研究のためのフラッグシップ GPT-5.6","openai_gpt_5_6_terra": "日常業務向けのバランス型 GPT-5.6",diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.jsonindex d222175bf..2aaeb8063 100644--- a/src/locales/pt/translation.json+++ b/src/locales/pt/translation.json@@ -854,8 +854,11 @@"apikeyHelp": "Chave API do Vertex AI Express Mode obtida no Google AI Studio."}},+ "modelRetiredTitle": "Modelo não disponível",+ "groq": {+ "modelRetired": "A Groq descontinuou {{from}}. Alterado para {{to}}."+ },"tinfoil": {- "modelRetiredTitle": "Modelo não disponível","modelRetired": "A Tinfoil descontinuou {{from}}. Alterado para {{to}}.","refreshingModels": "A atualizar modelos…"},@@ -2667,8 +2670,6 @@"groq_openai_gpt_oss_120b": "Modelo principal open source da OpenAI, 500 T/seg","groq_qwen_qwen3_8_27b": "Modelo Qwen rápido, 450 T/seg, contexto de 131K","groq_openai_gpt_oss_20b": "Modelo open source rápido, 1000 T/seg",- "groq_compound": "Sistema compound da Groq, 450 T/seg",- "groq_compound_mini": "Sistema compound rápido, 3x menor latência","openai_gpt_6_astra": "O modelo mais capaz da OpenAI para programação e pesquisa","openai_gpt_5_6_sol": "GPT-5.6 principal para programação e pesquisa complexas","openai_gpt_5_6_terra": "GPT-5.6 equilibrado para o trabalho do dia a dia",diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.jsonindex fca8df4fb..2dd10f2b3 100644--- a/src/locales/ru/translation.json+++ b/src/locales/ru/translation.json@@ -875,8 +875,11 @@"apikeyHelp": "API-ключ Vertex AI Express Mode из Google AI Studio."}},+ "modelRetiredTitle": "Модель больше недоступна",+ "groq": {+ "modelRetired": "Groq прекратил поддержку {{from}}. Выполнен переход на {{to}}."+ },"tinfoil": {- "modelRetiredTitle": "Модель больше недоступна","modelRetired": "Tinfoil прекратил поддержку {{from}}. Выполнен переход на {{to}}.","refreshingModels": "Обновление моделей…"},@@ -2704,8 +2707,6 @@"groq_openai_gpt_oss_120b": "Открытая флагманская модель OpenAI, 500 т/с","groq_qwen_qwen3_8_27b": "Быстрая модель Qwen, 450 т/с, контекст 131K","groq_openai_gpt_oss_20b": "Быстрая открытая модель, 1000 т/с",- "groq_compound": "Система Compound от Groq, 450 т/с",- "groq_compound_mini": "Быстрая система Compound, 3x ниже задержка","openai_gpt_6_astra": "Самая мощная модель OpenAI для программирования и исследований","openai_gpt_5_6_sol": "Флагманская GPT-5.6 для сложного программирования и исследований","openai_gpt_5_6_terra": "Сбалансированная GPT-5.6 для повседневной работы",diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.jsonindex 18cddaec7..53a2f5a8f 100644--- a/src/locales/zh-CN/translation.json+++ b/src/locales/zh-CN/translation.json@@ -875,8 +875,11 @@"apikeyHelp": "从 Google AI Studio 获取的 Vertex AI Express Mode API 密钥。"}},+ "modelRetiredTitle": "模型已不可用",+ "groq": {+ "modelRetired": "Groq 已停用 {{from}},已切换至 {{to}}。"+ },"tinfoil": {- "modelRetiredTitle": "模型已不可用","modelRetired": "Tinfoil 已停用 {{from}},已切换至 {{to}}。","refreshingModels": "正在刷新模型…"},@@ -2688,8 +2691,6 @@"groq_openai_gpt_oss_120b": "OpenAI 开源旗舰,500 T/秒","groq_qwen_qwen3_8_27b": "快速 Qwen 模型,450 T/秒,131K 上下文","groq_openai_gpt_oss_20b": "快速开源模型,1000 T/秒",- "groq_compound": "Groq Compound 系统,450 T/秒",- "groq_compound_mini": "快速 Compound 系统,3x 更低延迟","openai_gpt_6_astra": "OpenAI 最强大的模型,适用于编码与研究","openai_gpt_5_6_sol": "旗舰 GPT-5.6,适用于复杂编码与研究","openai_gpt_5_6_terra": "均衡的 GPT-5.6,适合日常工作",diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.jsonindex b5be35914..711237bdd 100644--- a/src/locales/zh-TW/translation.json+++ b/src/locales/zh-TW/translation.json@@ -875,8 +875,11 @@"apikeyHelp": "從 Google AI Studio 取得的 Vertex AI Express Mode API 金鑰。"}},+ "modelRetiredTitle": "模型已無法使用",+ "groq": {+ "modelRetired": "Groq 已停用 {{from}},已切換至 {{to}}。"+ },"tinfoil": {- "modelRetiredTitle": "模型已無法使用","modelRetired": "Tinfoil 已停用 {{from}},已切換至 {{to}}。","refreshingModels": "正在重新整理模型…"},@@ -2688,8 +2691,6 @@"groq_openai_gpt_oss_120b": "OpenAI 開源旗艦,500 T/sec","groq_qwen_qwen3_8_27b": "快速 Qwen 模型,450 T/sec,131K 上下文","groq_openai_gpt_oss_20b": "快速開源模型,1000 T/sec",- "groq_compound": "Groq Compound 系統,450 T/sec",- "groq_compound_mini": "快速 Compound 系統,3x 更低延遲","openai_gpt_6_astra": "OpenAI 最強大的模型,適用於編碼與研究","openai_gpt_5_6_sol": "旗艦 GPT-5.6,適用於複雜編碼與研究","openai_gpt_5_6_terra": "均衡的 GPT-5.6,適合日常工作",diff --git a/src/main.jsx b/src/main.jsxindex f3308d1b6..c9b5ca752 100644--- a/src/main.jsx+++ b/src/main.jsx@@ -4,7 +4,7 @@ import { I18nextProvider } from "react-i18next";import AppRouter from "./AppRouter.jsx";import ErrorBoundary from "./components/ErrorBoundary.tsx";import CleanupFailureToastListener from "./components/CleanupFailureToastListener.tsx";-import TinfoilModelSwitchToastListener from "./components/TinfoilModelSwitchToastListener.tsx";+import RetiredModelSwitchToastListener from "./components/RetiredModelSwitchToastListener.tsx";import GpuPackMigrationToastListener from "./components/GpuPackMigrationToastListener.tsx";import { I18nDirectionProvider } from "./components/I18nDirectionProvider.tsx";import { ToastProvider } from "./components/ui/Toast.tsx";@@ -31,7 +31,7 @@ root.render(<I18nDirectionProvider><SettingsProvider><ToastProvider>- <TinfoilModelSwitchToastListener />+ <RetiredModelSwitchToastListener /><CleanupFailureToastListener /><GpuPackMigrationToastListener /><AppRouter />diff --git a/src/models/modelRegistryData.json b/src/models/modelRegistryData.jsonindex 213a024ce..9f0ac40b1 100644--- a/src/models/modelRegistryData.json+++ b/src/models/modelRegistryData.json@@ -765,18 +765,6 @@"reasoningEffort": {"options": ["low", "medium", "high"]}- },- {- "id": "groq/compound",- "name": "Compound",- "description": "Groq's compound system, 450 T/sec",- "descriptionKey": "models.descriptions.cloud.groq_compound"- },- {- "id": "groq/compound-mini",- "name": "Compound Mini",- "description": "Fast compound system, 3x lower latency",- "descriptionKey": "models.descriptions.cloud.groq_compound_mini"}]},diff --git a/src/models/tinfoilModels.ts b/src/models/tinfoilModels.tsindex fe3f630e3..0af877566 100644--- a/src/models/tinfoilModels.ts+++ b/src/models/tinfoilModels.ts@@ -12,7 +12,7 @@ import {} from "./tinfoilModelCache";import { INFERENCE_SCOPES, usesCloudModelCatalog } from "../config/inferenceScopes";import { getSettings, setStringSetting } from "../stores/settingsStore";-import { recordTinfoilModelSwitch } from "../stores/tinfoilModelSwitchStore";+import { recordRetiredModelSwitch } from "../stores/retiredModelSwitchStore";/** A chat model as reported by Tinfoil's /v1/models, narrowed by the main process. */export interface TinfoilCatalogModel {@@ -78,7 +78,8 @@ function reconcileSelectedModels(// Several scopes can share a retired model; say so once.if (announced.has(selected)) continue;announced.add(selected);- recordTinfoilModelSwitch({+ recordRetiredModelSwitch({+ provider: "tinfoil",from: previous.find((m) => m.id === selected)?.name ?? selected,to: replacement.name,});diff --git a/src/stores/retiredModelSwitchStore.ts b/src/stores/retiredModelSwitchStore.tsnew file mode 100644index 000000000..8a2206255--- /dev/null+++ b/src/stores/retiredModelSwitchStore.ts@@ -0,0 +1,30 @@+import { create } from "zustand";+import type { RetiredModelProvider } from "../config/retiredCloudModels";++export interface RetiredModelSwitch {+ provider: RetiredModelProvider;+ /** Display name of the model the provider retired. */+ from: string;+ /** Display name of the model we moved the user to. */+ to: string;+}++interface RetiredModelSwitchState {+ events: RetiredModelSwitch[];+}++export const useRetiredModelSwitchStore = create<RetiredModelSwitchState>(() => ({+ events: [],+}));++export function recordRetiredModelSwitch(event: RetiredModelSwitch): void {+ useRetiredModelSwitchStore.setState((state) => ({ events: [...state.events, event] }));+}++export function consumeRetiredModelSwitches(): RetiredModelSwitch[] {+ const { events } = useRetiredModelSwitchStore.getState();+ if (events.length > 0) {+ useRetiredModelSwitchStore.setState({ events: [] });+ }+ return events;+}diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.tsindex c2d758241..b3660104c 100644--- a/src/stores/settingsStore.ts+++ b/src/stores/settingsStore.ts@@ -16,7 +16,10 @@ import type { CalendarAccount, MicrosoftCalendarAccount } from "../types/calendaimport { normalizeEmailDraftTarget, type EmailDraftTargetSetting } from "../utils/emailDraftTarget";import { PROMPT_KIND_LIST, type PromptKind } from "../config/prompts/registry";import { sweepRetiredPromptOverrides } from "../config/retiredPrompts";-import { sweepRetiredCloudModelSelections } from "../config/retiredCloudModels";+import {+ sweepRetiredCloudModelSelections,+ type RetiredModelProvider,+} from "../config/retiredCloudModels";import {deriveReasoningMode,buildReasoningScopePatches,@@ -35,9 +38,10 @@ import { adjustBedrockModelForRegion } from "../utils/bedrockRegions";import modelRegistryData from "../models/modelRegistryData.json";import { pickDefaultModelId } from "../models/providerDefaultModel";// Both are leaves: tinfoilModelCache imports only a type from ModelRegistry and-// the switch store only zustand, so neither reopens the ModelRegistry cycle.+// the switch store only zustand and a type, so neither reopens the ModelRegistry+// cycle.import { readCachedTinfoilModels } from "../models/tinfoilModelCache";-import { recordTinfoilModelSwitch } from "./tinfoilModelSwitchStore";+import { recordRetiredModelSwitch } from "./retiredModelSwitchStore";import { MEETING_STREAMING_PROVIDER_IDS } from "../helpers/meetingTranscriptionRouting";import { STREAMING_ONLY_PROVIDERS } from "../helpers/transcriptionRoute";import {@@ -834,14 +838,15 @@ if (Object.keys(healedMeetingFollowModes).length > 0) {);}-// Resolved offline, so a retired model's name survives only in the user's own-// catalog cache and a replacement's only if we seed it. The raw-id fallback is-// what the live-catalog reconcile shows too.-function tinfoilModelName(modelId: string): string {+// Resolved offline, so a retired model's name survives only in Tinfoil's+// catalog cache, and a replacement's only if the registry lists it. The raw-id+// fallback is what the live-catalog reconcile shows too.+function sweptModelName(providerId: RetiredModelProvider, modelId: string): string {+ const cached = providerId === "tinfoil" ? readCachedTinfoilModels().models : [];const named =- readCachedTinfoilModels().models.find((model) => model.id === modelId) ??+ cached.find((model) => model.id === modelId) ??modelRegistryData.cloudProviders- .find((provider) => provider.id === "tinfoil")+ .find((provider) => provider.id === providerId)?.models.find((model) => model.id === modelId);return named?.name ?? modelId;}@@ -866,17 +871,23 @@ function migrateRetiredCloudModels() {logger.info("Repointed retired cloud model selections",- { scopes: swept.map(({ storeKey }) => storeKey) },+ { swept: swept.map(({ storeKey, from, to }) => ({ storeKey, from, to })) },"settings");- // Tinfoil is the one provider that tells the user their model was switched- // out, and getting here first means reconcileSelectedModels no longer will.+ // Tell the user their model was switched out; for Tinfoil, getting here+ // first means reconcileSelectedModels no longer will. Several scopes can+ // share a retired model, so say so once per model.const announced = new Set<string>();for (const { provider, from, to } of swept) {- if (provider !== "tinfoil" || announced.has(from)) continue;- announced.add(from);- recordTinfoilModelSwitch({ from: tinfoilModelName(from), to: tinfoilModelName(to) });+ const key = `${provider}:${from}`;+ if (announced.has(key)) continue;+ announced.add(key);+ recordRetiredModelSwitch({+ provider,+ from: sweptModelName(provider, from),+ to: sweptModelName(provider, to),+ });}}diff --git a/src/stores/tinfoilModelSwitchStore.ts b/src/stores/tinfoilModelSwitchStore.tsdeleted file mode 100644index ef8f04148..000000000--- a/src/stores/tinfoilModelSwitchStore.ts+++ /dev/null@@ -1,28 +0,0 @@-import { create } from "zustand";--export interface TinfoilModelSwitch {- /** Display name of the model Tinfoil retired. */- from: string;- /** Display name of the model we moved the user to. */- to: string;-}--interface TinfoilModelSwitchState {- events: TinfoilModelSwitch[];-}--export const useTinfoilModelSwitchStore = create<TinfoilModelSwitchState>(() => ({- events: [],-}));--export function recordTinfoilModelSwitch(event: TinfoilModelSwitch): void {- useTinfoilModelSwitchStore.setState((state) => ({ events: [...state.events, event] }));-}--export function consumeTinfoilModelSwitches(): TinfoilModelSwitch[] {- const { events } = useTinfoilModelSwitchStore.getState();- if (events.length > 0) {- useTinfoilModelSwitchStore.setState({ events: [] });- }- return events;-}diff --git a/test/helpers/retiredCloudModels.test.js b/test/helpers/retiredCloudModels.test.jsindex acba8baac..729ce3829 100644--- a/test/helpers/retiredCloudModels.test.js+++ b/test/helpers/retiredCloudModels.test.js@@ -66,6 +66,44 @@ test("still remaps the models Groq retired", async () => {assert.equal(storage.map.get("chatAgentModel"), "openai/gpt-oss-120b");});+test("remaps the Compound systems Groq shut down, even after the first Groq sweep ran", async () => {+ const { sweepRetiredCloudModelSelections } = await load();+ // Groq shut down groq/compound and groq/compound-mini on 2026-09-21, after+ // shipped builds had already written the original Groq sentinel. The rotated+ // key also re-sweeps the August ids, which is harmless: they are retired too.+ const storage = makeStorage({+ _retiredGroqModelsMigrated: "1",+ cleanupProvider: "groq",+ cleanupModel: "groq/compound",+ chatAgentProvider: "groq",+ chatAgentModel: "groq/compound-mini",+ noteFormattingProvider: "groq",+ noteFormattingModel: "llama-3.3-70b-versatile",+ });++ assert.deepEqual(sweepRetiredCloudModelSelections(storage, [CLEANUP, CHAT, NOTES]), [+ {+ storeKey: "cleanupModel",+ provider: "groq",+ from: "groq/compound",+ to: "openai/gpt-oss-120b",+ },+ {+ storeKey: "chatAgentModel",+ provider: "groq",+ from: "groq/compound-mini",+ to: "openai/gpt-oss-20b",+ },+ {+ storeKey: "noteFormattingModel",+ provider: "groq",+ from: "llama-3.3-70b-versatile",+ to: "openai/gpt-oss-120b",+ },+ ]);+ assert.equal(storage.map.get("_retiredGroqModelsMigrated2"), "1");+});+test("leaves a model the provider still serves alone", async () => {const { sweepRetiredCloudModelSelections } = await load();const storage = makeStorage({ cleanupProvider: "tinfoil", cleanupModel: "gpt-oss-120b" });@@ -112,7 +150,7 @@ test("Groq's already-shipped sentinel does not suppress another provider's remaptest("a provider whose sentinel is already set is skipped", async () => {const { sweepRetiredCloudModelSelections } = await load();const storage = makeStorage({- _retiredGroqModelsMigrated: "1",+ _retiredGroqModelsMigrated2: "1",cleanupProvider: "groq",cleanupModel: "llama-3.3-70b-versatile",});@@ -174,8 +212,14 @@ test("each provider's sentinel is pinned to the exact set of ids it covers", asyassert.deepEqual(covered, {groq: {- migratedKey: "_retiredGroqModelsMigrated",- retired: ["llama-3.1-8b-instant", "llama-3.3-70b-versatile", "qwen/qwen3-32b"],+ migratedKey: "_retiredGroqModelsMigrated2",+ retired: [+ "groq/compound",+ "groq/compound-mini",+ "llama-3.1-8b-instant",+ "llama-3.3-70b-versatile",+ "qwen/qwen3-32b",+ ],},tinfoil: {migratedKey: "_retiredTinfoilModelsMigrated2",@@ -194,5 +238,5 @@ test("a storage that cannot be written leaves the sentinel unset, so the next laassert.deepEqual(sweepRetiredCloudModelSelections(storage, [CLEANUP]), []);assert.equal(storage.map.get("_retiredTinfoilModelsMigrated2"), undefined);// Groq shares the storage but not the failure's blast radius.- assert.equal(storage.map.get("_retiredGroqModelsMigrated"), undefined);+ assert.equal(storage.map.get("_retiredGroqModelsMigrated2"), undefined);});diff --git a/test/helpers/selfHostedModelPersistence.test.js b/test/helpers/selfHostedModelPersistence.test.jsindex 7718809ed..3b6cba62f 100644--- a/test/helpers/selfHostedModelPersistence.test.js+++ b/test/helpers/selfHostedModelPersistence.test.js@@ -20,7 +20,7 @@ test("cloud model reconciliation respects each scope's active mode", async (t) =storage.clear();storage.setItem("_llmScopeKeysMigrated", "1");if (skipStartupMigration) {- storage.setItem("_retiredGroqModelsMigrated", "1");+ storage.setItem("_retiredGroqModelsMigrated2", "1");storage.setItem("_retiredTinfoilModelsMigrated2", "1");}for (const { storeKeys } of scopes) {@@ -40,10 +40,10 @@ test("cloud model reconciliation respects each scope's active mode", async (t) =}async function tinfoilNoticeCount() {- const { consumeTinfoilModelSwitches } = await vite.ssrLoadModule(- "/stores/tinfoilModelSwitchStore.ts"+ const { consumeRetiredModelSwitches } = await vite.ssrLoadModule(+ "/stores/retiredModelSwitchStore.ts");- return consumeTinfoilModelSwitches().length;+ return consumeRetiredModelSwitches().length;}for (const mode of MODES) {diff --git a/test/helpers/settingsStoreRetiredGroqModels.test.js b/test/helpers/settingsStoreRetiredGroqModels.test.jsindex a7840e84e..e483dbde4 100644--- a/test/helpers/settingsStoreRetiredGroqModels.test.js+++ b/test/helpers/settingsStoreRetiredGroqModels.test.js@@ -4,17 +4,17 @@ const { createRendererServer, installBrowserGlobals } = require("../lib/rendererconst modelRegistryData = require("../../src/models/modelRegistryData.json");-// Groq retired qwen3-32b and both Llamas on 2026-08-16. The registry entries-// are gone, so a persisted scope selection would 404 on every request until-// the user re-picked — the migration remaps it to a model Groq still serves.+// Groq retired qwen3-32b and both Llamas on 2026-08-16, and shut down both+// Compound systems on 2026-09-21. The registry entries are gone, so a persisted+// scope selection would 404 on every request until the user re-picked — the+// migration remaps it to a model Groq still serves.test("retired groq model selections migrate to served replacements", async (t) => {const groqIds = modelRegistryData.cloudProviders.find((provider) => provider.id === "groq").models.map((model) => model.id);- assert.ok(- !groqIds.includes("llama-3.3-70b-versatile"),- "retired ids must be out of the registry"- );+ for (const retired of ["llama-3.3-70b-versatile", "groq/compound", "groq/compound-mini"]) {+ assert.ok(!groqIds.includes(retired), `retired id ${retired} must be out of the registry`);+ }const { storage } = installBrowserGlobals(t);const vite = await createRendererServer(t, {@@ -43,10 +43,36 @@ test("retired groq model selections migrate to served replacements", async (t) =assert.equal(state.chatAgentModel, "llama-3.3-70b-versatile", "openrouter still serves the id");});- await t.test("migration is one-shot", async () => {+ await t.test("compound selections remap under the rotated sentinel", async () => {storage.clear();+ // Set by every build since the August sweep, so only the rotated key reaches these.storage.setItem("_retiredGroqModelsMigrated", "1");storage.setItem("cleanupProvider", "groq");+ storage.setItem("cleanupModel", "groq/compound");+ storage.setItem("dictationAgentProvider", "groq");+ storage.setItem("dictationAgentModel", "groq/compound-mini");++ const { useSettingsStore } = await load();+ const state = useSettingsStore.getState();++ assert.equal(state.cleanupModel, "openai/gpt-oss-120b");+ // The live reconcile would fall back to Groq's default (120b); 20b proves the sweep ran.+ assert.equal(state.dictationAgentModel, "openai/gpt-oss-20b");++ // The registry no longer names a retired id, so it is shown raw.+ const { consumeRetiredModelSwitches } = await vite.ssrLoadModule(+ "/stores/retiredModelSwitchStore.ts"+ );+ assert.deepEqual(consumeRetiredModelSwitches(), [+ { provider: "groq", from: "groq/compound", to: "GPT-OSS 120B" },+ { provider: "groq", from: "groq/compound-mini", to: "GPT-OSS 20B" },+ ]);+ });++ await t.test("migration is one-shot", async () => {+ storage.clear();+ storage.setItem("_retiredGroqModelsMigrated2", "1");+ storage.setItem("cleanupProvider", "groq");storage.setItem("cleanupModel", "llama-3.3-70b-versatile");const { useSettingsStore } = await load();diff --git a/test/helpers/tinfoilDefaultModel.test.js b/test/helpers/tinfoilDefaultModel.test.jsindex 0f091b160..69388ac5c 100644--- a/test/helpers/tinfoilDefaultModel.test.js+++ b/test/helpers/tinfoilDefaultModel.test.js@@ -166,16 +166,18 @@ test("the retirement notice fires when the startup sweep is what moved the user"cachePrefix: "openwhispr-tinfoil-sweep-notice-test-",});const { useSettingsStore } = await vite.ssrLoadModule("/stores/settingsStore.ts");- const { consumeTinfoilModelSwitches } = await vite.ssrLoadModule(- "/stores/tinfoilModelSwitchStore.ts"+ const { consumeRetiredModelSwitches } = await vite.ssrLoadModule(+ "/stores/retiredModelSwitchStore.ts");assert.equal(useSettingsStore.getState().cleanupModel, "glm-5-3");// Two scopes moved, but the user is told about the model once.- assert.deepEqual(consumeTinfoilModelSwitches(), [{ from: "GLM-5.2", to: "GLM-5.3" }]);+ assert.deepEqual(consumeRetiredModelSwitches(), [+ { provider: "tinfoil", from: "GLM-5.2", to: "GLM-5.3" },+ ]);});-test("a Groq remap is not announced as a Tinfoil retirement", async (t) => {+test("a Groq remap is announced as Groq's retirement, not Tinfoil's", async (t) => {installBrowserGlobals(t, {initialStorage: {_llmScopeKeysMigrated: "1",@@ -188,12 +190,14 @@ test("a Groq remap is not announced as a Tinfoil retirement", async (t) => {cachePrefix: "openwhispr-groq-sweep-notice-test-",});const { useSettingsStore } = await vite.ssrLoadModule("/stores/settingsStore.ts");- const { consumeTinfoilModelSwitches } = await vite.ssrLoadModule(- "/stores/tinfoilModelSwitchStore.ts"+ const { consumeRetiredModelSwitches } = await vite.ssrLoadModule(+ "/stores/retiredModelSwitchStore.ts");assert.equal(useSettingsStore.getState().cleanupModel, "openai/gpt-oss-120b");- assert.deepEqual(consumeTinfoilModelSwitches(), []);+ assert.deepEqual(consumeRetiredModelSwitches(), [+ { provider: "groq", from: "llama-3.3-70b-versatile", to: "GPT-OSS 120B" },+ ]);});// Every live site that resolves a provider's default reads the name the@@ -245,10 +249,12 @@ test("a replacement with no curated name is still announced, by id", async (t) =cachePrefix: "openwhispr-tinfoil-unnamed-replacement-test-",});const { useSettingsStore } = await vite.ssrLoadModule("/stores/settingsStore.ts");- const { consumeTinfoilModelSwitches } = await vite.ssrLoadModule(- "/stores/tinfoilModelSwitchStore.ts"+ const { consumeRetiredModelSwitches } = await vite.ssrLoadModule(+ "/stores/retiredModelSwitchStore.ts");assert.equal(useSettingsStore.getState().cleanupModel, "kimi-k3");- assert.deepEqual(consumeTinfoilModelSwitches(), [{ from: "Kimi K2.6", to: "kimi-k3" }]);+ assert.deepEqual(consumeRetiredModelSwitches(), [+ { provider: "tinfoil", from: "Kimi K2.6", to: "kimi-k3" },+ ]);});