mirror of
https://github.com/jarrodwatts/claude-hud.git
synced 2026-05-04 19:42:40 +00:00
* fix(context): scale autocompact buffer by raw usage to avoid inflated percentages at low context Previously the buffered context percentage applied a flat 22.5% buffer regardless of actual usage. This caused the HUD to show ~28% context used immediately after /clear or at session start, when real usage was only ~5%. The fix scales the buffer linearly: zero buffer at ≤5% raw usage, ramping to full buffer at ≥50%, matching when autocompact actually kicks in. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * test: harden autocompact buffer startup coverage --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Jarrod Watts <jarrod@cubelabs.xyz>