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(typing): skip paste read-back when a send key follows
altic-dev98b5a2787540
diff --git a/Sources/Fluid/Services/TypingService.swift b/Sources/Fluid/Services/TypingService.swiftindex 08562680..b5ad1d88 100644--- a/Sources/Fluid/Services/TypingService.swift+++ b/Sources/Fluid/Services/TypingService.swift@@ -461,7 +461,8 @@ final class TypingService {textReadyAt: TimeInterval?,toggleStopRequestedAt: TimeInterval? = nil,tracksDictionaryCorrections: Bool = false,- preserveTranscriptOnClipboard: Bool = false+ preserveTranscriptOnClipboard: Bool = false,+ verifiesLanding: Bool = true) async -> TextDeliveryResult {let requestedAt = ProcessInfo.processInfo.systemUptimevar closeTrace = OverlayCloseTrace("typing.delivery")@@ -566,7 +567,7 @@ final class TypingService {toggleStopRequestedAt: toggleStopRequestedAt,completedAt: completedAt)- if result == .commandPosted, deliveryPath != .direct, let verificationBefore {+ if verifiesLanding, result == .commandPosted, deliveryPath != .direct, let verificationBefore {self.verifyPasteLanded(text, before: verificationBefore)}// The caller starts correction tracking after completing delivery UI.@@ -614,7 +615,9 @@ final class TypingService {textReadyAt: textReadyAt,toggleStopRequestedAt: toggleStopRequestedAt,tracksDictionaryCorrections: tracksDictionaryCorrections,- preserveTranscriptOnClipboard: preserveTranscriptOnClipboard+ preserveTranscriptOnClipboard: preserveTranscriptOnClipboard,+ // A send key empties the field right after the paste, so the read-back would report a false miss.+ verifiesLanding: postInsertionKey == nil)guard result.wasDispatched else {completion?(.insertionFailed)