Skip to content

Show context cache hit rate with decimals / 使用小数显示上下文缓存命中率#4502

Merged
esengine merged 1 commit into
esengine:main-v2from
SivanCola:fix/cache-hit-rate-decimals
Jun 16, 2026
Merged

Show context cache hit rate with decimals / 使用小数显示上下文缓存命中率#4502
esengine merged 1 commit into
esengine:main-v2from
SivanCola:fix/cache-hit-rate-decimals

Conversation

@SivanCola

Copy link
Copy Markdown
Collaborator

Summary

  • Show the right-side context panel cache-hit metric with two decimal places instead of integer rounding.
  • Keep the existing low-cache health behavior by rounding only for the health threshold.
  • Add targeted coverage for 99.95%, 0.00%, and the no-usage - state.

Verification

  • git diff --check
  • npm run check:css
  • npx tsx src/__tests__/context-panel-breakdown.test.ts
  • Not run: npm run typecheck (blocked because generated Wails bindings are not present in this checkout: wailsjs/go/main/App, wailsjs/runtime/runtime)

Related

@SivanCola SivanCola requested a review from esengine as a code owner June 15, 2026 09:15
@github-actions github-actions Bot added desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development labels Jun 15, 2026
@SivanCola SivanCola enabled auto-merge June 15, 2026 09:28
@esengine esengine merged commit 5e4f460 into esengine:main-v2 Jun 16, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants