Files
pi/packages/coding-agent/src/core
T
Mario Zechner 7eb969ddb1 fix(coding-agent): show unknown context usage after compaction, fix multi-compaction boundary
After compaction, context token count is unknown until the next LLM
response. Instead of showing stale pre-compaction values or heuristic
estimates, the footer now shows ?/200k.

ContextUsage.tokens and ContextUsage.percent are now number | null
(breaking change). Removed usageTokens, trailingTokens, lastUsageIndex
from ContextUsage (internal details).

Also fixed _checkCompaction() using .find() (first compaction) instead
of getLatestCompactionEntry() (latest), which caused incorrect overflow
detection with multiple compactions.

Closes #1382
7eb969ddb1 ยท 2026-02-12 18:35:09 +01:00
History
..
2026-01-23 15:05:08 +01:00
2026-01-11 23:12:31 +01:00
2025-12-22 19:28:26 +01:00