发布

  • feat: memory_cleanup setting (aggressive/shared idle TTL)
    Release / Build aarch64-apple-darwin (push) Has been cancelled
    Release / Build x86_64-apple-darwin (push) Has been cancelled
    Release / Build aarch64-unknown-linux-musl (push) Has been cancelled
    Release / Build aarch64-unknown-linux-gnu (push) Has been cancelled
    Release / Build x86_64-unknown-linux-musl (push) Has been cancelled
    Release / Build x86_64-unknown-linux-gnu (push) Has been cancelled
    Release / Build x86_64-pc-windows-msvc (push) Has been cancelled
    Release / Create Release (push) Has been cancelled
    Release / Publish to crates.io (push) Has been cancelled
    Release / Publish to npm (push) Has been cancelled
    Release / Update Homebrew (push) Has been cancelled

    frostbyte_neo 发布于 2026-05-11 11:29:59 +00:00

    Add memory_cleanup config 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 in lean-ctx doctor and lean-ctx config.
    Includes 7 unit tests. Suggested by sb.

    Co-authored-by: Cursor cursoragent@cursor.com

    下载附件