You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix the auto-compact bar briefly showing the model's full window (e.g. 0% 1M) at the very start of a session. Claude Code sends context_window.total_input_tokens as 0 on a fresh session's first frame, and v0.9.1 only recomputed against the auto-compact window when that value was > 0 — so the bar (and its 1M label) fell back to the full window until the first API response landed, the exact 1M flash issue #15 set out to remove. The recompute now fires whenever the field is present, including a genuine 0, and falls back to the full window only when Claude Code omits the field entirely (older CC that predates total_input_tokens). jq now emits a -1 sentinel for the missing field so a real 0 (fresh-session first frame) and an absent field no longer collapse to the same value (follow-up to #15)
Add regression coverage for the present-zero first frame measuring against the compact window, plus an explicit guard that a missing field never relabels to the compact window