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
+18
View File
@@ -83,6 +83,24 @@ final class MacHotkeyService {
if !enabled { cancelPress() }
}
/// True once the *global* `.flagsChanged` monitor is attached, i.e. once
/// Option-hold works outside the app's own windows. False whenever
/// Accessibility was denied at the time `start()` ran.
var isGlobalMonitorActive: Bool { globalFlagsMonitor != nil }
/// Re-attaches the global monitor after Accessibility was granted.
///
/// `start()` alone cannot do this: when Accessibility is denied,
/// `addGlobalMonitorForEvents` returns nil while the *local* monitor still
/// attaches, so its "already started" guard would short-circuit every
/// retry and the hotkey stayed dead until the next launch.
func restartIfGlobalMonitorMissing() {
guard isEnabled, globalFlagsMonitor == nil else { return }
guard MacTextInsertionService.isAccessibilityTrusted else { return }
stop()
start()
}
func start() {
guard globalFlagsMonitor == nil, localFlagsMonitor == nil else { return }
// Global monitors require Accessibility; without it the call returns