clear: reset ctxStats and lastUsage on /clear

This commit is contained in:
Levi Neely 2026-04-06 21:46:43 +02:00
parent 7714243291
commit f6f3f60428
1 changed files with 2 additions and 0 deletions

View File

@ -1038,6 +1038,8 @@ func (m *model) handleCommand(input string) bool {
m.session = nil
m.display = nil
m.buf = ""
m.ctxStats = agent.ContextStats{}
m.lastUsage = backend.Usage{}
if m.invalidateCaches != nil {
m.invalidateCaches()
}