mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-07 02:51:50 +00:00
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:
parent
2e4b65b9f5
commit
dda12775f2
3 changed files with 16 additions and 16 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue