Skip to content

Releases: Codename-11/CC-Stats

v0.4.2

Choose a tag to compare

@github-actions github-actions released this 31 Mar 01:42

Quotas display now shows remaining vs total for context.

What's Changed

Improvements

  • Quotas show total -- the 7d section now displays "2.8 of 7.6 full 5h quotas left" instead of just "2.8 full 5h quotas left", giving immediate context for how much of the weekly budget has been consumed

Install

Download CCStats-v0.4.2-win-x64.exe from the assets below and run it. Self-contained -- no .NET runtime needed.

Requirements: Windows 10 (build 17763) or later.

v0.4.1

Choose a tag to compare

@github-actions github-actions released this 31 Mar 01:35

Fix for toast text overflowing window on long messages.

What's Changed

Bug Fixes

  • Toast text wrapping -- long toast messages (like update notifications) now wrap properly instead of extending past the window edge. Layout changed from horizontal StackPanel to Grid with constrained MaxWidth.

Install

Download CCStats-v0.4.1-win-x64.exe from the assets below and run it. Self-contained -- no .NET runtime needed.

Requirements: Windows 10 (build 17763) or later.

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 31 Mar 01:11

Peak hour chart overlays, OAuth reliability overhaul, debug log viewer, and 9 audit-driven fixes.

What's Changed

Features

  • Peak hour chart overlays -- subtle amber bands on sparkline and analytics charts during weekday 9AM-5PM peak windows. Gated by the "Peak Hours Indicator" toggle in Settings.
  • Chart tooltip peak context -- hovering data points shows "· Peak" or "· Off-Peak" when overlays are enabled
  • Debug log viewer -- collapsible panel in Settings with monospace text, copy button, and 500-entry ring buffer. Helps diagnose auth and polling issues.
  • Re-auth from error banner -- when session expires, tap the footer text to sign in directly (no need to navigate to Settings)
  • Re-auth button in Settings -- amber "Re-auth" button next to the active account
  • DPAPI migration warning -- toast notification when credentials can't be decrypted after switching machines

Bug Fixes

  • OAuth token exchange fixed -- re-added required state field to token exchange body and removed anthropic-beta header from token endpoint (was causing "Invalid request format" BadRequest)
  • Token refresh fixed -- same header fix applied to refresh endpoint
  • Off-Peak badge color -- was showing orange (warning) instead of green (success)
  • Re-auth no longer creates duplicate accounts -- matches active account by ID instead of fragile tier string
  • Polling no longer freezes after re-auth -- _authFailed flag properly cleared
  • Reset markers -- changed to gold/yellow to distinguish from amber peak overlays
  • 9 additional audit fixes -- OAuth state timing, NeedsReauth detection, AccountId generation, ExpiresIn validation, DPAPI warnings, cross-thread safety, duplicate logging

Install

Download CCStats-v0.4.0-win-x64.exe from the assets below and run it. Self-contained -- no .NET runtime needed.

Requirements: Windows 10 (build 17763) or later.

v0.3.4

Choose a tag to compare

@github-actions github-actions released this 30 Mar 20:11

Fixes for data display when API is unreachable and OAuth sign-in resilience.

What's Changed

Bug Fixes

  • Gauge preserves last known data -- when polls fail (API down, token expired), gauges now show the last known 5h/7d values instead of resetting to 0%
  • Startup loads gauge values from DB -- if no local cache exists, restores gauge data from the most recent SQLite poll so the app starts with real data
  • OAuth sign-in timeout -- profile fetch during sign-in uses a 5-second timeout, preventing the app from hanging when the API is unreachable
  • Auth failure feedback -- sign-in errors now show a toast notification instead of silently resetting to the sign-in screen
  • Auth errors preserve accounts -- if sign-in fails but stored accounts exist, the app stays authenticated instead of losing account context
  • Account naming protected -- poll failures no longer interfere with the new account naming prompt

Install

Download CCStats-v0.3.4-win-x64.exe from the assets below and run it. Self-contained -- no .NET runtime needed.

Requirements: Windows 10 (build 17763) or later.

v0.3.3

Choose a tag to compare

@github-actions github-actions released this 30 Mar 03:18

Fix for flat sparkline chart after restart or token expiry.

What's Changed

Bug Fixes

  • Sparkline history from DB — the chart now loads historical usage data from SQLite on startup, independently of the poll cycle. Previously, the sparkline only showed 2 identical values seeded from the local cache (flat line) because DB history was only loaded in the PollCompleted handler — which never fires when polls fail due to expired tokens or rate limiting.

Install

Download CCStats-v0.3.3-win-x64.exe from the assets below and run it. Self-contained — no .NET runtime needed.

Requirements: Windows 10 (build 17763) or later.

v0.3.2

Choose a tag to compare

@github-actions github-actions released this 30 Mar 03:01

Fix for sign-in screen appearing when stored accounts exist but token has expired.

What's Changed

Bug Fixes

  • Auth state persistence -- the app no longer shows the sign-in screen when you have a stored account but the session token has expired. Instead, the error is shown in the status line and the account context is preserved. Previously, an expired token after self-update or idle period would drop you to the sign-in screen even though your account data was intact.

Install

Download CCStats-v0.3.2-win-x64.exe from the assets below and run it. Self-contained -- no .NET runtime needed.

On first launch, CC-Stats creates a Start Menu shortcut and registers in Add/Remove Programs. To uninstall, use Add/Remove Programs or run CCStats.exe --uninstall.

Requirements: Windows 10 (build 17763) or later.

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 30 Mar 02:47

UX polish and multi-account fix -- dark toast theme, chart legend improvements, and PromoClock cleanup.

What's Changed

Bug Fixes

  • Multi-account OAuth -- adding a second account no longer overwrites the first; correctly detects add-account vs re-auth flow
  • Toast notifications -- dark theme backgrounds with status-colored borders (was light colors jarring on dark app)
  • Data source badge -- renamed misleading "Live" to "Local" for cache source; CredentialsOnly gets unique purple color; added hover tooltip
  • Chart legend -- wraps at narrow widths instead of truncating; syncs visibility with series toggles; clearer labels ("5h reset" / "7d reset" / "Gap")

Improvements

  • PromoClock simplified -- settings now shows a single "Peak Hours Indicator" toggle; removed API Key and Team ID fields
  • Badge visibility -- increased background opacity for better contrast on dark theme
  • Error toast icon -- changed from ambiguous "!" to cross mark

Install

Download CCStats-v0.3.1-win-x64.exe from the assets below and run it. Self-contained -- no .NET runtime needed.

On first launch, CC-Stats creates a Start Menu shortcut and registers in Add/Remove Programs. To uninstall, use Add/Remove Programs or run CCStats.exe --uninstall.

Requirements: Windows 10 (build 17763) or later.

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 30 Mar 02:16

Major reliability and polish release — exponential backoff, data source tracking, 193 tests, self-registering install, and branch cleanup.

What's Changed

Features

  • Self-registering install — first launch creates Start Menu shortcut and Add/Remove Programs entry; supports clean uninstall via --uninstall flag
  • Data source tracking — color-coded badge (API/Cached/Live) with tooltip showing sync time and cache age
  • Polling feedback — spinner during checks, freshness timer, click-to-refresh with status toast
  • Pill-shaped toast notifications — success (green), error (red), info (blue) with slide-down animation
  • Reset event markers — 5h resets (orange) and 7d resets (blue) shown on analytics charts
  • Declining trend detection — new arrow when usage is dropping (green, good news)
  • Local build scripts — .\build_local.ps1 and ./build_local.sh produce CI-matching exe

Improvements

  • Rate limit resilience — exponential backoff with local cache fallback; data keeps flowing during 429s
  • Stable charts — no more flash/reset on poll refresh (LiveCharts2 objects reused)
  • Smarter predictions — requires 3+ samples over 2+ minutes before reporting trends
  • Security hardening — atomic file writes, DPAPI buffer clearing, thread-safe preferences, OAuth replay prevention
  • Re-auth account matching — reconnects to existing account instead of creating duplicates
  • 193 xUnit tests — slopes, formatting, tiers, app state, account view model
  • CI runs tests — every push now builds and tests

Bug Fixes

  • Cache badge — correctly shows "Cached" during rate limiting (was stuck on "Live")
  • Popout analytics — blank render and resize issues fixed
  • 7d chart zigzag — reference line rendered as horizontal band in bar mode
  • Console encoding — em dash replaced with -- for Windows codepage compatibility
  • Build script — param block moved before variable assignments

Other Changes

  • Default branch renamed from master to main
  • Adaptive polling interval: 30s when Claude active (was 15s, caused rate limiting)
  • DB schema migrations with automatic versioning
  • README updated with screenshots and reorganized feature docs

Install

Download CCStats-v0.3.0-win-x64.exe from the assets below and run it. Self-contained -- no .NET runtime needed.

On first launch, CC-Stats creates a Start Menu shortcut and registers in Add/Remove Programs. To uninstall, use Add/Remove Programs or run CCStats.exe --uninstall.

Requirements: Windows 10 (build 17763) or later.

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 29 Mar 03:02

Fixes for account naming and version display after self-update.

What's Changed

Bug Fixes

  • Account naming — The naming prompt on sign-in now correctly saves the user's chosen name. Previously, SaveAndRefreshAccount was overriding the display name with the subscription tier.
  • Version display — Settings now shows the correct version after self-update by reading FileVersionInfo from the exe on disk, fixing cases where GetEntryAssembly returned stale or null version info in single-file publish scenarios.

Install

Download CCStats-v0.2.1-win-x64.exe from the assets below and run it. Self-contained — no .NET runtime needed.

Requirements: Windows 10 (build 17763) or later.

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 29 Mar 02:17

PromoClock integration, credential recovery, and reliability improvements.

What's Changed

Features

  • PromoClock Integration — Connect to promoclock.co to show peak/off-peak status in the gauge header. Configure with API key and Team ID in Settings.
  • Test Notification — Send a test Windows toast notification from Settings → Notifications to verify alerts work.
  • /release Skill — Automated release workflow for Claude Code: version bump, changelog, release notes, tag, and push.
  • Periodic Update Check — Now checks for updates every 6 hours instead of only at startup.

Improvements

  • Default poll interval changed from 60s to 120s, reducing idle API calls by half. Adaptive polling still speeds to 15s when Claude Code is active.
  • Chart animations — Series objects are now stable across refreshes with smooth 300ms transitions instead of full redraws.
  • Chart legends — Full key showing 5h (green), 7d (blue dashed), Reset (orange), Gap (gray) in both inline and popout charts.
  • Freshness text now shows "Xs ago · tap to refresh" for clearer click-to-refresh UX.

Bug Fixes

  • Credential recovery — After self-update, if main credentials.dat is missing, automatically recovers from per-account files.
  • Polling stall — SessionDetectionService crash (Win32Exception on process access) no longer kills the poll loop.
  • Sparkline instant display — Seeds from Claude Code's local statusline cache so chart appears immediately on startup.
  • Version display — Fixed version stuck at 0.1.0 after self-update; release workflow now injects version from git tag.
  • Update badge — Replaced truncated "v0" text with clean ↑ icon; full version shown in tooltip.
  • Settings gear — Increased click target from 20px to 28px to fix missed clicks.
  • Self-update confirmation — Now requires two clicks (check → confirm) instead of downloading immediately.

Install

Download CCStats-v0.2.0-win-x64.exe from the assets below and run it. Self-contained — no .NET runtime needed.

Requirements: Windows 10 (build 17763) or later.