Skip to content

v2.14.4 — Fix LEAN_CTX_DISABLED shell hook bypass

Choose a tag to compare

@yvgude yvgude released this 02 Apr 13:57

Fixed

  • LEAN_CTX_DISABLED kill-switch now works end-to-end — The shell hook (bash/zsh/fish/powershell) previously ignored LEAN_CTX_DISABLED entirely. Setting it to 1 bypassed compression in the Rust code but the shell aliases were still loaded, spawning a lean-ctx process for every command. Now: _lc() short-circuits to command "$@" (zero overhead), auto-start guard skips alias creation, and lean-ctx -c does immediate passthrough. Closes #42.
  • lean-ctx-status shows DISABLED state when the kill-switch is active.
  • Help text documents both env varsLEAN_CTX_DISABLED=1 (full kill-switch) and LEAN_CTX_ENABLED=0 (prevent auto-start).

Upgrade

cargo install lean-ctx
# or: brew upgrade lean-ctx
# or: curl -fsSL https://leanctx.com/install.sh | sh

# IMPORTANT: Reinstall shell hook to get the fix
lean-ctx init --global

Full Changelog: v2.14.3...v2.14.4