Added
- Cross-agent cache benchmark — new
bench_cross_agent_cacheexample for
measuring OCLA delivery registry performance across concurrent agents. - npm postinstall: multi-method download fallback — Windows installs now
try PowerShellInvoke-WebRequest,curl.exe, andnode-fetchsequentially,
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 reinstall —
npx lean-ctx-binnow runs
onboardand 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 insidespawn_blockingsince #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-loopsctx_patch,ctx_edit:spin_read!/spin_write!macrosctx_tools: isolatedcurrent_threadruntimemulti_path:try_read_ownedspin-loop
This fixes the “lean-ctx internal error” affecting.rs/.cfile reads when
cache misses triggered the post-processing write-lock path.
- OCLA delivery registry: mtime no longer a cache discriminator —
blake3
content hash is the sole identity for cross-agent cache hits. Previously,
git checkout/rebasechanged 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-ctxNote: After upgrading via cargo/npm/brew, run
lean-ctx setupto refresh shell aliases.lean-ctx updatedoes this automatically.
Full Changelog: v3.9.16...v3.9.16