Skip to content

Fix Windows Store Claude usage discovery - #2

Merged
saime428 merged 3 commits into
mainfrom
agent/fix-windows-store-claude-usage
Jul 28, 2026
Merged

Fix Windows Store Claude usage discovery#2
saime428 merged 3 commits into
mainfrom
agent/fix-windows-store-claude-usage

Conversation

@saime428

Copy link
Copy Markdown
Owner

What changed

  • Discover Claude Desktop data in both the traditional %APPDATA% location and Microsoft Store package LocalCache directories.
  • Recursively include nested Claude Code subagent transcripts without listing them as separate sessions.
  • Derive session activity from real transcript events so metadata-only writes do not mark stale sessions active.
  • Prepare the 1.0.2 portable release and document the Store data path.

Root cause

The v1.0.1 portable build hard-coded %APPDATA%/Claude, while Microsoft Store Claude Desktop stores its usage history under %LOCALAPPDATA%/Packages/Claude_*/LocalCache/Roaming/Claude. The direct-only transcript scan and mtime activity heuristic caused two related accuracy gaps.

Validation

  • npm test — 19/19 passing.
  • npm run dist — Windows x64 portable build succeeds.
  • Packaged app.asar smoke test detects the live Desktop source and reads the current 5h/7d percentages.
  • Weekly reset remains blank when local history lacks a reset boundary.

@saime428
saime428 marked this pull request as ready for review July 28, 2026 13:23
@saime428
saime428 merged commit ce083bf into main Jul 28, 2026
1 check passed
@saime428
saime428 deleted the agent/fix-windows-store-claude-usage branch July 28, 2026 13:23
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