Repository navigation
Active Account Switch Detection
Previously, switching Claude accounts could leave the app showing stale usage data from the old account until the cached token expired. Now the app actively detects account switches by comparing its cached token against Claude's keychain every 5 minutes.
What's new
- Active keychain sync — periodic subprocess check detects token changes within ~5 minutes
- Immediate UI update — stale usage data is cleared as soon as a switch is detected
- Timeout-safe — subprocess timeouts trigger denial cooldown, preventing recurring macOS keychain dialogs
- Passive 401 fallback — retained as a safety net if the active check is skipped
Upgrade
Download ClaudeCodeUsage.dmg, open it, and drag to Applications (replacing the existing app).