[BUG] Desktop app usage stats panel does not refresh after switching accounts
Description
After logging out of one Claude account and logging into a different account (personal → work) in the Claude Code desktop app, the Usage Stats "Overview" panel continued to show data from the previous account instead of resetting/refreshing for the newly logged-in account.
Steps to reproduce
- Log in to the desktop app with Account A and use it for a while (build up session/message/token history).
- Log out of Account A.
- Log in with a different Account B (a brand-new account, only a few hours old, used very lightly).
- Open the Usage Stats "Overview" tab.
Expected behavior
Stats should reflect Account B's actual usage (minimal, since the account is only a few hours old).
Actual behavior
The Overview panel still shows the old totals from Account A:
- Sessions: 34
- Messages: 21,411
- Total tokens: 15.6M
- Active days: 17
- Favorite model: Opus 4.8
- Full activity heatmap from the old account
These numbers did not change after switching accounts, even though Account B has barely been used.
Screenshot
(Attached separately by reporter — Overview panel showing stale 15.6M token total right after switching to a brand-new account.)
Suspected cause
The stats panel appears to be reading from locally cached session/transcript history or a cached aggregate that isn't scoped/invalidated per logged-in account, rather than fetching fresh per-account usage data on login.
Environment
- Platform: macOS (Darwin 25.5.0)
- Interface: Claude Desktop app