From 6f5503688dc8fb3b021c2bbe35e4aa0a88a5e19e Mon Sep 17 00:00:00 2001 From: Wes Date: Fri, 9 Jan 2026 11:58:10 -0800 Subject: [PATCH] fix(macos): prevent launch-at-login plist deletion on startup --- apps/macos/Sources/Clawdbot/AppState.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/macos/Sources/Clawdbot/AppState.swift b/apps/macos/Sources/Clawdbot/AppState.swift index 371961070..0f55d9b37 100644 --- a/apps/macos/Sources/Clawdbot/AppState.swift +++ b/apps/macos/Sources/Clawdbot/AppState.swift @@ -29,7 +29,10 @@ final class AppState { } var launchAtLogin: Bool { - didSet { self.ifNotPreview { Task { AppStateStore.updateLaunchAtLogin(enabled: self.launchAtLogin) } } } + didSet { + guard !self.isInitializing else { return } + self.ifNotPreview { Task { AppStateStore.updateLaunchAtLogin(enabled: self.launchAtLogin) } } + } } var onboardingSeen: Bool {