fix(tui): preserve memory monitor in-flight guard

Copilot caught that clearing inFlight on a transient normal-memory tick could
allow a second dump/eviction to start before the first async tick completed.
Only clear dumped on normal; let the in-flight tick's finally remove its own
level.

Tests:
- cd ui-tui && npm run type-check && npm run build
This commit is contained in:
Brooklyn Nicholson 2026-04-29 00:44:04 -05:00
parent d341af22c0
commit c2fd0fa684

View File

@ -68,7 +68,6 @@ export function startMemoryMonitor({
if (level === 'normal') {
dumped.clear()
inFlight.clear()
return
}