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(overlay): keep visible during AI processing
altic-dev2452951ee05e
diff --git a/Sources/Fluid/Services/MenuBarManager.swift b/Sources/Fluid/Services/MenuBarManager.swiftindex 08bef577..4513989b 100644--- a/Sources/Fluid/Services/MenuBarManager.swift+++ b/Sources/Fluid/Services/MenuBarManager.swift@@ -25,6 +25,11 @@ final class MenuBarManager: ObservableObject {// Overlay management (persistent, independent of window lifecycle)private var overlayVisible: Bool = false+ // Track when AI processing is active.+ // When recording stops, ASRService flips `isRunning` to false, which would normally hide the+ // overlay. During post-processing we want the overlay to stay visible until processing ends.+ private var isProcessingActive: Bool = false+@Published var isRecording: Bool = false@Published var aiProcessingEnabled: Bool = false@@ -102,6 +107,13 @@ final class MenuBarManager: ObservableObject {}private func handleOverlayState(isRunning: Bool, asrService: ASRService) {+ // Don't hide the overlay while AI processing is active.+ // Without this, the notch can disappear during the short "Refining..." phase because+ // `isRunning` becomes false before post-processing completes.+ if !isRunning, self.isProcessingActive {+ return+ }+// Prevent rapid state changes that could cause cyclesguard self.overlayVisible != isRunning else { return }@@ -205,6 +217,9 @@ final class MenuBarManager: ObservableObject {}func setProcessing(_ processing: Bool) {+ // Track processing state to prevent hide during AI refinement+ self.isProcessingActive = processing+if processing {// Cancel any pending hide - we want to keep the overlay visible for AI processingself.pendingHideOperation?.cancel()