Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more
fix: address pr review feedback
altic-devf55d26e59bce
diff --git a/Sources/Fluid/ContentView.swift b/Sources/Fluid/ContentView.swiftindex c2bae139..eece55f6 100644--- a/Sources/Fluid/ContentView.swift+++ b/Sources/Fluid/ContentView.swift@@ -2619,6 +2619,9 @@ struct ContentView: View {Task {await self.asr.start()+ if !self.asr.isRunning {+ self.menuBarManager.hideRecordingOverlayImmediately(reason: "asr_start_failed")+ }}// Pre-load model in background while recording (avoids 10s freeze on stop)@@ -3211,6 +3214,9 @@ extension ContentView {let asrStartStartedAt = ProcessInfo.processInfo.systemUptimeDebugLogger.shared.benchmark("APP_BENCH", message: "asr_start_call", source: "AppBenchmark")await self.asr.start()+ if !self.asr.isRunning {+ self.menuBarManager.hideRecordingOverlayImmediately(reason: "asr_start_failed")+ }DebugLogger.shared.benchmark("APP_BENCH",message: "asr_start_return elapsedMs=\(Int(((ProcessInfo.processInfo.systemUptime - asrStartStartedAt) * 1000).rounded()))",diff --git a/Sources/Fluid/Persistence/SettingsStore.swift b/Sources/Fluid/Persistence/SettingsStore.swiftindex 782ed35c..fde59d82 100644--- a/Sources/Fluid/Persistence/SettingsStore.swift+++ b/Sources/Fluid/Persistence/SettingsStore.swift@@ -2971,7 +2971,13 @@ final class SettingsStore: ObservableObject {if PrivateFeatures.privateAIProvider {providerIDs.append(PrivateAIProviderFeature.shared.providerID)}- return providerIDs.filter { self.isVerifiedProviderForCurrentConfiguration($0) }++ var seenProviderKeys = Set<String>()+ return providerIDs.filter { providerID in+ let key = self.canonicalProviderKey(for: providerID)+ guard !key.isEmpty, seenProviderKeys.insert(key).inserted else { return false }+ return self.isVerifiedProviderForCurrentConfiguration(providerID)+ }}private func isVerifiedProviderForCurrentConfiguration(_ providerID: String) -> Bool {diff --git a/Sources/Fluid/Services/DictationAIPostProcessingGate.swift b/Sources/Fluid/Services/DictationAIPostProcessingGate.swiftindex f83fb3a7..0dd5ea2f 100644--- a/Sources/Fluid/Services/DictationAIPostProcessingGate.swift+++ b/Sources/Fluid/Services/DictationAIPostProcessingGate.swift@@ -13,9 +13,6 @@ enum DictationAIPostProcessingGate {static func isConfigured(for slot: SettingsStore.DictationShortcutSlot, appBundleID: String? = nil) -> Bool {let settings = SettingsStore.sharedguard settings.dictationPromptSelection(for: slot) != .off else { return false }- if PrivateAIProviderPromptFormat.isAvailable(settings: settings) {- return self.isPrivateProviderConfigured(settings: settings)- }if let appBundleID,settings.promptRoutingScope(for: .dictate) == .selectedAppsOnly,!settings.hasAppPromptBinding(for: .dictate, appBundleID: appBundleID)@@ -23,6 +20,10 @@ enum DictationAIPostProcessingGate {return false}+ if PrivateAIProviderPromptFormat.isAvailable(settings: settings) {+ return self.isPrivateProviderConfigured(settings: settings)+ }+return self.isProviderConfigured()}diff --git a/Sources/Fluid/Services/MenuBarManager.swift b/Sources/Fluid/Services/MenuBarManager.swiftindex 65fb7fa0..795a6d8c 100644--- a/Sources/Fluid/Services/MenuBarManager.swift+++ b/Sources/Fluid/Services/MenuBarManager.swift@@ -254,6 +254,37 @@ final class MenuBarManager: NSObject, ObservableObject, NSMenuDelegate {self.overlayBench("show_workitem_return mode=\(self.currentOverlayMode.rawValue)")}+ func hideRecordingOverlayImmediately(reason: String) {+ self.pendingShowOperation?.cancel()+ self.pendingShowOperation = nil+ self.pendingHideOperation?.cancel()+ self.pendingHideOperation = nil++ guard !self.isProcessingActive else {+ self.overlayBench("instant_hide_return reason=\(reason) processing_active")+ return+ }++ guard self.overlayVisible else {+ self.overlayBench("instant_hide_return reason=\(reason) already_hidden")+ return+ }++ self.overlayVisible = false+ self.overlayBench("instant_hide_request reason=\(reason)")++ if NotchOverlayManager.shared.isCommandOutputExpanded {+ NotchContentState.shared.setRecordingInExpandedMode(false)+ self.expandedModeAudioSubscription?.cancel()+ self.expandedModeAudioSubscription = nil+ self.overlayBench("instant_hide_return reason=expanded_command_output")+ return+ }++ NotchOverlayManager.shared.hide()+ self.overlayBench("instant_hide_return")+ }+// MARK: - Public API for overlay managementfunc updateOverlayTranscription(_ text: String) {