-
feat: memory_cleanup setting (aggressive/shared idle TTL)
Release / Build aarch64-apple-darwin (push) Has been cancelledRelease / Build x86_64-apple-darwin (push) Has been cancelledRelease / Build aarch64-unknown-linux-musl (push) Has been cancelledRelease / Build aarch64-unknown-linux-gnu (push) Has been cancelledRelease / Build x86_64-unknown-linux-musl (push) Has been cancelledRelease / Build x86_64-unknown-linux-gnu (push) Has been cancelledRelease / Build x86_64-pc-windows-msvc (push) Has been cancelledRelease / Create Release (push) Has been cancelledRelease / Publish to crates.io (push) Has been cancelledRelease / Publish to npm (push) Has been cancelledRelease / Update Homebrew (push) Has been cancelled发布于
2026-05-11 11:29:59 +00:00 Add
memory_cleanupconfig option with two modes:- aggressive (default): 5 min idle TTL, optimized for single-IDE use
- shared: 30 min idle TTL, optimized for multi-IDE/multi-model workflows
Configurable via config.toml or LEAN_CTX_MEMORY_CLEANUP env var.
Wired into cache TTL, visible inlean-ctx doctorandlean-ctx config.
Includes 7 unit tests. Suggested by sb.Co-authored-by: Cursor cursoragent@cursor.com
下载附件