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: make 25 synthesized deinits nonisolated so the hosted suite runs on macOS 15.4+ (#1204)
postosob46f518e5f31
diff --git a/Sources/Fluid/Persistence/FileTranscriptionHistoryStore.swift b/Sources/Fluid/Persistence/FileTranscriptionHistoryStore.swiftindex d4f58ca6..6607fbf7 100644--- a/Sources/Fluid/Persistence/FileTranscriptionHistoryStore.swift+++ b/Sources/Fluid/Persistence/FileTranscriptionHistoryStore.swift@@ -152,6 +152,9 @@ nonisolated struct FileTranscriptionEntry: Codable, Identifiable, Equatable {@MainActorfinal class FileTranscriptionHistoryStore: ObservableObject {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+static let shared = FileTranscriptionHistoryStore()private let defaults: UserDefaultsdiff --git a/Sources/Fluid/Persistence/KeychainService.swift b/Sources/Fluid/Persistence/KeychainService.swiftindex e78e9ab2..e23670fe 100644--- a/Sources/Fluid/Persistence/KeychainService.swift+++ b/Sources/Fluid/Persistence/KeychainService.swift@@ -21,6 +21,9 @@ enum KeychainServiceError: Error, LocalizedError {/// Lightweight helper for storing provider API keys in the system Keychain./// Keys are stored as generic passwords scoped to the FluidVoice service.final class KeychainService {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+static let shared = KeychainService()private struct TestingBackend {diff --git a/Sources/Fluid/Services/ASRService.swift b/Sources/Fluid/Services/ASRService.swiftindex 3e1b5e85..fcea0e49 100644--- a/Sources/Fluid/Services/ASRService.swift+++ b/Sources/Fluid/Services/ASRService.swift@@ -200,6 +200,9 @@ struct StreamingTranscriptionWorkState {/// Cancelling a pending start releases its waiter without completing the active handoff.@MainActorfinal class RecordingBufferHandoffGate {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+struct Token: Equatable {private let id = UUID()}@@ -250,6 +253,9 @@ final class RecordingBufferHandoffGate {/// stop cancels only the delay; an active provider operation is allowed to settle.@MainActorfinal class StreamingTaskLifecycle {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+private var scheduler: (id: UUID, task: Task<Void, Never>)?private var active: (sessionID: Int, operationID: UUID, task: Task<Void, Never>)?private var drainWaiters: [UUID: (operationID: UUID, continuation: CheckedContinuation<Bool, Never>, timer: Task<Void, Never>)] = [:]diff --git a/Sources/Fluid/Services/AutomaticDictionaryCorrectionTracker.swift b/Sources/Fluid/Services/AutomaticDictionaryCorrectionTracker.swiftindex 5edb9daa..9a00daa6 100644--- a/Sources/Fluid/Services/AutomaticDictionaryCorrectionTracker.swift+++ b/Sources/Fluid/Services/AutomaticDictionaryCorrectionTracker.swift@@ -20,6 +20,9 @@ enum AutomaticDictionarySuggestionOutcome {@MainActorfinal class AutomaticDictionarySuggestionPolicy {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+static let shared = AutomaticDictionarySuggestionPolicy()private struct PairRecord: Codable {diff --git a/Sources/Fluid/Services/DictationPromptTestCoordinator.swift b/Sources/Fluid/Services/DictationPromptTestCoordinator.swiftindex be6741ce..c206786d 100644--- a/Sources/Fluid/Services/DictationPromptTestCoordinator.swift+++ b/Sources/Fluid/Services/DictationPromptTestCoordinator.swift@@ -6,6 +6,9 @@ import Foundation/// instead of typing into other apps.@MainActorfinal class DictationPromptTestCoordinator: ObservableObject {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+static let shared = DictationPromptTestCoordinator()@Published private(set) var isActive: Bool = falsediff --git a/Sources/Fluid/Services/FluidAudioProvider.swift b/Sources/Fluid/Services/FluidAudioProvider.swiftindex 5be15d2b..b5cbe80a 100644--- a/Sources/Fluid/Services/FluidAudioProvider.swift+++ b/Sources/Fluid/Services/FluidAudioProvider.swift@@ -180,6 +180,9 @@ import FluidAudio/// TranscriptionProvider implementation using FluidAudio (optimized for Apple Silicon)/// This wraps the existing FluidAudio-based ASR for use on Apple Silicon Macs.final class FluidAudioProvider: TranscriptionProvider {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+private static let incrementalChunkingThresholdSamples = 240_000private static let incrementalAppendBlockSamples = 240_000@@ -1912,6 +1915,9 @@ final class FluidAudioProvider: TranscriptionProvider {#else/// Check-shim for Intel Macs where FluidAudio is not availablefinal class FluidAudioProvider: TranscriptionProvider {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+let name = "FluidAudio (Apple Silicon ONLY)"var isAvailable: Bool { false }var isReady: Bool { false }diff --git a/Sources/Fluid/Services/HoldToMuteKeyState.swift b/Sources/Fluid/Services/HoldToMuteKeyState.swiftindex 903634cf..9d362a99 100644--- a/Sources/Fluid/Services/HoldToMuteKeyState.swift+++ b/Sources/Fluid/Services/HoldToMuteKeyState.swift@@ -32,6 +32,9 @@ nonisolated struct HoldToMuteKeyState {/// without re-entering the hotkey handler or changing the clipboard.@MainActorfinal class HoldToMuteSpaceTap {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+static let maximumDuration: UInt64 = 250_000_000struct Context: Equatable {diff --git a/Sources/Fluid/Services/Meeting/Backend/MeetingParakeetNemotronBackend.swift b/Sources/Fluid/Services/Meeting/Backend/MeetingParakeetNemotronBackend.swiftindex e335b808..55f3be53 100644--- a/Sources/Fluid/Services/Meeting/Backend/MeetingParakeetNemotronBackend.swift+++ b/Sources/Fluid/Services/Meeting/Backend/MeetingParakeetNemotronBackend.swift@@ -11,6 +11,9 @@ import Foundation@MainActorfinal class MeetingParakeetNemotronBackend: MeetingTranscriptionBackend {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+static let descriptor = MeetingBackendDescriptor(id: .parakeetNemotron,version: "8",diff --git a/Sources/Fluid/Services/Meeting/Backend/MeetingTranscriptionBackendRegistry.swift b/Sources/Fluid/Services/Meeting/Backend/MeetingTranscriptionBackendRegistry.swiftindex e4a26249..81837ba5 100644--- a/Sources/Fluid/Services/Meeting/Backend/MeetingTranscriptionBackendRegistry.swift+++ b/Sources/Fluid/Services/Meeting/Backend/MeetingTranscriptionBackendRegistry.swift@@ -8,6 +8,9 @@ import Foundation/// a different backend.@MainActorfinal class MeetingTranscriptionBackendRegistry {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+typealias Factory = @MainActor (MeetingBackendHostContext) -> any MeetingTranscriptionBackendprivate var factories: [MeetingBackendID: Factory] = [:]diff --git a/Sources/Fluid/Services/Meeting/MeetingAutoDetector.swift b/Sources/Fluid/Services/Meeting/MeetingAutoDetector.swiftindex 05492a03..1081bab6 100644--- a/Sources/Fluid/Services/Meeting/MeetingAutoDetector.swift+++ b/Sources/Fluid/Services/Meeting/MeetingAutoDetector.swift@@ -8,6 +8,9 @@ import Foundation/// Every ambiguity resolves to no prompt: a false negative here is free, a false positive is not.@MainActorfinal class MeetingAutoDetector {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+// MARK: - Tunables (Phase A plan v2)static let coincidenceWindowSeconds: TimeInterval = 30diff --git a/Sources/Fluid/Services/Meeting/MeetingStage05EvidenceAutorun.swift b/Sources/Fluid/Services/Meeting/MeetingStage05EvidenceAutorun.swiftindex 162dcb46..89508895 100644--- a/Sources/Fluid/Services/Meeting/MeetingStage05EvidenceAutorun.swift+++ b/Sources/Fluid/Services/Meeting/MeetingStage05EvidenceAutorun.swift@@ -1130,6 +1130,9 @@ nonisolated struct MeetingStage05TimingFailureRecord: Codable, Equatable, Sendab}final class MeetingStage05PCMCollector: @unchecked Sendable {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+enum Output { case render, capture }private let root: URLprivate let inputUID: String@@ -1538,6 +1541,9 @@ final class MeetingStage05PCMCollector: @unchecked Sendable {}private final class WAVWriter {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+let url: URLprivate let handle: FileHandleprivate(set) var sampleRateHz = 48_000.0diff --git a/Sources/Fluid/Services/Meeting/MeetingStage05SCKFrameAdapter.swift b/Sources/Fluid/Services/Meeting/MeetingStage05SCKFrameAdapter.swiftindex 6f377781..50d3f893 100644--- a/Sources/Fluid/Services/Meeting/MeetingStage05SCKFrameAdapter.swift+++ b/Sources/Fluid/Services/Meeting/MeetingStage05SCKFrameAdapter.swift@@ -70,6 +70,9 @@ nonisolated struct MeetingStage05AdapterDrain: Equatable, Sendable {/// rejection. Overlapping or late blocks are preserved as synchronizer inputs and counted/// here as diagnostics; nothing is flattened or invented.final class MeetingStage05SCKFrameAdapter: @unchecked Sendable {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+static let supportedSampleRateHz = 48_000.0static let maximumBlocksPerTrack = 2000static let maximumFramesPerTrack = 960_000diff --git a/Sources/Fluid/Services/Meeting/MeetingSummaryProvider.swift b/Sources/Fluid/Services/Meeting/MeetingSummaryProvider.swiftindex e31696be..9f315da0 100644--- a/Sources/Fluid/Services/Meeting/MeetingSummaryProvider.swift+++ b/Sources/Fluid/Services/Meeting/MeetingSummaryProvider.swift@@ -36,6 +36,9 @@ nonisolated enum MeetingSummaryOnDevice {@MainActorfinal class MeetingSummaryPreferences: ObservableObject {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+private let defaults: UserDefaultsprivate static let key = "MeetingSummarySelection"private static let customPromptKey = "MeetingSummaryCustomPrompt"diff --git a/Sources/Fluid/Services/MicrophonePreferenceCoordinator.swift b/Sources/Fluid/Services/MicrophonePreferenceCoordinator.swiftindex 3c2d2e78..c0db50ab 100644--- a/Sources/Fluid/Services/MicrophonePreferenceCoordinator.swift+++ b/Sources/Fluid/Services/MicrophonePreferenceCoordinator.swift@@ -34,6 +34,9 @@ struct CoreAudioDeviceManager: AudioDeviceManaging {@MainActorfinal class MicrophonePreferenceCoordinator: ObservableObject {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+private let settings: SettingsStoreprivate let devices: any AudioDeviceManagingprivate var lastResolvedInputUID: String?diff --git a/Sources/Fluid/Services/PasteDeliveryCoordinator.swift b/Sources/Fluid/Services/PasteDeliveryCoordinator.swiftindex 37ff6d2c..0bcef16b 100644--- a/Sources/Fluid/Services/PasteDeliveryCoordinator.swift+++ b/Sources/Fluid/Services/PasteDeliveryCoordinator.swift@@ -93,6 +93,9 @@ protocol PasteCommandPosting: AnyObject {@MainActorfinal class SystemPasteboardManager: PasteboardManaging {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+private static let sourceType = NSPasteboard.PasteboardType("org.nspasteboard.source")private static let transientType = NSPasteboard.PasteboardType("org.nspasteboard.TransientType")private static let autoGeneratedType = NSPasteboard.PasteboardType("org.nspasteboard.AutoGeneratedType")diff --git a/Sources/Fluid/Services/SimpleUpdater.swift b/Sources/Fluid/Services/SimpleUpdater.swiftindex 04635d91..8cec30cb 100644--- a/Sources/Fluid/Services/SimpleUpdater.swift+++ b/Sources/Fluid/Services/SimpleUpdater.swift@@ -117,6 +117,9 @@ private struct SemanticVersion: Comparable {@MainActorfinal class SimpleUpdater: ObservableObject {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+struct ReleaseBuildOption {let version: Stringlet url: URLdiff --git a/Sources/Fluid/Services/TypingService.swift b/Sources/Fluid/Services/TypingService.swiftindex 19253102..fef9a5c6 100644--- a/Sources/Fluid/Services/TypingService.swift+++ b/Sources/Fluid/Services/TypingService.swift@@ -4,6 +4,9 @@ import Carbon.HIToolboximport Foundationfinal class TypingService {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+nonisolated static let synthesizedEventUserData: Int64 = 0x46565353struct CapturedFocusTarget {diff --git a/Sources/Fluid/UI/AISettings/AIEnhancementSettingsViewModel.swift b/Sources/Fluid/UI/AISettings/AIEnhancementSettingsViewModel.swiftindex 971d5280..c6056653 100644--- a/Sources/Fluid/UI/AISettings/AIEnhancementSettingsViewModel.swift+++ b/Sources/Fluid/UI/AISettings/AIEnhancementSettingsViewModel.swift@@ -7,6 +7,9 @@ import UniformTypeIdentifiers@MainActorfinal class AIEnhancementSettingsViewModel: ObservableObject {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+private let modelVerifications = ProviderModelVerificationStore()let settings: SettingsStorelet menuBarManager: MenuBarManagerdiff --git a/Sources/Fluid/UI/AISettings/ProviderModelVerificationStore.swift b/Sources/Fluid/UI/AISettings/ProviderModelVerificationStore.swiftindex 0ab9d2c7..3ca5e50b 100644--- a/Sources/Fluid/UI/AISettings/ProviderModelVerificationStore.swift+++ b/Sources/Fluid/UI/AISettings/ProviderModelVerificationStore.swift@@ -5,6 +5,9 @@ import Foundation/// Stores only hashes and timestamps, never API keys, URLs, or request contents.@MainActorfinal class ProviderModelVerificationStore {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+static let defaultsKey = "ProviderModelVerificationsV1"static let maximumEntries = 256private let defaults: UserDefaultsdiff --git a/Sources/Fluid/UI/MeetingAgentIntegrations.swift b/Sources/Fluid/UI/MeetingAgentIntegrations.swiftindex 6b43e607..83f8e561 100644--- a/Sources/Fluid/UI/MeetingAgentIntegrations.swift+++ b/Sources/Fluid/UI/MeetingAgentIntegrations.swift@@ -10,6 +10,9 @@ import SwiftUI/// while the user has copied instructions for another agent and not stopped that since.@MainActorfinal class FluidServeSettingsModel: ObservableObject {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+typealias Agent = FluidServeSkillInstaller.Agenttypealias Status = FluidServeSkillInstaller.Statusdiff --git a/Sources/Fluid/UI/ReleaseHighlightsPresenter.swift b/Sources/Fluid/UI/ReleaseHighlightsPresenter.swiftindex 4ec07a69..b85dc5a4 100644--- a/Sources/Fluid/UI/ReleaseHighlightsPresenter.swift+++ b/Sources/Fluid/UI/ReleaseHighlightsPresenter.swift@@ -44,7 +44,12 @@ struct ReleaseHighlightsPresenter: ViewModifier {private let highlights = ReleaseHighlightsContent.current(hasPrivateAI: PrivateAIProviderFeature.shared.isAvailable)private let coordinator = ReleaseHighlightsCoordinator.shared- private final class WindowReference { weak var window: NSWindow? }+ private final class WindowReference {+ weak var window: NSWindow?++ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+ }private var canExplore: Bool { self.isEligible && !self.processing && !self.refining }diff --git a/Sources/Fluid/Views/BottomWaveformView.swift b/Sources/Fluid/Views/BottomWaveformView.swiftindex 07cd6df7..2d4a5fae 100644--- a/Sources/Fluid/Views/BottomWaveformView.swift+++ b/Sources/Fluid/Views/BottomWaveformView.swift@@ -140,6 +140,9 @@ struct BottomWaveformView: View {/// first and ripples outward, the spectrum tilts the shape, and a slow idle wave keeps the/// bars breathing while the user is quiet.final class WaveformSimulation {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+private var heights: [CGFloat] = []private var velocities: [CGFloat] = []private var energyHistory: [CGFloat] = Array(repeating: 0, count: 32)diff --git a/Sources/Fluid/Views/OverlayCloseDiagnostics.swift b/Sources/Fluid/Views/OverlayCloseDiagnostics.swiftindex a1925d82..64ad341a 100644--- a/Sources/Fluid/Views/OverlayCloseDiagnostics.swift+++ b/Sources/Fluid/Views/OverlayCloseDiagnostics.swift@@ -55,6 +55,9 @@ enum OverlayCloseRunLoopProbe {}private final class ProbeState: @unchecked Sendable {+ // Explicitly nonisolated: on macOS 15.4+ the synthesized main-actor deinit can abort until the OS runtime has the fix (swiftlang/swift#88036).+ nonisolated deinit {}+var previousAt = ProcessInfo.processInfo.systemUptimevar previousPhase: CFOptionFlags = 0}