github yvgude/lean-ctx v3.9.16

3 hours ago

Added

  • Cross-agent cache benchmark — new bench_cross_agent_cache example for
    measuring OCLA delivery registry performance across concurrent agents.
  • npm postinstall: multi-method download fallback — Windows installs now
    try PowerShell Invoke-WebRequest, curl.exe, and node-fetch sequentially,
    fixing installs behind corporate proxies and restrictive PATH configs.
  • npm postinstall: progress + timeouts — download progress is shown inline
    with configurable timeouts (60s connect, 300s total), preventing silent hangs.
  • npm postinstall: re-onboard on reinstallnpx lean-ctx-bin now runs
    onboard and shows the quick-start guide on reinstall, not just first install.

Fixed

  • CRITICAL: “Cannot start a runtime from within a runtime” panic — tool
    handlers run inside spawn_blocking since #1018, where
    Handle::current().block_on() panics. All occurrences replaced with safe
    alternatives:
    • ctx_read, ctx_delta, ctx_fill, ctx_knowledge, ctx_smart_read:
      bounded_lock::{read,write}() spin-loops
    • ctx_patch, ctx_edit: spin_read!/spin_write! macros
    • ctx_tools: isolated current_thread runtime
    • multi_path: try_read_owned spin-loop
      This fixes the “lean-ctx internal error” affecting .rs/.c file reads when
      cache misses triggered the post-processing write-lock path.
  • OCLA delivery registry: mtime no longer a cache discriminatorblake3
    content hash is the sole identity for cross-agent cache hits. Previously,
    git checkout/rebase changed mtime causing false cache misses despite
    identical content.
  • Flaky CI: index build SIGTERM — integration tests now skip gracefully on
    both SIGKILL (OOM) and SIGTERM (CI timeout) instead of panicking.
  • npm security — resolved Dependabot alerts for npm package dependencies.

Upgrade

lean-ctx update                 # recommended (auto-downloads + refreshes shell hooks)
cargo install lean-ctx          # or
npm update -g lean-ctx-bin      # or
brew upgrade lean-ctx

Note: After upgrading via cargo/npm/brew, run lean-ctx setup to refresh shell aliases. lean-ctx update does this automatically.

Full Changelog: v3.9.16...v3.9.16

Don't miss a new lean-ctx release

NewReleases is sending notifications on new releases.