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:
parent
d341af22c0
commit
c2fd0fa684
@ -68,7 +68,6 @@ export function startMemoryMonitor({
|
||||
|
||||
if (level === 'normal') {
|
||||
dumped.clear()
|
||||
inFlight.clear()
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user