Skip to content

Conversation

@MonkeyLeeT
Copy link

@MonkeyLeeT MonkeyLeeT commented Jan 27, 2026

Replace the hardcoded 1-hour (3600s) cost summary refresh interval with the user-configurable refresh cadence setting. The cost summary now refreshes on the same schedule as provider usage (1m, 2m, 5m, 15m, 30m).

Changes:

  • Remove hardcoded tokenFetchTTL constant from UsageStore
  • Update startTokenTimer() to use settings.refreshFrequency.seconds
  • Restart token timer when settings change (like provider timer)
  • Update UI text from "Auto-refresh: hourly" to show actual interval

Note: The CostUsageScanner already has internal 60-second caching, so no additional floor is needed at the app level.

Replace the hardcoded 1-hour (3600s) cost summary refresh interval with
the user-configurable refresh cadence setting. The cost summary now
refreshes on the same schedule as provider usage (1m, 2m, 5m, 15m, 30m).

Changes:
- Remove hardcoded tokenFetchTTL constant from UsageStore
- Update startTokenTimer() to use settings.refreshFrequency.seconds
- Restart token timer when settings change (like provider timer)
- Update UI text from "Auto-refresh: hourly" to show actual interval

Note: The CostUsageScanner already has internal 60-second caching, so
no additional floor is needed at the app level.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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