fix(tui): address Copilot review follow-ups

Keep history metadata consistent with lineage replay, globally order replayed lineage messages, and make Ink cache eviction report post-eviction sizes. Also keys TUI config cache by path to avoid cross-home test leakage.
This commit is contained in:
Brooklyn Nicholson 2026-04-26 21:24:54 -05:00
parent 2e4b65b9f5
commit dda12775f2
3 changed files with 16 additions and 16 deletions

View file

@ -34,7 +34,6 @@ export function inkCacheSizes(): InkCacheSizes {
export type EvictLevel = 'all' | 'half'
export function evictInkCaches(level: EvictLevel = 'half'): InkCacheSizes {
const before = inkCacheSizes()
const keep = level === 'half' ? 0.5 : 0
evictWidthCache(keep)
@ -42,5 +41,5 @@ export function evictInkCaches(level: EvictLevel = 'half'): InkCacheSizes {
evictSliceCache(keep)
evictLineWidthCache(keep)
return before
return inkCacheSizes()
}