Skip to content

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

fix: release hardening for v1.6.6

Gabriel Stein70dcf2ff7646
diff --git a/src/components/AgentOverlay.tsx b/src/components/AgentOverlay.tsx
index 50a9cf9a0..65c3b7001 100644
--- a/src/components/AgentOverlay.tsx
+++ b/src/components/AgentOverlay.tsx
@@ -82,7 +82,9 @@ export default function AgentOverlay() {
// Create conversation on first message
if (!conversationIdRef.current) {
- const conv = await window.electronAPI?.createAgentConversation?.("New conversation");
+ const conv = await window.electronAPI?.createAgentConversation?.(
+ t("agentMode.titleBar.newChat")
+ );
conversationIdRef.current = conv?.id ?? null;
}
@@ -143,8 +145,19 @@ export default function AgentOverlay() {
? async (name: string, argsJson: string) => {
const tool = registry.get(name);
if (!tool)
- return { data: `Unknown tool: ${name}`, displayText: `Unknown tool: ${name}` };
- const args = JSON.parse(argsJson);
+ return {
+ data: `Unknown tool: ${name}`,
+ displayText: t("agentMode.tools.unknownTool", { name }),
+ };
+ let args: Record<string, unknown>;
+ try {
+ args = JSON.parse(argsJson);
+ } catch {
+ return {
+ data: `Invalid tool arguments for ${name}`,
+ displayText: t("agentMode.tools.invalidArgs", { name }),
+ };
+ }
const result = await tool.execute(args);
const data = result.success
? typeof result.data === "string"
@@ -256,7 +269,11 @@ export default function AgentOverlay() {
setMessages((prev) =>
prev.map((m) =>
m.id === assistantId
- ? { ...m, content: `Error: ${(error as Error).message}`, isStreaming: false }
+ ? {
+ ...m,
+ content: `${t("agentMode.chat.errorPrefix")}: ${(error as Error).message}`,
+ isStreaming: false,
+ }
: m
)
);
@@ -284,7 +301,7 @@ export default function AgentOverlay() {
},
onError: (error: { message?: string }) => {
const msg = error?.message || (typeof error === "string" ? error : "Transcription failed");
- addSystemMessage(`Error: ${msg}`);
+ addSystemMessage(`${t("agentMode.chat.errorPrefix")}: ${msg}`);
setAgentState("idle");
},
onTranscriptionComplete: (result: { text: string }) => {
diff --git a/src/components/OnboardingFlow.tsx b/src/components/OnboardingFlow.tsx
index 75fa0e4e5..9d8586902 100644
--- a/src/components/OnboardingFlow.tsx
+++ b/src/components/OnboardingFlow.tsx
@@ -351,8 +351,8 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
return (
<div className="space-y-6">
<div className="text-center">
- <div className="w-14 h-14 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-4">
- <Check className="w-7 h-7 text-emerald-600" />
+ <div className="w-14 h-14 bg-green-500/10 rounded-full flex items-center justify-center mx-auto mb-4">
+ <Check className="w-7 h-7 text-green-500" />
</div>
<h2 className="text-2xl font-semibold text-foreground mb-2">
{t("onboarding.setup.title")}
diff --git a/src/locales/de/translation.json b/src/locales/de/translation.json
index d674b70af..ace9edda6 100644
--- a/src/locales/de/translation.json
+++ b/src/locales/de/translation.json
@@ -934,15 +934,15 @@
"period": "für immer",
"features": [
"## OpenWhispr Cloud",
- "2,000 words/week transcription",
- "5 hours of meeting recordings/month",
- "## Always free",
- "Unlimited local AI models",
- "Unlimited cloud transcription with your own API keys",
- "100+ languages supported",
- "Custom dictionary",
- "Zero data retention",
- "Community support"
+ "2.000 Wörter/Woche Transkription",
+ "5 Stunden Meeting-Aufnahmen/Monat",
+ "## Immer kostenlos",
+ "Unbegrenzte lokale KI-Modelle",
+ "Unbegrenzte Cloud-Transkription mit eigenen API-Schlüsseln",
+ "Über 100 Sprachen unterstützt",
+ "Benutzerdefiniertes Wörterbuch",
+ "Keine Datenspeicherung",
+ "Community-Support"
]
},
"pro": {
@@ -954,10 +954,10 @@
"annualEquivalent": "$6.67",
"includesPrefix": "Alle Free-Funktionen +",
"features": [
- "Unlimited cloud transcription",
- "20 hours of meeting recordings/month",
- "Mobile app (iOS Coming Soon)",
- "Email support"
+ "Unbegrenzte Cloud-Transkription",
+ "20 Stunden Meeting-Aufnahmen/Monat",
+ "Mobile App (iOS demnächst verfügbar)",
+ "E-Mail-Support"
],
"cta": "Jetzt starten",
"switchToAnnual": "Zum Jahresabo wechseln"
@@ -972,10 +972,10 @@
"includesPrefix": "Alle Pro-Funktionen +",
"badge": "Beliebteste Wahl",
"features": [
- "Unlimited meeting recordings",
- "Agent mode",
- "Chat over your data (Coming Soon)",
- "Priority support"
+ "Unbegrenzte Meeting-Aufnahmen",
+ "Agentenmodus",
+ "Chat über Ihre Daten (demnächst verfügbar)",
+ "Prioritäts-Support"
],
"cta": "Jetzt starten",
"switchToAnnual": "Zum Jahresabo wechseln"
@@ -983,16 +983,16 @@
"enterprise": {
"name": "Enterprise",
"price": "Individuell",
- "subtitle": "For advanced security & support",
+ "subtitle": "Für erweiterte Sicherheit & Support",
"includesPrefix": "Alle Business-Funktionen +",
"features": [
- "Managed API credits",
- "Cloud sync across devices",
- "Team features & admin",
- "SSO & compliance",
- "Dedicated support"
+ "Verwaltete API-Guthaben",
+ "Cloud-Synchronisierung über Geräte hinweg",
+ "Team-Funktionen & Verwaltung",
+ "SSO & Compliance",
+ "Dedizierter Support"
],
- "cta": "Contact Sales"
+ "cta": "Vertrieb kontaktieren"
},
"currentPlan": "Aktueller Tarif",
"upgrade": "Upgrade",
@@ -1880,7 +1880,9 @@
"calendarEvents": "{{count}} Termin gefunden",
"calendarEvents_plural": "{{count}} Termine gefunden",
"noResults": "Keine Ergebnisse",
- "error": "Werkzeugfehler"
+ "error": "Werkzeugfehler",
+ "unknownTool": "Unbekanntes Werkzeug: {{name}}",
+ "invalidArgs": "Ungültige Tool-Argumente für {{name}}"
}
},
"integrations": {
diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json
index f02d022d6..acd321de3 100644
--- a/src/locales/en/translation.json
+++ b/src/locales/en/translation.json
@@ -1928,7 +1928,9 @@
"calendarEvents": "Found {{count}} event",
"calendarEvents_plural": "Found {{count}} events",
"noResults": "No results found",
- "error": "Tool error"
+ "error": "Tool error",
+ "unknownTool": "Unknown tool: {{name}}",
+ "invalidArgs": "Invalid tool arguments for {{name}}"
}
},
"integrations": {
diff --git a/src/locales/es/translation.json b/src/locales/es/translation.json
index 7d24a3866..ec6994d51 100644
--- a/src/locales/es/translation.json
+++ b/src/locales/es/translation.json
@@ -934,15 +934,15 @@
"period": "para siempre",
"features": [
"## OpenWhispr Cloud",
- "2,000 words/week transcription",
- "5 hours of meeting recordings/month",
- "## Always free",
- "Unlimited local AI models",
- "Unlimited cloud transcription with your own API keys",
- "100+ languages supported",
- "Custom dictionary",
- "Zero data retention",
- "Community support"
+ "2.000 palabras/semana de transcripción",
+ "5 horas de grabaciones de reuniones/mes",
+ "## Siempre gratis",
+ "Modelos de IA locales ilimitados",
+ "Transcripción en la nube ilimitada con tus propias claves API",
+ "Más de 100 idiomas compatibles",
+ "Diccionario personalizado",
+ "Sin retención de datos",
+ "Soporte de la comunidad"
]
},
"pro": {
@@ -954,10 +954,10 @@
"annualEquivalent": "$6.67",
"includesPrefix": "Todas las funciones de Free +",
"features": [
- "Unlimited cloud transcription",
- "20 hours of meeting recordings/month",
- "Mobile app (iOS Coming Soon)",
- "Email support"
+ "Transcripción en la nube ilimitada",
+ "20 horas de grabaciones de reuniones/mes",
+ "Aplicación móvil (iOS próximamente)",
+ "Soporte por correo electrónico"
],
"cta": "Comenzar",
"switchToAnnual": "Cambiar a Anual"
@@ -972,10 +972,10 @@
"includesPrefix": "Todas las funciones de Pro +",
"badge": "Más popular",
"features": [
- "Unlimited meeting recordings",
- "Agent mode",
- "Chat over your data (Coming Soon)",
- "Priority support"
+ "Grabaciones de reuniones ilimitadas",
+ "Modo agente",
+ "Chatea sobre tus datos (próximamente)",
+ "Soporte prioritario"
],
"cta": "Comenzar",
"switchToAnnual": "Cambiar a Anual"
@@ -983,16 +983,16 @@
"enterprise": {
"name": "Enterprise",
"price": "Personalizado",
- "subtitle": "For advanced security & support",
+ "subtitle": "Para seguridad avanzada y soporte",
"includesPrefix": "Todas las funciones de Business +",
"features": [
- "Managed API credits",
- "Cloud sync across devices",
- "Team features & admin",
- "SSO & compliance",
- "Dedicated support"
+ "Créditos API gestionados",
+ "Sincronización en la nube entre dispositivos",
+ "Funciones de equipo y administración",
+ "SSO y cumplimiento normativo",
+ "Soporte dedicado"
],
- "cta": "Contact Sales"
+ "cta": "Contactar a ventas"
},
"currentPlan": "Plan actual",
"upgrade": "Mejorar plan",
@@ -1880,7 +1880,9 @@
"calendarEvents": "{{count}} evento encontrado",
"calendarEvents_plural": "{{count}} eventos encontrados",
"noResults": "Sin resultados",
- "error": "Error de herramienta"
+ "error": "Error de herramienta",
+ "unknownTool": "Herramienta desconocida: {{name}}",
+ "invalidArgs": "Argumentos de herramienta no válidos para {{name}}"
}
},
"integrations": {
diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.json
index 9247a7ba5..5c46e5682 100644
--- a/src/locales/fr/translation.json
+++ b/src/locales/fr/translation.json
@@ -934,15 +934,15 @@
"period": "pour toujours",
"features": [
"## OpenWhispr Cloud",
- "2,000 words/week transcription",
- "5 hours of meeting recordings/month",
- "## Always free",
- "Unlimited local AI models",
- "Unlimited cloud transcription with your own API keys",
- "100+ languages supported",
- "Custom dictionary",
- "Zero data retention",
- "Community support"
+ "2 000 mots/semaine de transcription",
+ "5 heures d'enregistrements de réunions/mois",
+ "## Toujours gratuit",
+ "Modèles d'IA locaux illimités",
+ "Transcription cloud illimitée avec vos propres clés API",
+ "Plus de 100 langues prises en charge",
+ "Dictionnaire personnalisé",
+ "Aucune conservation de données",
+ "Support communautaire"
]
},
"pro": {
@@ -954,10 +954,10 @@
"annualEquivalent": "$6.67",
"includesPrefix": "Toutes les fonctionnalités Free +",
"features": [
- "Unlimited cloud transcription",
- "20 hours of meeting recordings/month",
- "Mobile app (iOS Coming Soon)",
- "Email support"
+ "Transcription cloud illimitée",
+ "20 heures d'enregistrements de réunions/mois",
+ "Application mobile (iOS bientôt disponible)",
+ "Support par e-mail"
],
"cta": "Commencer",
"switchToAnnual": "Passer à l'annuel"
@@ -972,10 +972,10 @@
"includesPrefix": "Toutes les fonctionnalités Pro +",
"badge": "Le plus populaire",
"features": [
- "Unlimited meeting recordings",
- "Agent mode",
- "Chat over your data (Coming Soon)",
- "Priority support"
+ "Enregistrements de réunions illimités",
+ "Mode agent",
+ "Discutez avec vos données (bientôt disponible)",
+ "Support prioritaire"
],
"cta": "Commencer",
"switchToAnnual": "Passer à l'annuel"
@@ -983,16 +983,16 @@
"enterprise": {
"name": "Enterprise",
"price": "Sur devis",
- "subtitle": "For advanced security & support",
+ "subtitle": "Pour une sécurité avancée et un support dédié",
"includesPrefix": "Toutes les fonctionnalités Business +",
"features": [
- "Managed API credits",
- "Cloud sync across devices",
- "Team features & admin",
- "SSO & compliance",
- "Dedicated support"
+ "Crédits API gérés",
+ "Synchronisation cloud entre appareils",
+ "Fonctionnalités d'équipe et administration",
+ "SSO et conformité",
+ "Support dédié"
],
- "cta": "Contact Sales"
+ "cta": "Contacter les ventes"
},
"currentPlan": "Forfait actuel",
"upgrade": "Passer au supérieur",
@@ -1880,7 +1880,9 @@
"calendarEvents": "{{count}} événement trouvé",
"calendarEvents_plural": "{{count}} événements trouvés",
"noResults": "Aucun résultat",
- "error": "Erreur d'outil"
+ "error": "Erreur d'outil",
+ "unknownTool": "Outil inconnu : {{name}}",
+ "invalidArgs": "Arguments d'outil invalides pour {{name}}"
}
},
"integrations": {
diff --git a/src/locales/it/translation.json b/src/locales/it/translation.json
index b4dbf4976..9ba531460 100644
--- a/src/locales/it/translation.json
+++ b/src/locales/it/translation.json
@@ -954,15 +954,15 @@
"period": "per sempre",
"features": [
"## OpenWhispr Cloud",
- "2,000 words/week transcription",
- "5 hours of meeting recordings/month",
- "## Always free",
- "Unlimited local AI models",
- "Unlimited cloud transcription with your own API keys",
- "100+ languages supported",
- "Custom dictionary",
- "Zero data retention",
- "Community support"
+ "2.000 parole/settimana di trascrizione",
+ "5 ore di registrazioni riunioni/mese",
+ "## Sempre gratuito",
+ "Modelli IA locali illimitati",
+ "Trascrizione cloud illimitata con le tue chiavi API",
+ "Oltre 100 lingue supportate",
+ "Dizionario personalizzato",
+ "Nessuna conservazione dei dati",
+ "Supporto della comunità"
]
},
"pro": {
@@ -974,10 +974,10 @@
"annualEquivalent": "$6.67",
"includesPrefix": "Tutte le funzionalità Free +",
"features": [
- "Unlimited cloud transcription",
- "20 hours of meeting recordings/month",
- "Mobile app (iOS Coming Soon)",
- "Email support"
+ "Trascrizione cloud illimitata",
+ "20 ore di registrazioni riunioni/mese",
+ "App mobile (iOS in arrivo)",
+ "Supporto via e-mail"
],
"cta": "Inizia",
"switchToAnnual": "Passa all'annuale"
@@ -992,10 +992,10 @@
"includesPrefix": "Tutte le funzionalità Pro +",
"badge": "Più popolare",
"features": [
- "Unlimited meeting recordings",
- "Agent mode",
- "Chat over your data (Coming Soon)",
- "Priority support"
+ "Registrazioni riunioni illimitate",
+ "Modalità agente",
+ "Chatta con i tuoi dati (in arrivo)",
+ "Supporto prioritario"
],
"cta": "Inizia",
"switchToAnnual": "Passa all'annuale"
@@ -1003,16 +1003,16 @@
"enterprise": {
"name": "Enterprise",
"price": "Personalizzato",
- "subtitle": "For advanced security & support",
+ "subtitle": "Per sicurezza avanzata e supporto dedicato",
"includesPrefix": "Tutte le funzionalità Business +",
"features": [
- "Managed API credits",
- "Cloud sync across devices",
- "Team features & admin",
- "SSO & compliance",
- "Dedicated support"
+ "Crediti API gestiti",
+ "Sincronizzazione cloud tra dispositivi",
+ "Funzionalità di team e amministrazione",
+ "SSO e conformità",
+ "Supporto dedicato"
],
- "cta": "Contact Sales"
+ "cta": "Contatta le vendite"
},
"currentPlan": "Piano attuale",
"upgrade": "Upgrade",
@@ -1880,7 +1880,9 @@
"calendarEvents": "{{count}} evento trovato",
"calendarEvents_plural": "{{count}} eventi trovati",
"noResults": "Nessun risultato",
- "error": "Errore dello strumento"
+ "error": "Errore dello strumento",
+ "unknownTool": "Strumento sconosciuto: {{name}}",
+ "invalidArgs": "Argomenti dello strumento non validi per {{name}}"
}
},
"integrations": {
diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.json
index 42ccb2f20..329367f72 100644
--- a/src/locales/ja/translation.json
+++ b/src/locales/ja/translation.json
@@ -934,15 +934,15 @@
"period": "永久",
"features": [
"## OpenWhispr Cloud",
- "2,000 words/week transcription",
- "5 hours of meeting recordings/month",
- "## Always free",
- "Unlimited local AI models",
- "Unlimited cloud transcription with your own API keys",
- "100+ languages supported",
- "Custom dictionary",
- "Zero data retention",
- "Community support"
+ "週2,000ワードの文字起こし",
+ "月5時間の会議録音",
+ "## 永久無料",
+ "無制限のローカルAIモデル",
+ "独自のAPIキーで無制限のクラウド文字起こし",
+ "100以上の言語に対応",
+ "カスタム辞書",
+ "データ保持なし",
+ "コミュニティサポート"
]
},
"pro": {
@@ -954,10 +954,10 @@
"annualEquivalent": "$6.67",
"includesPrefix": "Free の全機能 +",
"features": [
- "Unlimited cloud transcription",
- "20 hours of meeting recordings/month",
- "Mobile app (iOS Coming Soon)",
- "Email support"
+ "無制限のクラウド文字起こし",
+ "月20時間の会議録音",
+ "モバイルアプリ(iOS 近日公開)",
+ "メールサポート"
],
"cta": "始める",
"switchToAnnual": "年払いに切り替え"
@@ -972,10 +972,10 @@
"includesPrefix": "Pro の全機能 +",
"badge": "一番人気",
"features": [
- "Unlimited meeting recordings",
- "Agent mode",
- "Chat over your data (Coming Soon)",
- "Priority support"
+ "無制限の会議録音",
+ "エージェントモード",
+ "データとチャット(近日公開)",
+ "優先サポート"
],
"cta": "始める",
"switchToAnnual": "年払いに切り替え"
@@ -983,16 +983,16 @@
"enterprise": {
"name": "Enterprise",
"price": "カスタム",
- "subtitle": "For advanced security & support",
+ "subtitle": "高度なセキュリティとサポート向け",
"includesPrefix": "Business の全機能 +",
"features": [
- "Managed API credits",
- "Cloud sync across devices",
- "Team features & admin",
- "SSO & compliance",
- "Dedicated support"
+ "管理されたAPIクレジット",
+ "デバイス間のクラウド同期",
+ "チーム機能と管理",
+ "SSO とコンプライアンス",
+ "専任サポート"
],
- "cta": "Contact Sales"
+ "cta": "営業に問い合わせる"
},
"currentPlan": "現在のプラン",
"upgrade": "アップグレード",
@@ -1880,7 +1880,9 @@
"calendarEvents": "{{count}}件の予定が見つかりました",
"calendarEvents_plural": "{{count}}件の予定が見つかりました",
"noResults": "結果が見つかりません",
- "error": "ツールエラー"
+ "error": "ツールエラー",
+ "unknownTool": "不明なツール: {{name}}",
+ "invalidArgs": "{{name}} のツール引数が無効です"
}
},
"integrations": {
diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.json
index ef4c8129c..e7d9f0598 100644
--- a/src/locales/pt/translation.json
+++ b/src/locales/pt/translation.json
@@ -926,15 +926,15 @@
"period": "para sempre",
"features": [
"## OpenWhispr Cloud",
- "2,000 words/week transcription",
- "5 hours of meeting recordings/month",
- "## Always free",
- "Unlimited local AI models",
- "Unlimited cloud transcription with your own API keys",
- "100+ languages supported",
- "Custom dictionary",
- "Zero data retention",
- "Community support"
+ "2.000 palavras/semana de transcrição",
+ "5 horas de gravação de reuniões/mês",
+ "## Sempre gratuito",
+ "Modelos de IA locais ilimitados",
+ "Transcrição na nuvem ilimitada com suas próprias chaves de API",
+ "Mais de 100 idiomas suportados",
+ "Dicionário personalizado",
+ "Zero retenção de dados",
+ "Suporte da comunidade"
]
},
"pro": {
@@ -946,10 +946,10 @@
"annualEquivalent": "$6.67",
"includesPrefix": "Todos os recursos do Free +",
"features": [
- "Unlimited cloud transcription",
- "20 hours of meeting recordings/month",
- "Mobile app (iOS Coming Soon)",
- "Email support"
+ "Transcrição na nuvem ilimitada",
+ "20 horas de gravação de reuniões/mês",
+ "Aplicativo móvel (iOS em breve)",
+ "Suporte por e-mail"
],
"cta": "Começar",
"switchToAnnual": "Mudar para anual"
@@ -964,10 +964,10 @@
"includesPrefix": "Todos os recursos do Pro +",
"badge": "Mais popular",
"features": [
- "Unlimited meeting recordings",
- "Agent mode",
- "Chat over your data (Coming Soon)",
- "Priority support"
+ "Gravações de reuniões ilimitadas",
+ "Modo agente",
+ "Converse com seus dados (em breve)",
+ "Suporte prioritário"
],
"cta": "Começar",
"switchToAnnual": "Mudar para anual"
@@ -975,16 +975,16 @@
"enterprise": {
"name": "Enterprise",
"price": "Personalizado",
- "subtitle": "For advanced security & support",
+ "subtitle": "Para segurança avançada e suporte",
"includesPrefix": "Todos os recursos do Business +",
"features": [
- "Managed API credits",
- "Cloud sync across devices",
- "Team features & admin",
- "SSO & compliance",
- "Dedicated support"
+ "Créditos de API gerenciados",
+ "Sincronização na nuvem entre dispositivos",
+ "Recursos de equipe e administração",
+ "SSO e conformidade",
+ "Suporte dedicado"
],
- "cta": "Contact Sales"
+ "cta": "Falar com Vendas"
},
"currentPlan": "Plano atual",
"upgrade": "Fazer upgrade",
@@ -1880,7 +1880,9 @@
"calendarEvents": "{{count}} evento encontrado",
"calendarEvents_plural": "{{count}} eventos encontrados",
"noResults": "Nenhum resultado",
- "error": "Erro de ferramenta"
+ "error": "Erro de ferramenta",
+ "unknownTool": "Ferramenta desconhecida: {{name}}",
+ "invalidArgs": "Argumentos de ferramenta inválidos para {{name}}"
}
},
"integrations": {
diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.json
index 939f32db9..e1434249c 100644
--- a/src/locales/ru/translation.json
+++ b/src/locales/ru/translation.json
@@ -954,15 +954,15 @@
"period": "навсегда",
"features": [
"## OpenWhispr Cloud",
- "2,000 words/week transcription",
- "5 hours of meeting recordings/month",
- "## Always free",
- "Unlimited local AI models",
- "Unlimited cloud transcription with your own API keys",
- "100+ languages supported",
- "Custom dictionary",
- "Zero data retention",
- "Community support"
+ "2 000 слов/неделю транскрипции",
+ "5 часов записи встреч/месяц",
+ "## Всегда бесплатно",
+ "Безлимитные локальные модели ИИ",
+ "Безлимитная облачная транскрипция с вашими ключами API",
+ "Поддержка более 100 языков",
+ "Пользовательский словарь",
+ "Нулевое хранение данных",
+ "Поддержка сообщества"
]
},
"pro": {
@@ -974,10 +974,10 @@
"annualEquivalent": "$6.67",
"includesPrefix": "Все функции Free +",
"features": [
- "Unlimited cloud transcription",
- "20 hours of meeting recordings/month",
- "Mobile app (iOS Coming Soon)",
- "Email support"
+ "Безлимитная облачная транскрипция",
+ "20 часов записи встреч/месяц",
+ "Мобильное приложение (iOS скоро)",
+ "Поддержка по электронной почте"
],
"cta": "Начать",
"switchToAnnual": "Перейти на годовой"
@@ -992,10 +992,10 @@
"includesPrefix": "Все функции Pro +",
"badge": "Самый популярный",
"features": [
- "Unlimited meeting recordings",
- "Agent mode",
- "Chat over your data (Coming Soon)",
- "Priority support"
+ "Безлимитные записи встреч",
+ "Режим агента",
+ "Чат с вашими данными (скоро)",
+ "Приоритетная поддержка"
],
"cta": "Начать",
"switchToAnnual": "Перейти на годовой"
@@ -1003,16 +1003,16 @@
"enterprise": {
"name": "Enterprise",
"price": "Индивидуально",
- "subtitle": "For advanced security & support",
+ "subtitle": "Для расширенной безопасности и поддержки",
"includesPrefix": "Все функции Business +",
"features": [
- "Managed API credits",
- "Cloud sync across devices",
- "Team features & admin",
- "SSO & compliance",
- "Dedicated support"
+ "Управляемые кредиты API",
+ "Облачная синхронизация между устройствами",
+ "Командные функции и администрирование",
+ "SSO и соответствие требованиям",
+ "Выделенная поддержка"
],
- "cta": "Contact Sales"
+ "cta": "Связаться с отделом продаж"
},
"currentPlan": "Текущий тариф",
"upgrade": "Улучшить план",
@@ -1880,7 +1880,9 @@
"calendarEvents": "Найдено {{count}} событие",
"calendarEvents_plural": "Найдено {{count}} событий",
"noResults": "Ничего не найдено",
- "error": "Ошибка инструмента"
+ "error": "Ошибка инструмента",
+ "unknownTool": "Неизвестный инструмент: {{name}}",
+ "invalidArgs": "Недопустимые аргументы инструмента для {{name}}"
}
},
"integrations": {
diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.json
index d8699776c..b63d3b615 100644
--- a/src/locales/zh-CN/translation.json
+++ b/src/locales/zh-CN/translation.json
@@ -954,15 +954,15 @@
"period": "永久",
"features": [
"## OpenWhispr Cloud",
- "2,000 words/week transcription",
- "5 hours of meeting recordings/month",
- "## Always free",
- "Unlimited local AI models",
- "Unlimited cloud transcription with your own API keys",
- "100+ languages supported",
- "Custom dictionary",
- "Zero data retention",
- "Community support"
+ "每周 2,000 字转录",
+ "每月 5 小时会议录制",
+ "## 永久免费",
+ "无限本地 AI 模型",
+ "使用自己的 API 密钥无限云端转录",
+ "支持 100+ 种语言",
+ "自定义词典",
+ "零数据留存",
+ "社区支持"
]
},
"pro": {
@@ -974,10 +974,10 @@
"annualEquivalent": "$6.67",
"includesPrefix": "所有 Free 功能 +",
"features": [
- "Unlimited cloud transcription",
- "20 hours of meeting recordings/month",
- "Mobile app (iOS Coming Soon)",
- "Email support"
+ "无限云端转录",
+ "每月 20 小时会议录制",
+ "移动应用(iOS 即将推出)",
+ "邮件支持"
],
"cta": "开始使用",
"switchToAnnual": "切换为年付"
@@ -991,28 +991,23 @@
"annualEquivalent": "$16.67",
"includesPrefix": "所有 Pro 功能 +",
"badge": "最受欢迎",
- "features": [
- "Unlimited meeting recordings",
- "Agent mode",
- "Chat over your data (Coming Soon)",
- "Priority support"
- ],
+ "features": ["无限会议录制", "代理模式", "与您的数据对话(即将推出)", "优先支持"],
"cta": "开始使用",
"switchToAnnual": "切换为年付"
},
"enterprise": {
"name": "Enterprise",
"price": "自定义",
- "subtitle": "For advanced security & support",
+ "subtitle": "提供高级安全保障与支持",
"includesPrefix": "所有 Business 功能 +",
"features": [
- "Managed API credits",
- "Cloud sync across devices",
- "Team features & admin",
- "SSO & compliance",
- "Dedicated support"
+ "托管 API 额度",
+ "跨设备云端同步",
+ "团队功能与管理",
+ "SSO 与合规",
+ "专属支持"
],
- "cta": "Contact Sales"
+ "cta": "联系销售"
},
"currentPlan": "当前套餐",
"upgrade": "升级",
@@ -1880,7 +1875,9 @@
"calendarEvents": "找到 {{count}} 个日程",
"calendarEvents_plural": "找到 {{count}} 个日程",
"noResults": "未找到结果",
- "error": "工具错误"
+ "error": "工具错误",
+ "unknownTool": "未知工具:{{name}}",
+ "invalidArgs": "{{name}} 的工具参数无效"
}
},
"integrations": {
diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.json
index 2d4c1bef9..15633b647 100644
--- a/src/locales/zh-TW/translation.json
+++ b/src/locales/zh-TW/translation.json
@@ -954,15 +954,15 @@
"period": "永久",
"features": [
"## OpenWhispr Cloud",
- "2,000 words/week transcription",
- "5 hours of meeting recordings/month",
- "## Always free",
- "Unlimited local AI models",
- "Unlimited cloud transcription with your own API keys",
- "100+ languages supported",
- "Custom dictionary",
- "Zero data retention",
- "Community support"
+ "每週 2,000 字轉錄",
+ "每月 5 小時會議錄製",
+ "## 永久免費",
+ "無限本地 AI 模型",
+ "使用自己的 API 金鑰無限雲端轉錄",
+ "支援 100+ 種語言",
+ "自訂詞典",
+ "零資料留存",
+ "社群支援"
]
},
"pro": {
@@ -974,10 +974,10 @@
"annualEquivalent": "$6.67",
"includesPrefix": "所有 Free 功能 +",
"features": [
- "Unlimited cloud transcription",
- "20 hours of meeting recordings/month",
- "Mobile app (iOS Coming Soon)",
- "Email support"
+ "無限雲端轉錄",
+ "每月 20 小時會議錄製",
+ "行動應用程式(iOS 即將推出)",
+ "電子郵件支援"
],
"cta": "開始使用",
"switchToAnnual": "切換為年付"
@@ -991,28 +991,23 @@
"annualEquivalent": "$16.67",
"includesPrefix": "所有 Pro 功能 +",
"badge": "最熱門",
- "features": [
- "Unlimited meeting recordings",
- "Agent mode",
- "Chat over your data (Coming Soon)",
- "Priority support"
- ],
+ "features": ["無限會議錄製", "代理模式", "與您的資料對話(即將推出)", "優先支援"],
"cta": "開始使用",
"switchToAnnual": "切換為年付"
},
"enterprise": {
"name": "Enterprise",
"price": "自訂",
- "subtitle": "For advanced security & support",
+ "subtitle": "提供進階安全保障與支援",
"includesPrefix": "所有 Business 功能 +",
"features": [
- "Managed API credits",
- "Cloud sync across devices",
- "Team features & admin",
- "SSO & compliance",
- "Dedicated support"
+ "託管 API 額度",
+ "跨裝置雲端同步",
+ "團隊功能與管理",
+ "SSO 與合規",
+ "專屬支援"
],
- "cta": "Contact Sales"
+ "cta": "聯繫銷售"
},
"currentPlan": "目前方案",
"upgrade": "升級",
@@ -1880,7 +1875,9 @@
"calendarEvents": "找到 {{count}} 個行程",
"calendarEvents_plural": "找到 {{count}} 個行程",
"noResults": "未找到結果",
- "error": "工具錯誤"
+ "error": "工具錯誤",
+ "unknownTool": "未知工具:{{name}}",
+ "invalidArgs": "{{name}} 的工具參數無效"
}
},
"integrations": {
diff --git a/src/services/ReasoningService.ts b/src/services/ReasoningService.ts
index e4fa50a0f..317846630 100644
--- a/src/services/ReasoningService.ts
+++ b/src/services/ReasoningService.ts
@@ -28,6 +28,7 @@ class ReasoningService extends BaseReasoningService {
private static readonly OPENAI_ENDPOINT_PREF_STORAGE_KEY = "openAiEndpointPreference";
private static readonly MAX_TOOL_STEPS = 20;
private cacheCleanupStop: (() => void) | undefined;
+ private streamAbortController: AbortController | null = null;
constructor() {
super();
@@ -731,48 +732,57 @@ class ReasoningService extends BaseReasoningService {
agentName: string | null = null,
config: ReasoningConfig = {}
): Promise<string> {
+ if (this.isProcessing) {
+ throw new Error("Already processing a request");
+ }
+
logger.logReasoning("ANTHROPIC_START", {
model,
agentName,
environment: typeof window !== "undefined" ? "browser" : "node",
});
- if (typeof window !== "undefined" && window.electronAPI) {
- const startTime = Date.now();
+ this.isProcessing = true;
+ try {
+ if (typeof window !== "undefined" && window.electronAPI) {
+ const startTime = Date.now();
- logger.logReasoning("ANTHROPIC_IPC_CALL", {
- model,
- textLength: text.length,
- });
+ logger.logReasoning("ANTHROPIC_IPC_CALL", {
+ model,
+ textLength: text.length,
+ });
- const systemPrompt = config.systemPrompt || this.getSystemPrompt(agentName, text);
- const result = await window.electronAPI.processAnthropicReasoning(text, model, agentName, {
- ...config,
- systemPrompt,
- });
+ const systemPrompt = config.systemPrompt || this.getSystemPrompt(agentName, text);
+ const result = await window.electronAPI.processAnthropicReasoning(text, model, agentName, {
+ ...config,
+ systemPrompt,
+ });
- const processingTime = Date.now() - startTime;
+ const processingTime = Date.now() - startTime;
- if (result.success) {
- logger.logReasoning("ANTHROPIC_SUCCESS", {
- model,
- processingTimeMs: processingTime,
- resultLength: result.text.length,
- });
- return result.text;
+ if (result.success) {
+ logger.logReasoning("ANTHROPIC_SUCCESS", {
+ model,
+ processingTimeMs: processingTime,
+ resultLength: result.text.length,
+ });
+ return result.text;
+ } else {
+ logger.logReasoning("ANTHROPIC_ERROR", {
+ model,
+ processingTimeMs: processingTime,
+ error: result.error,
+ });
+ throw new Error(result.error);
+ }
} else {
- logger.logReasoning("ANTHROPIC_ERROR", {
- model,
- processingTimeMs: processingTime,
- error: result.error,
+ logger.logReasoning("ANTHROPIC_UNAVAILABLE", {
+ reason: "Not in Electron environment",
});
- throw new Error(result.error);
+ throw new Error("Anthropic reasoning is not available in this environment");
}
- } else {
- logger.logReasoning("ANTHROPIC_UNAVAILABLE", {
- reason: "Not in Electron environment",
- });
- throw new Error("Anthropic reasoning is not available in this environment");
+ } finally {
+ this.isProcessing = false;
}
}
@@ -782,48 +792,57 @@ class ReasoningService extends BaseReasoningService {
agentName: string | null = null,
config: ReasoningConfig = {}
): Promise<string> {
+ if (this.isProcessing) {
+ throw new Error("Already processing a request");
+ }
+
logger.logReasoning("LOCAL_START", {
model,
agentName,
environment: typeof window !== "undefined" ? "browser" : "node",
});
- if (typeof window !== "undefined" && window.electronAPI) {
- const startTime = Date.now();
+ this.isProcessing = true;
+ try {
+ if (typeof window !== "undefined" && window.electronAPI) {
+ const startTime = Date.now();
- logger.logReasoning("LOCAL_IPC_CALL", {
- model,
- textLength: text.length,
- });
+ logger.logReasoning("LOCAL_IPC_CALL", {
+ model,
+ textLength: text.length,
+ });
- const systemPrompt = config.systemPrompt || this.getSystemPrompt(agentName, text);
- const result = await window.electronAPI.processLocalReasoning(text, model, agentName, {
- ...config,
- systemPrompt,
- });
+ const systemPrompt = config.systemPrompt || this.getSystemPrompt(agentName, text);
+ const result = await window.electronAPI.processLocalReasoning(text, model, agentName, {
+ ...config,
+ systemPrompt,
+ });
- const processingTime = Date.now() - startTime;
+ const processingTime = Date.now() - startTime;
- if (result.success) {
- logger.logReasoning("LOCAL_SUCCESS", {
- model,
- processingTimeMs: processingTime,
- resultLength: result.text.length,
- });
- return result.text;
+ if (result.success) {
+ logger.logReasoning("LOCAL_SUCCESS", {
+ model,
+ processingTimeMs: processingTime,
+ resultLength: result.text.length,
+ });
+ return result.text;
+ } else {
+ logger.logReasoning("LOCAL_ERROR", {
+ model,
+ processingTimeMs: processingTime,
+ error: result.error,
+ });
+ throw new Error(result.error);
+ }
} else {
- logger.logReasoning("LOCAL_ERROR", {
- model,
- processingTimeMs: processingTime,
- error: result.error,
+ logger.logReasoning("LOCAL_UNAVAILABLE", {
+ reason: "Not in Electron environment",
});
- throw new Error(result.error);
+ throw new Error("Local reasoning is not available in this environment");
}
- } else {
- logger.logReasoning("LOCAL_UNAVAILABLE", {
- reason: "Not in Electron environment",
- });
- throw new Error("Local reasoning is not available in this environment");
+ } finally {
+ this.isProcessing = false;
}
}
@@ -1192,11 +1211,25 @@ class ReasoningService extends BaseReasoningService {
headers["Authorization"] = `Bearer ${apiKey}`;
}
- const response = await fetch(endpoint, {
- method: "POST",
- headers,
- body: JSON.stringify(requestBody),
- });
+ this.streamAbortController = new AbortController();
+ const controller = this.streamAbortController;
+ const timeoutId = setTimeout(() => controller.abort(), 60000);
+
+ let response: Response;
+ try {
+ response = await fetch(endpoint, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(requestBody),
+ signal: controller.signal,
+ });
+ } catch (error) {
+ clearTimeout(timeoutId);
+ if ((error as Error).name === "AbortError") {
+ throw new Error("Streaming request timed out");
+ }
+ throw error;
+ }
if (!response.ok) {
const errorText = await response.text();
@@ -1276,6 +1309,8 @@ class ReasoningService extends BaseReasoningService {
}
}
} finally {
+ clearTimeout(timeoutId);
+ this.streamAbortController = null;
reader.releaseLock();
}
}
@@ -1361,7 +1396,8 @@ class ReasoningService extends BaseReasoningService {
}
cancelActiveStream(): void {
- // No-op — event-based stream cleanup is handled by listener removal
+ this.streamAbortController?.abort();
+ this.streamAbortController = null;
}
private streamFromIPC(
diff --git a/src/services/tools/calendarTool.ts b/src/services/tools/calendarTool.ts
index 56a665748..ed45ed116 100644
--- a/src/services/tools/calendarTool.ts
+++ b/src/services/tools/calendarTool.ts
@@ -4,10 +4,16 @@ type TimeRange = "today" | "tomorrow" | "week";
function getWindowMinutes(timeRange: TimeRange): number {
if (timeRange === "week") return 10080;
- if (timeRange === "tomorrow") return 2880;
- // "today": remaining minutes until midnight
const now = new Date();
+ if (timeRange === "tomorrow") {
+ const endOfTomorrow = new Date(now);
+ endOfTomorrow.setDate(endOfTomorrow.getDate() + 1);
+ endOfTomorrow.setHours(23, 59, 59, 999);
+ return Math.ceil((endOfTomorrow.getTime() - now.getTime()) / 60000);
+ }
+
+ // "today": remaining minutes until midnight
const midnight = new Date(now);
midnight.setHours(23, 59, 59, 999);
return Math.max(1, Math.ceil((midnight.getTime() - now.getTime()) / 60000));