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
Honor "Send Custom Prompt Only" for dictation-shortcut prompt overrides
Martin May1b11407383b5
diff --git a/Sources/Fluid/ContentView.swift b/Sources/Fluid/ContentView.swiftindex 7eda4157..1ceed2cf 100644--- a/Sources/Fluid/ContentView.swift+++ b/Sources/Fluid/ContentView.swift@@ -3877,10 +3877,7 @@ extension ContentView {return}- self.promptModeOverrideText = SettingsStore.combineBasePrompt(- for: .dictate,- with: SettingsStore.stripBasePrompt(for: .dictate, from: profile.prompt)- )+ self.promptModeOverrideText = settings.shortcutOverrideSystemPrompt(for: profile, mode: .dictate)NotchContentState.shared.promptModeOverrideProfileName = profile.nameNotchContentState.shared.promptModeOverrideProfileID = profile.id}diff --git a/Sources/Fluid/Persistence/SettingsStore.swift b/Sources/Fluid/Persistence/SettingsStore.swiftindex 901acb8a..edf17b9b 100644--- a/Sources/Fluid/Persistence/SettingsStore.swift+++ b/Sources/Fluid/Persistence/SettingsStore.swift@@ -1333,6 +1333,15 @@ final class SettingsStore: ObservableObject {return Self.combineBasePrompt(for: normalizedMode, with: trimmedBody)}+ /// System prompt for a dictation-shortcut prompt override, honoring+ /// "Send Custom Prompt Only" the same way the effective-prompt paths do.+ func shortcutOverrideSystemPrompt(for profile: DictationPromptProfile, mode: PromptMode = .dictate) -> String {+ self.systemPrompt(+ forCustomProfileBody: Self.stripBasePrompt(for: mode, from: profile.prompt),+ mode: mode+ )+ }+// MARK: - Model Reasoning Configuration/// Configuration for model-specific reasoning/thinking parametersdiff --git a/Tests/FluidDictationIntegrationTests/LLMClientRequestBodyTests.swift b/Tests/FluidDictationIntegrationTests/LLMClientRequestBodyTests.swiftindex c5cdc12d..f55280e4 100644--- a/Tests/FluidDictationIntegrationTests/LLMClientRequestBodyTests.swift+++ b/Tests/FluidDictationIntegrationTests/LLMClientRequestBodyTests.swift@@ -158,6 +158,32 @@ final class LLMClientRequestBodyTests: XCTestCase {}}+ func testCustomPromptOnly_shortcutProfileOverrideOmitsBasePrompt() {+ self.withPromptSettingsRestored {+ let settings = SettingsStore.shared+ self.resetPromptSettings(settings)++ let profile = SettingsStore.DictationPromptProfile(+ name: "Cleaner",+ prompt: "Normalize the transcript. Output only the cleaned text.",+ mode: .dictate+ )+ settings.dictationPromptProfiles = [profile]+ settings.sendCustomPromptOnly = true++ XCTAssertEqual(+ settings.shortcutOverrideSystemPrompt(for: profile),+ profile.prompt+ )++ settings.sendCustomPromptOnly = false+ XCTAssertEqual(+ settings.shortcutOverrideSystemPrompt(for: profile),+ SettingsStore.combineBasePrompt(for: .dictate, with: profile.prompt)+ )+ }+ }+private static let basePromptMarker = "You are a voice-to-text dictation cleaner"private func resetPromptSettings(_ settings: SettingsStore) {