chore: snapshot uncommitted local work before rebasing onto cloud-agent

Safety commit so the 94 uncommitted files in the working tree (in-flight
Account/Mac/Tip work plus the feature-preview recording tooling) survive the
move onto cursor/cloud-agent-1787824905651-vxuwc.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-01 11:28:07 -07:00
co-authored by Claude Opus 5
parent 39002336c0
commit 5d51c5bf77
101 changed files with 3629 additions and 1354 deletions
+11 -4
View File
@@ -14,6 +14,8 @@ enum MacSection: String, CaseIterable, Identifiable {
case history
case dictionary
case styles
// No `account` case: on Mac the account lives in Settings as its first
// card (iOS keeps a dedicated tab). One sign-in surface, one page.
case settings
var id: String { rawValue }
@@ -183,10 +185,6 @@ final class MacDictationViewModel: ObservableObject {
LLMProvider.asrSelectablePresets
}
var selectableProviders: [LLMProvider] {
asrSelectableProviders
}
var dictionaryTermCount: Int {
_ = dictionaryRevision
return AppGroupStore(defaults: defaults).personalDictionary.entries.count
@@ -268,6 +266,15 @@ final class MacDictationViewModel: ObservableObject {
if enabled { hotkeyService.start() } else { hotkeyService.stop() }
}
/// Called when Accessibility flips to trusted (see `MacPermissionMonitor`).
/// Granting the permission does not retro-attach the global event monitor,
/// so the hotkey has to be re-armed or Option-hold keeps doing nothing
/// until the app is relaunched.
func reattachHotkeyIfNeeded() {
guard hotkeyEnabled else { return }
hotkeyService.restartIfGlobalMonitorMissing()
}
func setHotkeyTrigger(_ trigger: MacHotkeyTrigger) {
hotkeyTrigger = trigger
defaults.set(trigger.rawValue, forKey: StoredKeys.hotkeyTrigger)