mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-05-20 17:47:19 +00:00
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:
parent
7e0c1de086
commit
9ad137f2b8
1 changed files with 2 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue