Skip to content

Defer keychain access until user clicks Connect on plan tab#338

Merged
iamtoruk merged 1 commit into
mainfrom
fix/dormant-keychain-prompt
May 17, 2026
Merged

Defer keychain access until user clicks Connect on plan tab#338
iamtoruk merged 1 commit into
mainfrom
fix/dormant-keychain-prompt

Conversation

@iamtoruk
Copy link
Copy Markdown
Member

Summary

  • Adds dormant SubscriptionLoadState so the menubar never prompts for keychain on launch
  • Users must navigate to plan tab and click "Load Quota" to trigger credential access (Claude and Codex)
  • Fixes flaky cli-status-menubar test that failed at UTC hour 0 due to timestamps landing in the future

Test plan

  • Launch menubar fresh — no keychain prompt appears
  • Navigate to Settings > Claude > click "Load Quota" — keychain prompt fires, quota loads
  • Same for Codex tab
  • Plan insight views show Connect prompt when dormant

Adds a `dormant` state to SubscriptionLoadState so the menubar never
prompts for keychain permission on launch. Users must navigate to the
plan tab and click "Load Quota" / "Connect" to trigger credential access.

Also fixes a flaky TZ-boundary test (cli-status-menubar) by widening the
time offset to avoid generating timestamps in the future at UTC hour 0.
@iamtoruk iamtoruk merged commit 7e0c1de into main May 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant