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

show history performance details by default

altic-dev67a96838111e
diff --git a/Sources/Fluid/Persistence/SettingsStore.swift b/Sources/Fluid/Persistence/SettingsStore.swift
index 111f4e84..cd10fcde 100644
--- a/Sources/Fluid/Persistence/SettingsStore.swift
+++ b/Sources/Fluid/Persistence/SettingsStore.swift
@@ -1846,9 +1846,9 @@ final class SettingsStore: ObservableObject {
}
}
- /// Shows optional ASR and AI performance details in transcription history.
+ /// Shows ASR and AI performance details by default; users can hide them.
var showHistoryPerformanceMetrics: Bool {
- get { self.defaults.object(forKey: Keys.showHistoryPerformanceMetrics) as? Bool ?? false }
+ get { self.defaults.object(forKey: Keys.showHistoryPerformanceMetrics) as? Bool ?? true }
set {
objectWillChange.send()
self.defaults.set(newValue, forKey: Keys.showHistoryPerformanceMetrics)
diff --git a/Tests/FluidDictationIntegrationTests/HotkeyShortcutTests.swift b/Tests/FluidDictationIntegrationTests/HotkeyShortcutTests.swift
index 49cc61d7..42283787 100644
--- a/Tests/FluidDictationIntegrationTests/HotkeyShortcutTests.swift
+++ b/Tests/FluidDictationIntegrationTests/HotkeyShortcutTests.swift
@@ -296,7 +296,7 @@ final class HotkeyShortcutTests: XCTestCase {
}
@MainActor
- func testHistoryPerformanceDefaultsOffAndRoundTripsWithoutBreakingLegacyBackups() async throws {
+ func testHistoryPerformanceDefaultsOnAndRoundTripsWithoutBreakingLegacyBackups() async throws {
let defaults = UserDefaults.standard
let key = "ShowHistoryPerformanceMetrics"
let originalValue = defaults.object(forKey: key)
@@ -309,7 +309,12 @@ final class HotkeyShortcutTests: XCTestCase {
}
defaults.removeObject(forKey: key)
- XCTAssertFalse(SettingsStore.shared.showHistoryPerformanceMetrics)
+ XCTAssertTrue(SettingsStore.shared.showHistoryPerformanceMetrics)
+
+ SettingsStore.shared.showHistoryPerformanceMetrics = false
+ XCTAssertFalse(SettingsStore.shared.showHistoryPerformanceMetrics, "An explicit opt-out must remain respected")
+ let optedOutDocument = try await BackupService.shared.makeBackupDocument()
+ XCTAssertEqual(optedOutDocument.settings.showHistoryPerformanceMetrics, false)
SettingsStore.shared.showHistoryPerformanceMetrics = true
let document = try await BackupService.shared.makeBackupDocument()