Fixed
- Critical: shell hook recursion causing 100% CPU/memory — The
.zshenv/.bashenvshell hooks introduced in v3.2.4 were missing theLEAN_CTX_ACTIVErecursion guard. When an AI agent (Claude Code, Codex, etc.) ran a command,lean-ctx -cspawned a new shell that re-triggered the hook infinitely, causing a fork bomb. Fixed by checkingLEAN_CTX_ACTIVEbefore intercepting and adding a double-guard inexec(). Users must runlean-ctx setupafter updating to refresh the hooks.
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.2.5...v3.2.5