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(voice-agent): remove cleanup mode references from voice agent panel
Gabriel Stein89cf5b3656f2
diff --git a/src/components/settings/DictationAgentSettings.tsx b/src/components/settings/DictationAgentSettings.tsxindex 6db12bc2e..29d62fc5a 100644--- a/src/components/settings/DictationAgentSettings.tsx+++ b/src/components/settings/DictationAgentSettings.tsx@@ -1,11 +1,6 @@import { useCallback, useState } from "react";import { useTranslation } from "react-i18next";-import { useShallow } from "zustand/react/shallow";-import {- useSettingsStore,- selectResolvedLLMConfig,- setResolvedLLMConfig,-} from "../../stores/settingsStore";+import { useSettingsStore } from "../../stores/settingsStore";import { useAgentName } from "../../utils/agentName";import { useSettings } from "../../hooks/useSettings";import { useDialogs } from "../../hooks/useDialogs";@@ -20,29 +15,12 @@ export default function DictationAgentSettings() {const { t } = useTranslation();const useDictationAgent = useSettingsStore((s) => s.useDictationAgent);const setUseDictationAgent = useSettingsStore((s) => s.setUseDictationAgent);- const agentConfig = useSettingsStore(- useShallow((s) => selectResolvedLLMConfig(s, "dictationAgent"))- );- const cleanupConfig = useSettingsStore(- useShallow((s) => selectResolvedLLMConfig(s, "dictationCleanup"))- );- const showUseCleanup = !agentConfig.provider && !agentConfig.model && !!cleanupConfig.provider;const { agentName, setAgentName } = useAgentName();const [agentNameInput, setAgentNameInput] = useState(agentName);const { customDictionary, setCustomDictionary } = useSettings();const { showAlertDialog } = useDialogs();- const useCleanupModel = () => {- setResolvedLLMConfig("dictationAgent", {- provider: cleanupConfig.provider,- model: cleanupConfig.model,- cloudMode: cleanupConfig.cloudMode,- cloudBaseUrl: cleanupConfig.cloudBaseUrl,- remoteUrl: cleanupConfig.remoteUrl,- });- };-const handleSaveAgentName = useCallback(() => {const trimmed = agentNameInput.trim();const previousName = agentName;@@ -77,22 +55,9 @@ export default function DictationAgentSettings() {const instructionMode = t("settingsPage.agentConfig.instructionMode");const examples = [- {- input: t("settingsPage.agentConfig.examples.formalEmail", { agentName }),- mode: instructionMode,- },- {- input: t("settingsPage.agentConfig.examples.professional", { agentName }),- mode: instructionMode,- },- {- input: t("settingsPage.agentConfig.examples.bulletPoints", { agentName }),- mode: instructionMode,- },- {- input: t("settingsPage.agentConfig.cleanupExample"),- mode: t("settingsPage.agentConfig.cleanupMode"),- },+ t("settingsPage.agentConfig.examples.formalEmail", { agentName }),+ t("settingsPage.agentConfig.examples.professional", { agentName }),+ t("settingsPage.agentConfig.examples.bulletPoints", { agentName }),];const voiceAgentSection = (@@ -144,18 +109,12 @@ export default function DictationAgentSettings() {<SettingsPanel><SettingsPanelRow><div className="space-y-2.5">- {examples.map((example, i) => (+ {examples.map((input, i) => (<div key={i} className="flex items-start gap-3">- <span- className={`shrink-0 mt-0.5 text-xs font-medium uppercase tracking-wider px-1.5 py-px rounded ${- example.mode === instructionMode- ? "bg-primary/10 text-primary dark:bg-primary/15"- : "bg-muted text-muted-foreground"- }`}- >- {example.mode}+ <span className="shrink-0 mt-0.5 text-xs font-medium uppercase tracking-wider px-1.5 py-px rounded bg-primary/10 text-primary dark:bg-primary/15">+ {instructionMode}</span>- <p className="text-xs text-muted-foreground leading-relaxed">"{example.input}"</p>+ <p className="text-xs text-muted-foreground leading-relaxed">"{input}"</p></div>))}</div>@@ -178,21 +137,7 @@ export default function DictationAgentSettings() {</SettingsPanelRow></SettingsPanel>- {useDictationAgent && (- <>- {showUseCleanup && (- <button- type="button"- onClick={useCleanupModel}- className="text-sm text-primary hover:underline"- >- {t("dictationAgent.useCleanupModel")}- </button>- )}-- <InferenceConfigEditor scope="dictationAgent" />- </>- )}+ {useDictationAgent && <InferenceConfigEditor scope="dictationAgent" />}{voiceAgentSection}diff --git a/src/locales/de/translation.json b/src/locales/de/translation.jsonindex 3a8eb0283..84891275d 100644--- a/src/locales/de/translation.json+++ b/src/locales/de/translation.json@@ -1120,8 +1120,6 @@},"agentConfig": {"agentName": "Agent-Name",- "cleanupExample": "Textbereinigung",- "cleanupMode": "Bereinigungsmodus","description": "Benennen Sie Ihren KI-Assistenten, damit Sie ihn beim Diktieren direkt ansprechen können","dialogs": {"updatedDescription": "Ihr Agent heißt jetzt '{{name}}'. Sprechen Sie ihn an, indem Sie 'Hey {{name}}' gefolgt von Ihren Anweisungen sagen.",@@ -1129,7 +1127,7 @@},"examplesTitle": "Beispiele","helper": "Wählen Sie etwas Kurzes und Natürliches zum Aussprechen",- "howItWorksDescription": "Wenn Sie 'Hey {{agentName}}' gefolgt von einer Anweisung sagen, wechselt die KI vom Bereinigungsmodus in den Anweisungsmodus. Ohne die Triggerphrase wird Ihr Diktat einfach bereinigt.",+ "howItWorksDescription": "Wenn Sie 'Hey {{agentName}}' gefolgt von einer Anweisung sagen, führt die KI Ihren Befehl aus — Inhalte verfassen, Text formatieren oder Fragen beantworten — statt ihn wörtlich zu transkribieren.","howItWorksTitle": "So funktioniert es","instructionMode": "Anweisung","placeholder": "z. B. Jarvis, Nova, Atlas...",@@ -2111,7 +2109,6 @@"dictationAgent": {"enabled": "Enable voice agent","enabledDescription": "Dictate instructions to your agent. Activate by saying \"{{agentName}}\". Configurable below.",- "useCleanupModel": "Bereinigungsmodell verwenden","modes": {"openwhispr": "OpenWhispr Cloud","openwhisprDesc": "Use the OpenWhispr-managed agent — no API key needed.",diff --git a/src/locales/en/translation.json b/src/locales/en/translation.jsonindex 9245d3d6f..60e85cb26 100644--- a/src/locales/en/translation.json+++ b/src/locales/en/translation.json@@ -1216,8 +1216,6 @@},"agentConfig": {"agentName": "Agent Name",- "cleanupExample": "Cleanup",- "cleanupMode": "Cleanup Mode","description": "Name your AI assistant so you can address it directly during dictation","dialogs": {"updatedDescription": "Your agent is now named \"{{name}}\". Address it by saying \"Hey {{name}}\" followed by your instructions.",@@ -1225,7 +1223,7 @@},"examplesTitle": "Examples","helper": "Pick something short and natural to say aloud",- "howItWorksDescription": "When you say \"Hey {{agentName}}\" followed by an instruction, the AI switches from cleanup mode to instruction mode. Without the trigger phrase, it simply cleans up your dictation.",+ "howItWorksDescription": "When you say \"Hey {{agentName}}\" followed by an instruction, the AI executes your command — composing content, formatting text, or answering questions — instead of transcribing it verbatim.","howItWorksTitle": "How it works","instructionMode": "Instruction","placeholder": "e.g. Jarvis, Nova, Atlas...",@@ -2207,7 +2205,6 @@"dictationAgent": {"enabled": "Enable voice agent","enabledDescription": "Dictate instructions to your agent. Activate by saying \"{{agentName}}\". Configurable below.",- "useCleanupModel": "Use cleanup model","modes": {"openwhispr": "OpenWhispr Cloud","openwhisprDesc": "Use the OpenWhispr-managed agent — no API key needed.",diff --git a/src/locales/es/translation.json b/src/locales/es/translation.jsonindex 1c9b3e6b8..a5c148880 100644--- a/src/locales/es/translation.json+++ b/src/locales/es/translation.json@@ -1168,8 +1168,6 @@},"agentConfig": {"agentName": "Nombre del agente",- "cleanupExample": "Corrección",- "cleanupMode": "Modo corrección","description": "Nombra a tu asistente de IA para que puedas dirigirte a él directamente durante el dictado","dialogs": {"updatedDescription": "Tu agente ahora se llama \"{{name}}\". Dirígete a él diciendo \"Hey {{name}}\" seguido de tus instrucciones.",@@ -1177,7 +1175,7 @@},"examplesTitle": "Ejemplos","helper": "Elige algo corto y natural para decir en voz alta",- "howItWorksDescription": "Cuando dices \"Hey {{agentName}}\" seguido de una instrucción, la IA cambia del modo corrección al modo instrucción. Sin la frase de activación, simplemente corrige tu dictado.",+ "howItWorksDescription": "Cuando dices \"Hey {{agentName}}\" seguido de una instrucción, la IA ejecuta tu comando — redactando contenido, formateando texto o respondiendo preguntas — en lugar de transcribirlo literalmente.","howItWorksTitle": "Cómo funciona","instructionMode": "Instrucción","placeholder": "p. ej. Jarvis, Nova, Atlas...",@@ -2159,7 +2157,6 @@"dictationAgent": {"enabled": "Enable voice agent","enabledDescription": "Dictate instructions to your agent. Activate by saying \"{{agentName}}\". Configurable below.",- "useCleanupModel": "Usar modelo de limpieza","modes": {"openwhispr": "OpenWhispr Cloud","openwhisprDesc": "Use the OpenWhispr-managed agent — no API key needed.",diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.jsonindex 9e4d542bc..5f48e11da 100644--- a/src/locales/fr/translation.json+++ b/src/locales/fr/translation.json@@ -1168,8 +1168,6 @@},"agentConfig": {"agentName": "Nom de l'agent",- "cleanupExample": "Correction",- "cleanupMode": "Mode correction","description": "Nommez votre assistant IA pour pouvoir l'interpeller directement pendant la dictée","dialogs": {"updatedDescription": "Votre agent s'appelle désormais « {{name}} ». Interpellez-le en disant « Hey {{name}} » suivi de vos instructions.",@@ -1177,7 +1175,7 @@},"examplesTitle": "Exemples","helper": "Choisissez un nom court et naturel à prononcer",- "howItWorksDescription": "Lorsque vous dites « Hey {{agentName}} » suivi d'une instruction, l'IA passe du mode correction au mode instruction. Sans la phrase déclencheur, il corrige simplement votre dictée.",+ "howItWorksDescription": "Lorsque vous dites « Hey {{agentName}} » suivi d'une instruction, l'IA exécute votre commande — rédiger du contenu, formater du texte ou répondre à des questions — au lieu de la transcrire littéralement.","howItWorksTitle": "Comment ça marche","instructionMode": "Instruction","placeholder": "ex. Jarvis, Nova, Atlas...",@@ -2159,7 +2157,6 @@"dictationAgent": {"enabled": "Enable voice agent","enabledDescription": "Dictate instructions to your agent. Activate by saying \"{{agentName}}\". Configurable below.",- "useCleanupModel": "Utiliser le modèle de nettoyage","modes": {"openwhispr": "OpenWhispr Cloud","openwhisprDesc": "Use the OpenWhispr-managed agent — no API key needed.",diff --git a/src/locales/it/translation.json b/src/locales/it/translation.jsonindex edc09468a..d8f89ed81 100644--- a/src/locales/it/translation.json+++ b/src/locales/it/translation.json@@ -1120,8 +1120,6 @@},"agentConfig": {"agentName": "Nome dell'agente",- "cleanupExample": "Correzione",- "cleanupMode": "Modalità correzione","description": "Dai un nome al tuo assistente IA per rivolgerti direttamente a lui durante la dettatura","dialogs": {"updatedDescription": "Il tuo agente ora si chiama \"{{name}}\". Rivolgiti a lui dicendo \"Ehi {{name}}\" seguito dalle tue istruzioni.",@@ -1129,7 +1127,7 @@},"examplesTitle": "Esempi","helper": "Scegli qualcosa di breve e naturale da dire ad alta voce",- "howItWorksDescription": "Quando dici \"Ehi {{agentName}}\" seguito da un'istruzione, l'IA passa dalla modalità correzione alla modalità istruzione. Senza la frase di attivazione, si limita a correggere la tua dettatura.",+ "howItWorksDescription": "Quando dici \"Ehi {{agentName}}\" seguito da un'istruzione, l'IA esegue il tuo comando — redigendo contenuti, formattando testo o rispondendo a domande — invece di trascriverlo alla lettera.","howItWorksTitle": "Come funziona","instructionMode": "Istruzione","placeholder": "es. Jarvis, Nova, Atlas...",@@ -2111,7 +2109,6 @@"dictationAgent": {"enabled": "Enable voice agent","enabledDescription": "Dictate instructions to your agent. Activate by saying \"{{agentName}}\". Configurable below.",- "useCleanupModel": "Usa modello di pulizia","modes": {"openwhispr": "OpenWhispr Cloud","openwhisprDesc": "Use the OpenWhispr-managed agent — no API key needed.",diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.jsonindex 16aeef750..7ec3dc699 100644--- a/src/locales/ja/translation.json+++ b/src/locales/ja/translation.json@@ -1120,8 +1120,6 @@},"agentConfig": {"agentName": "エージェント名",- "cleanupExample": "クリーンアップ",- "cleanupMode": "クリーンアップモード","description": "ディクテーション中に直接呼びかけられるよう、AI アシスタントに名前を付けましょう","dialogs": {"updatedDescription": "エージェントの名前が「{{name}}」になりました。「ねぇ {{name}}」と呼びかけて指示を出してください。",@@ -1129,7 +1127,7 @@},"examplesTitle": "例","helper": "声に出して言いやすい短い名前を選びましょう",- "howItWorksDescription": "「ねぇ {{agentName}}」と呼びかけて指示を出すと、AI がクリーンアップモードから指示モードに切り替わります。呼びかけなければ、通常のディクテーションのクリーンアップが行われます。",+ "howItWorksDescription": "「ねぇ {{agentName}}」と呼びかけて指示を出すと、AI はそのまま書き起こすのではなく、コンテンツの作成、テキストの整形、質問への回答などのコマンドを実行します。","howItWorksTitle": "仕組み","instructionMode": "指示","placeholder": "例: ジャービス、ノヴァ、アトラス...",@@ -2111,7 +2109,6 @@"dictationAgent": {"enabled": "Enable voice agent","enabledDescription": "Dictate instructions to your agent. Activate by saying \"{{agentName}}\". Configurable below.",- "useCleanupModel": "クリーンアップモデルを使用","modes": {"openwhispr": "OpenWhispr Cloud","openwhisprDesc": "Use the OpenWhispr-managed agent — no API key needed.",diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.jsonindex 4a9e7e321..bb424e43d 100644--- a/src/locales/pt/translation.json+++ b/src/locales/pt/translation.json@@ -1092,8 +1092,6 @@},"agentConfig": {"agentName": "Nome do agente",- "cleanupExample": "Limpeza",- "cleanupMode": "Modo limpeza","description": "Dê um nome ao seu assistente de IA para poder chamá-lo diretamente durante o ditado","dialogs": {"updatedDescription": "Seu agente agora se chama \"{{name}}\". Chame-o dizendo \"Ei {{name}}\" seguido das suas instruções.",@@ -1101,7 +1099,7 @@},"examplesTitle": "Exemplos","helper": "Escolha algo curto e natural de se dizer em voz alta",- "howItWorksDescription": "Quando você diz \"Ei {{agentName}}\" seguido de uma instrução, a IA muda do modo de limpeza para o modo de instrução. Sem a frase de ativação, ela simplesmente limpa seu ditado.",+ "howItWorksDescription": "Quando você diz \"Ei {{agentName}}\" seguido de uma instrução, a IA executa seu comando — redigindo conteúdo, formatando texto ou respondendo perguntas — em vez de transcrevê-lo literalmente.","howItWorksTitle": "Como funciona","instructionMode": "Instrução","placeholder": "ex.: Jarvis, Nova, Atlas...",@@ -2111,7 +2109,6 @@"dictationAgent": {"enabled": "Enable voice agent","enabledDescription": "Dictate instructions to your agent. Activate by saying \"{{agentName}}\". Configurable below.",- "useCleanupModel": "Usar modelo de limpeza","modes": {"openwhispr": "OpenWhispr Cloud","openwhisprDesc": "Use the OpenWhispr-managed agent — no API key needed.",diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.jsonindex b89df6156..58b90fdc9 100644--- a/src/locales/ru/translation.json+++ b/src/locales/ru/translation.json@@ -1120,8 +1120,6 @@},"agentConfig": {"agentName": "Имя агента",- "cleanupExample": "Очистка",- "cleanupMode": "Режим очистки","description": "Назовите вашего ИИ-помощника, чтобы обращаться к нему во время диктовки","dialogs": {"updatedDescription": "Ваш агент теперь называется «{{name}}». Обращайтесь к нему, говоря «Привет, {{name}}», а затем давайте инструкции.",@@ -1129,7 +1127,7 @@},"examplesTitle": "Примеры","helper": "Выберите что-то короткое и естественное для произношения",- "howItWorksDescription": "Когда вы говорите «Привет, {{agentName}}» и затем даёте инструкцию, ИИ переключается из режима очистки в режим инструкций. Без триггерной фразы он просто очищает вашу диктовку.",+ "howItWorksDescription": "Когда вы говорите «Привет, {{agentName}}» и затем даёте инструкцию, ИИ выполняет вашу команду — составляет контент, форматирует текст или отвечает на вопросы — вместо дословной транскрипции.","howItWorksTitle": "Как это работает","instructionMode": "Инструкция","placeholder": "например, Джарвис, Нова, Атлас...",@@ -2113,7 +2111,6 @@"dictationAgent": {"enabled": "Enable voice agent","enabledDescription": "Dictate instructions to your agent. Activate by saying \"{{agentName}}\". Configurable below.",- "useCleanupModel": "Использовать модель очистки","modes": {"openwhispr": "OpenWhispr Cloud","openwhisprDesc": "Use the OpenWhispr-managed agent — no API key needed.",diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.jsonindex 33162c56f..d18718411 100644--- a/src/locales/zh-CN/translation.json+++ b/src/locales/zh-CN/translation.json@@ -1115,8 +1115,6 @@},"agentConfig": {"agentName": "助手名称",- "cleanupExample": "文本整理",- "cleanupMode": "整理模式","description": "为你的 AI 助手取个名字,这样你就能在听写时直接呼唤它","dialogs": {"updatedDescription": "你的助手已命名为“{{name}}”。说“Hey {{name}}”然后说出指令即可使用。",@@ -1124,7 +1122,7 @@},"examplesTitle": "示例","helper": "选一个简短、说起来自然的名字",- "howItWorksDescription": "当你说“Hey {{agentName}}”并跟上指令时,AI 会从整理模式切换到指令模式。没有触发短语时,它只会整理你的听写内容。",+ "howItWorksDescription": "当你说“Hey {{agentName}}”并跟上指令时,AI 会执行你的命令——撰写内容、格式化文本或回答问题——而不是逐字转写。","howItWorksTitle": "工作原理","instructionMode": "指令","placeholder": "例如 Jarvis、Nova、Atlas...",@@ -2106,7 +2104,6 @@"dictationAgent": {"enabled": "Enable voice agent","enabledDescription": "Dictate instructions to your agent. Activate by saying \"{{agentName}}\". Configurable below.",- "useCleanupModel": "使用清理模型","modes": {"openwhispr": "OpenWhispr Cloud","openwhisprDesc": "Use the OpenWhispr-managed agent — no API key needed.",diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.jsonindex bfd88c215..2f98726c2 100644--- a/src/locales/zh-TW/translation.json+++ b/src/locales/zh-TW/translation.json@@ -1115,8 +1115,6 @@},"agentConfig": {"agentName": "助理名稱",- "cleanupExample": "文字整理",- "cleanupMode": "文字整理模式","description": "為你的 AI 助理取個名字,這樣你可以在語音輸入時直接呼叫它","dialogs": {"updatedDescription": "你的助理現在叫做「{{name}}」。說「Hey {{name}}」加上你的指令即可使用。",@@ -1124,7 +1122,7 @@},"examplesTitle": "範例","helper": "選個簡短、自然、好說的名字",- "howItWorksDescription": "當你說「Hey {{agentName}}」加上一個指令時,AI 會從文字整理模式切換到指令模式。沒有觸發語的時候,它只會整理你的語音輸入。",+ "howItWorksDescription": "當你說「Hey {{agentName}}」加上一個指令時,AI 會執行你的命令——撰寫內容、格式化文字或回答問題——而不是逐字轉寫。","howItWorksTitle": "運作方式","instructionMode": "指令","placeholder": "例如 Jarvis、Nova、Atlas...",@@ -2106,7 +2104,6 @@"dictationAgent": {"enabled": "Enable voice agent","enabledDescription": "Dictate instructions to your agent. Activate by saying \"{{agentName}}\". Configurable below.",- "useCleanupModel": "使用清理模型","modes": {"openwhispr": "OpenWhispr Cloud","openwhisprDesc": "Use the OpenWhispr-managed agent — no API key needed.",