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.
This commit is contained in:
iamtoruk 2026-05-17 05:27:49 -07:00
parent 7e0c1de086
commit 9ad137f2b8

View file

@ -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 {