Skip to content

fix(tui): show cache hit rate with two decimal places - #457

Merged
mohitranka merged 1 commit into
mainfrom
fix/cache-hit-percentage-decimals
Aug 27, 2026
Merged

mohitranka merged 1 commit into
mainfrom
fix/cache-hit-percentage-decimals

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

The footer's cache hit percentage was rounded to a whole number (90% cache). Keep the decimal places so short sessions don't all read 0% or 100%.

  • format_footer_usage_slot now formats the clamped ratio with {rate:.2}: 6.1k tokens · 90.32% cache.
  • Updated doc comments and unit tests to match.

@mohitranka
mohitranka merged commit 914fd69 into main Aug 27, 2026
7 checks passed
@mohitranka
mohitranka deleted the fix/cache-hit-percentage-decimals branch August 27, 2026 22:26
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