From 9ad137f2b8a10879b2e393f81e84df07eecea170 Mon Sep 17 00:00:00 2001 From: iamtoruk Date: Sun, 17 May 2026 05:27:49 -0700 Subject: [PATCH] Fix dormant activation to bootstrap instead of refresh When the user clicks Load Quota from dormant state after a clean reinstall, the cached keychain item may not exist. Using the refresh path triggered a macOS keychain prompt because it assumed the cache was present. Now calls bootstrapSubscription/bootstrapCodex which properly re-reads credentials from source. --- mac/Sources/CodeBurnMenubar/AppStore.swift | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mac/Sources/CodeBurnMenubar/AppStore.swift b/mac/Sources/CodeBurnMenubar/AppStore.swift index b88cced..b1c89cb 100644 --- a/mac/Sources/CodeBurnMenubar/AppStore.swift +++ b/mac/Sources/CodeBurnMenubar/AppStore.swift @@ -407,14 +407,12 @@ final class AppStore { /// User-initiated. Reads Claude's source (this is what triggers the macOS keychain func activateClaudeFromDormant() async { guard case .dormant = subscriptionLoadState else { return } - subscriptionLoadState = .loading - _ = await refreshSubscriptionReportingSuccess() + await bootstrapSubscription() } func activateCodexFromDormant() async { guard case .dormant = codexLoadState else { return } - codexLoadState = .loading - _ = await refreshCodexReportingSuccess() + await bootstrapCodex() } func bootstrapSubscription() async {