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
refactor(dictation): name the stop-time label after the snapshot
altic-dev22343f488c0d
diff --git a/Sources/Fluid/ContentView.swift b/Sources/Fluid/ContentView.swiftindex 9cf47994..84b30f0f 100644--- a/Sources/Fluid/ContentView.swift+++ b/Sources/Fluid/ContentView.swift@@ -2252,8 +2252,8 @@ struct ContentView: View {)if !useOriginal { DictationAppSession.shared.activate(target?.bundleIdentifier) }let label = self.settings.dictationOverlayLabel(for: slot, appBundleID: info.bundleId)- if NotchContentState.shared.frozenDictationLabel != label {- NotchContentState.shared.frozenDictationLabel = label+ if NotchContentState.shared.stopSnapshotLabel != label {+ NotchContentState.shared.stopSnapshotLabel = label}return .capture(target: target,@@ -2743,7 +2743,7 @@ struct ContentView: View {defer { closeTrace.finish() }let lifecycle = self.overlayLifecycleIDdefer {- if self.overlayLifecycleID == lifecycle { NotchContentState.shared.frozenDictationLabel = nil }+ if self.overlayLifecycleID == lifecycle { NotchContentState.shared.stopSnapshotLabel = nil }}let pipelineID = UUID().uuidStringawait DebugLogger.$pipelineID.withValue(pipelineID) {@@ -3079,7 +3079,7 @@ struct ContentView: View {var didTypeExternally = falsevar didFailTextDelivery = false- self.appBench("typing_decision frozenTarget=\(stopSnapshot != nil) external=\(shouldTypeExternally)")+ self.appBench("typing_decision snapshotTarget=\(stopSnapshot != nil) external=\(shouldTypeExternally)")// A sidebar search field that was already focused when recording began gets// the text through its field editor, which also fires change notifications.@@ -4883,7 +4883,7 @@ extension ContentView {private func applyDictationShortcutSelectionContext(for slot: SettingsStore.DictationShortcutSlot) {let settings = SettingsStore.shared- NotchContentState.shared.frozenDictationLabel = nil+ NotchContentState.shared.stopSnapshotLabel = nilself.activeDictationShortcutSlot = slotNotchContentState.shared.activeDictationShortcutSlot = slotNotchContentState.shared.isPromptModeActive = (slot == .secondary)diff --git a/Sources/Fluid/Views/BottomOverlayView.swift b/Sources/Fluid/Views/BottomOverlayView.swiftindex a859f672..0e3f08b7 100644--- a/Sources/Fluid/Views/BottomOverlayView.swift+++ b/Sources/Fluid/Views/BottomOverlayView.swift@@ -2584,7 +2584,7 @@ struct BottomOverlayView: View {private var selectedPromptLabel: String {guard let activePromptMode else { return "N/A" }if activePromptMode.normalized == .dictate {- if let label = self.contentState.frozenDictationLabel { return label }+ if let label = self.contentState.stopSnapshotLabel { return label }return self.settings.dictationOverlayLabel(for: self.activeDictationShortcutSlot,appBundleID: self.promptResolutionBundleIDdiff --git a/Sources/Fluid/Views/NotchContentViews.swift b/Sources/Fluid/Views/NotchContentViews.swiftindex 55723cb6..0d1ddc3e 100644--- a/Sources/Fluid/Views/NotchContentViews.swift+++ b/Sources/Fluid/Views/NotchContentViews.swift@@ -111,7 +111,7 @@ class NotchContentState: ObservableObject {private(set) var textDeliveryFailureTranscript: String = ""private(set) var textDeliveryFailure: TextDeliveryFailure?@Published var activeDictationShortcutSlot: SettingsStore.DictationShortcutSlot? = nil- @Published var frozenDictationLabel: String?+ @Published var stopSnapshotLabel: String?@Published var promptModeOverrideProfileName: String? = nil // Name shown in overlay when prompt mode hotkey is active@Published var promptModeOverrideProfileID: String? = nil // ID of the active override profile (for checkmark in menu)@Published var isPromptModeActive: Bool = false // True for the entire prompt-mode session, even when no profile is selected@@ -638,7 +638,7 @@ struct NotchExpandedView: View {private var selectedPromptLabel: String {guard let activePromptMode else { return "N/A" }if activePromptMode.normalized == .dictate {- if let label = self.contentState.frozenDictationLabel { return label }+ if let label = self.contentState.stopSnapshotLabel { return label }return self.settings.dictationOverlayLabel(for: self.activeDictationShortcutSlot,appBundleID: self.promptResolutionBundleID