mirror of
https://github.com/Gitlawb/openclaude.git
synced 2026-08-24 02:34:15 -05:00
- Add memory pressure monitor (RSS-based) with 4 levels: normal/elevated/high/critical - Add memory compaction trigger that fires when pressure is elevated or critical - Add per-session memory budget calculation (total budget / max concurrent sessions) - Add concurrent session limiter using semaphore pattern - Wire into QueryEngine auto-compact path with skipTokenCheck for forceReason - Guard forceReason by querySource to prevent recursive deadlock - Extract monitor startup into shared startMemoryMonitorIfNeeded() helper - Call from both headless and interactive REPL paths (idempotent) Co-authored-by: oyi77 <oyi77@users.noreply.github.com>