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 Codex review — prompt override correctness and leak prevention
Bezhan0f16730fb3dd
diff --git a/Sources/Fluid/ContentView.swift b/Sources/Fluid/ContentView.swiftindex 3c36648c..542a11a1 100644--- a/Sources/Fluid/ContentView.swift+++ b/Sources/Fluid/ContentView.swift@@ -2155,6 +2155,8 @@ struct ContentView: View {}private func clearActiveRecordingMode() {+ self.promptModeOverrideText = nil+ NotchContentState.shared.promptModeOverrideProfileName = nilself.setActiveRecordingMode(.none)}@@ -2566,12 +2568,13 @@ struct ContentView: View {DebugLogger.shared.info("Prompt mode triggered", source: "ContentView")self.captureRecordingContext()- // Resolve the prompt text from the selected profile+ // Resolve the full system prompt for the selected profilelet settings = SettingsStore.sharedif let promptID = settings.promptModeSelectedPromptID,let profile = settings.dictationPromptProfiles.first(where: { $0.id == promptID }){- self.promptModeOverrideText = profile.prompt+ let body = SettingsStore.stripBasePrompt(for: .dictate, from: profile.prompt)+ self.promptModeOverrideText = SettingsStore.combineBasePrompt(for: .dictate, with: body)NotchContentState.shared.promptModeOverrideProfileName = profile.name}