Skip to content

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.swift
index 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 {
@MainActor
final 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: UserDefaults
diff --git a/Sources/Fluid/Persistence/KeychainService.swift b/Sources/Fluid/Persistence/KeychainService.swift
index 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.swift
index 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.
@MainActor
final 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.
@MainActor
final 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.swift
index 5edb9daa..9a00daa6 100644
--- a/Sources/Fluid/Services/AutomaticDictionaryCorrectionTracker.swift
+++ b/Sources/Fluid/Services/AutomaticDictionaryCorrectionTracker.swift
@@ -20,6 +20,9 @@ enum AutomaticDictionarySuggestionOutcome {
@MainActor
final 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.swift
index 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.
@MainActor
final 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 = false
diff --git a/Sources/Fluid/Services/FluidAudioProvider.swift b/Sources/Fluid/Services/FluidAudioProvider.swift
index 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_000
private static let incrementalAppendBlockSamples = 240_000
@@ -1912,6 +1915,9 @@ final class FluidAudioProvider: TranscriptionProvider {
#else
/// Check-shim for Intel Macs where FluidAudio is not available
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 {}
+
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.swift
index 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.
@MainActor
final 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_000
struct Context: Equatable {
diff --git a/Sources/Fluid/Services/Meeting/Backend/MeetingParakeetNemotronBackend.swift b/Sources/Fluid/Services/Meeting/Backend/MeetingParakeetNemotronBackend.swift
index 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
@MainActor
final 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.swift
index 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.
@MainActor
final 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 MeetingTranscriptionBackend
private var factories: [MeetingBackendID: Factory] = [:]
diff --git a/Sources/Fluid/Services/Meeting/MeetingAutoDetector.swift b/Sources/Fluid/Services/Meeting/MeetingAutoDetector.swift
index 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.
@MainActor
final 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 = 30
diff --git a/Sources/Fluid/Services/Meeting/MeetingStage05EvidenceAutorun.swift b/Sources/Fluid/Services/Meeting/MeetingStage05EvidenceAutorun.swift
index 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: URL
private 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: URL
private let handle: FileHandle
private(set) var sampleRateHz = 48_000.0
diff --git a/Sources/Fluid/Services/Meeting/MeetingStage05SCKFrameAdapter.swift b/Sources/Fluid/Services/Meeting/MeetingStage05SCKFrameAdapter.swift
index 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.0
static let maximumBlocksPerTrack = 2000
static let maximumFramesPerTrack = 960_000
diff --git a/Sources/Fluid/Services/Meeting/MeetingSummaryProvider.swift b/Sources/Fluid/Services/Meeting/MeetingSummaryProvider.swift
index e31696be..9f315da0 100644
--- a/Sources/Fluid/Services/Meeting/MeetingSummaryProvider.swift
+++ b/Sources/Fluid/Services/Meeting/MeetingSummaryProvider.swift
@@ -36,6 +36,9 @@ nonisolated enum MeetingSummaryOnDevice {
@MainActor
final 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: UserDefaults
private static let key = "MeetingSummarySelection"
private static let customPromptKey = "MeetingSummaryCustomPrompt"
diff --git a/Sources/Fluid/Services/MicrophonePreferenceCoordinator.swift b/Sources/Fluid/Services/MicrophonePreferenceCoordinator.swift
index 3c2d2e78..c0db50ab 100644
--- a/Sources/Fluid/Services/MicrophonePreferenceCoordinator.swift
+++ b/Sources/Fluid/Services/MicrophonePreferenceCoordinator.swift
@@ -34,6 +34,9 @@ struct CoreAudioDeviceManager: AudioDeviceManaging {
@MainActor
final 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: SettingsStore
private let devices: any AudioDeviceManaging
private var lastResolvedInputUID: String?
diff --git a/Sources/Fluid/Services/PasteDeliveryCoordinator.swift b/Sources/Fluid/Services/PasteDeliveryCoordinator.swift
index 37ff6d2c..0bcef16b 100644
--- a/Sources/Fluid/Services/PasteDeliveryCoordinator.swift
+++ b/Sources/Fluid/Services/PasteDeliveryCoordinator.swift
@@ -93,6 +93,9 @@ protocol PasteCommandPosting: AnyObject {
@MainActor
final 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.swift
index 04635d91..8cec30cb 100644
--- a/Sources/Fluid/Services/SimpleUpdater.swift
+++ b/Sources/Fluid/Services/SimpleUpdater.swift
@@ -117,6 +117,9 @@ private struct SemanticVersion: Comparable {
@MainActor
final 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: String
let url: URL
diff --git a/Sources/Fluid/Services/TypingService.swift b/Sources/Fluid/Services/TypingService.swift
index 19253102..fef9a5c6 100644
--- a/Sources/Fluid/Services/TypingService.swift
+++ b/Sources/Fluid/Services/TypingService.swift
@@ -4,6 +4,9 @@ import Carbon.HIToolbox
import Foundation
final 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 = 0x46565353
struct CapturedFocusTarget {
diff --git a/Sources/Fluid/UI/AISettings/AIEnhancementSettingsViewModel.swift b/Sources/Fluid/UI/AISettings/AIEnhancementSettingsViewModel.swift
index 971d5280..c6056653 100644
--- a/Sources/Fluid/UI/AISettings/AIEnhancementSettingsViewModel.swift
+++ b/Sources/Fluid/UI/AISettings/AIEnhancementSettingsViewModel.swift
@@ -7,6 +7,9 @@ import UniformTypeIdentifiers
@MainActor
final 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: SettingsStore
let menuBarManager: MenuBarManager
diff --git a/Sources/Fluid/UI/AISettings/ProviderModelVerificationStore.swift b/Sources/Fluid/UI/AISettings/ProviderModelVerificationStore.swift
index 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.
@MainActor
final 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 = 256
private let defaults: UserDefaults
diff --git a/Sources/Fluid/UI/MeetingAgentIntegrations.swift b/Sources/Fluid/UI/MeetingAgentIntegrations.swift
index 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.
@MainActor
final 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.Agent
typealias Status = FluidServeSkillInstaller.Status
diff --git a/Sources/Fluid/UI/ReleaseHighlightsPresenter.swift b/Sources/Fluid/UI/ReleaseHighlightsPresenter.swift
index 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.swift
index 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.swift
index 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.systemUptime
var previousPhase: CFOptionFlags = 0
}