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(tui): gauge shows live window fill, not cumulative session tokens
The header gauge and /stats divided sessionContextTokens by maxContext,
but odek reports that field as a cumulative sum (serve.go accumulates
sessionInputTokens every turn). The gauge could only grow, pinning at
100%+ (e.g. 158.9k/131k) even though odek trims history to stay within
budget.
Track the last turn's contextTokens as winCtxTok — the live window fill
— and drive the gauge and /stats ctx row from it, so the number drops
back down after a trim. The ∑ ⌂ footer summary keeps the cumulative
session total, which is what the sigma denotes.
0 commit comments