Skip to content

Prevent status bar animations on timer updates#158

Merged
rajbos merged 1 commit intomainfrom
reloading
Jan 30, 2026
Merged

Prevent status bar animations on timer updates#158
rajbos merged 1 commit intomainfrom
reloading

Conversation

@rajbos
Copy link
Owner

@rajbos rajbos commented Jan 30, 2026

This pull request introduces a caching mechanism for detailed token statistics in the CopilotTokenTracker class to improve performance and reduce unnecessary recalculations. The main change is the introduction of a lastDetailedStats property, which stores the most recently calculated stats and reuses them when available. Additionally, the updateTokenStats method now supports a silent mode to suppress progress updates during background refreshes.

Caching and performance improvements:

  • Added a lastDetailedStats property to cache the most recently calculated DetailedStats and avoid redundant recalculations in the CopilotTokenTracker class. [1] [2] [3]
  • Modified the updateTokenStats method to accept a silent parameter, allowing background updates without showing progress in the status bar. [1] [2]

@rajbos rajbos enabled auto-merge January 30, 2026 15:13
@rajbos rajbos merged commit 2712cd8 into main Jan 30, 2026
13 checks passed
@rajbos rajbos deleted the reloading branch January 30, 2026 15:15
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

Comments