Skip to content

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

fix(reasoning): require explicit name invocation to route to voice agent (#808)

Gabriel Steinbc44a95af111
diff --git a/src/helpers/audioManager.js b/src/helpers/audioManager.js
index df7862c9c..0d0bb3c02 100644
--- a/src/helpers/audioManager.js
+++ b/src/helpers/audioManager.js
@@ -26,7 +26,7 @@ function resolveReasoningRoute(text, settings, agentName) {
if (!cleanupReachable && !agentReachable) return { kind: "skip" };
const invoked = !!agentName && detectAgentName(text, agentName);
- if (agentReachable && (!cleanupReachable || invoked)) {
+ if (agentReachable && invoked) {
const provider = settings.dictationAgentProvider?.trim() || undefined;
const isSelfHostedAgent =
settings.dictationAgentMode === "self-hosted" && !!settings.dictationAgentRemoteUrl;
@@ -51,7 +51,8 @@ function resolveReasoningRoute(text, settings, agentName) {
},
};
}
- return { kind: "cleanup" };
+ if (cleanupReachable) return { kind: "cleanup" };
+ return { kind: "skip" };
}
const PLACEHOLDER_KEYS = {