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: unblock 1.6.2 release
ALTIC941eedb0456c
diff --git a/.github/policy/github-policy.mjs b/.github/policy/github-policy.mjsindex 149d4d6a..1f3dae12 100644--- a/.github/policy/github-policy.mjs+++ b/.github/policy/github-policy.mjs@@ -110,7 +110,7 @@ export function validatePullRequest({ body = "", changedFiles = [] } = {}) {const screenshots = section(body, "Screenshots / Video");const visualFiles = findVisualFiles(changedFiles);const attestsNoVisualChange = hasNoVisualChangeAttestation(screenshots);- const requiresMedia = visualFiles.length > 0 || !attestsNoVisualChange;+ const requiresMedia = visualFiles.length > 0 && !attestsNoVisualChange;const checks = [["Description", hasNonPlaceholderContent(description)],@@ -119,7 +119,7 @@ export function validatePullRequest({ body = "", changedFiles = [] } = {}) {["Testing", hasTestingEvidence(testing)],["Screenshots / Video",- requiresMedia ? hasMedia(screenshots) : attestsNoVisualChange,+ attestsNoVisualChange || hasMedia(screenshots),],];diff --git a/Sources/Fluid/Persistence/SettingsStore.swift b/Sources/Fluid/Persistence/SettingsStore.swiftindex 961b67f4..7de8f89c 100644--- a/Sources/Fluid/Persistence/SettingsStore.swift+++ b/Sources/Fluid/Persistence/SettingsStore.swift@@ -21,6 +21,7 @@ final class SettingsStore: ObservableObject {static let privateAIDictationSystemOverheadTokens = 1280static let privateAIDictationMinimumOutputTokens = 256static let privateAIDictationRoundTripTokenCost = 2.75+ private static let forcedOnboardingResetIntroducedAt = Date(timeIntervalSince1970: 1_782_091_732)private let defaults = UserDefaults.standardprivate let keychain = KeychainService.sharedprivate(set) var launchAtStartupEnabled = false@@ -2299,10 +2300,14 @@ final class SettingsStore: ObservableObject {private func repairForcedOnboardingResetIfNeeded() {// 1.6.2 briefly used OnboardingGeneration to force every install through onboarding.// Restore existing users who were reset by that migration while keeping fresh installs intact.+ let hadOpenedBeforeForcedReset = AnalyticsIdentityStore.shared.firstOpenAt.map {+ $0 < Self.forcedOnboardingResetIntroducedAt+ } ?? false+ let hasExistingInstallSignal = self.hasLegacyUsageSignals() || hadOpenedBeforeForcedResetguard self.defaults.object(forKey: Keys.onboardingGeneration) != nil,self.defaults.bool(forKey: Keys.onboardingCompleted) == false,self.defaults.bool(forKey: Keys.manualOnboardingResetRequested) == false,- self.hasLegacyUsageSignals()+ hasExistingInstallSignalelse { return }objectWillChange.send()diff --git a/Sources/Fluid/Services/ASRService.swift b/Sources/Fluid/Services/ASRService.swiftindex 8efdf471..fbef8c16 100644--- a/Sources/Fluid/Services/ASRService.swift+++ b/Sources/Fluid/Services/ASRService.swift@@ -1466,14 +1466,8 @@ final class ASRService: ObservableObject {let result: ASRTranscriptionResultlet finalSource: Stringif useDictionaryTrainingPath {- if let fluidProvider = provider as? FluidAudioProvider {- result = try await self.transcriptionExecutor.run { [fluidProvider] in- try await fluidProvider.transcribeDictionaryTraining(pcm)- }- } else {- result = try await self.transcriptionExecutor.run { [provider] in- try await provider.transcribeFinal(pcm)- }+ result = try await self.transcriptionExecutor.run { [provider] in+ try await provider.transcribeDictionaryTraining(pcm)}finalSource = "dictionaryTraining"} else {diff --git a/Sources/Fluid/Services/TranscriptionProvider.swift b/Sources/Fluid/Services/TranscriptionProvider.swiftindex 188f735f..a6bf7c9e 100644--- a/Sources/Fluid/Services/TranscriptionProvider.swift+++ b/Sources/Fluid/Services/TranscriptionProvider.swift@@ -83,6 +83,10 @@ protocol TranscriptionProvider {/// Providers can use higher-quality passes (e.g., vocabulary rescoring) here.func transcribeFinal(_ samples: [Float]) async throws -> ASRTranscriptionResult+ /// Transcribe audio captured while training dictionary replacements.+ /// Providers can bypass final-output transforms that would distort the saved phrase.+ func transcribeDictionaryTraining(_ samples: [Float]) async throws -> ASRTranscriptionResult+/// Whether this provider prefers to handle long-form file transcription itself./// This is useful when the backend already has model-native long-audio chunking/reassembly.var prefersNativeFileTranscription: Bool { get }@@ -115,6 +119,10 @@ extension TranscriptionProvider {try await self.transcribe(samples)}+ func transcribeDictionaryTraining(_ samples: [Float]) async throws -> ASRTranscriptionResult {+ try await self.transcribeFinal(samples)+ }+func transcribeFile(at fileURL: URL) async throws -> ASRTranscriptionResult {throw NSError(domain: "TranscriptionProvider",