12 Commits

Author SHA1 Message Date
Craig Constable
4de95f0bde v1.0.11
- Hide the Claude CLI token refresh window so it does not flash on screen
v1.0.11
2026-03-07 16:13:34 +10:00
Craig Constable
a68f801812 v1.0.10
- Added an icon to the application
v1.0.10
2026-03-06 16:55:31 +10:00
Craig Constable
c8bd9683dd v1.0.9
- Fallback to previous method of retrieving usage details if failure occurs
2026-03-06 16:48:40 +10:00
Craig Constable
ad4467e814 v1.0.8
- Switched to using /api/oauth/usage thanks @Blimp-Labs

- Fixed versioning in app
v1.0.8
2026-03-05 17:25:43 +10:00
Craig Constable
55d3a88b16 v1.0.7
- Added ability to drag widget to desired position

- Using C:\Users\CraigConstable\AppData\Roaming\ClaudeCodeUsageMonitor\settings.json to store position and update frequency

- Updated README.md
v1.0.7
2026-03-05 09:01:31 +10:00
Craig Constable
9941c9a46d v1.0.6
- Added new function to find the claude CLI

- Using `claude -p .` to force OAuth refresh as `claude auth status` did not work

- Fixed handling of 'Start with Windows'

- Widened text display to fit values like '80% . 44m' (thank you @wangsu)
2026-03-05 08:22:59 +10:00
Craig Constable
fcad7fb848 v1.0.5
- Removed custom OAuth token refresh logic that was inadvertently invalidating Claude Code's refresh token via token rotation

- Removed hardcoded OAuth constants (token URL, client ID, scopes) no longer needed

- Removed in-memory token cache (CachedTokens, TOKEN_CACHE) no longer needed

- Delegate token refresh to the Claude CLI (claude auth status) so it manages its own credentials and writes updated tokens to disk

- Re-read credentials file after CLI refresh to pick up the fresh access token

- Simplified Credentials struct by removing unused refresh_token field
v1.0.5
2026-03-01 14:53:27 +10:00
Craig Constable
6a3275517e v1.0.4
- Cache refreshed OAuth tokens in memory to survive across poll cycles
2026-03-01 14:41:29 +10:00
Craig Constable
187d12250c v1.0.3
- Adjusted row spacing - changed from 5px/7px/8px (top/gap/bottom) to 5px/10px/5px for even vertical centering
v1.0.3
2026-02-27 08:04:29 +10:00
Craig Constable
266b8d5fb5 v1.0.2
- Seconds countdown below 61s - shows 1m at 61s, then 60, 59... 0 counting down each second, then now when reset time passes

- Fast polling at reset - when either timer shows now, polls the API every 5s to pick up fresh rate limit data

- Auto-restores normal polling - stops the 5s fast poll as soon as fresh data comes back with a new reset time
2026-02-27 07:56:00 +10:00
Craig Constable
d8d15dcdba v1.0.1
- Token auto-refresh - when the OAuth token is expired, the app uses the refresh token to get a new access token in-memory (no disk writes)

- Show '...' on error - any poll failure shows the refresh indicator instead of cryptic error text

- Exponential backoff retry - on failure, retries at 30s, 60s, 120s... up to the poll interval, then restores normal interval on success

- Countdown guard - the countdown timer no longer overwrites '...' with stale cached data during error state

- Cleaned up error handling - removed Display impl, error message formatting, extract_error_message, and simplified try_model to return Option<UsageData>
2026-02-27 07:12:00 +10:00
Craig Constable
a432004680 v1.0.0
Add taskbar widget for monitoring Claude Code API usage
v1.0.0
2026-02-26 22:33:22 +10:00