Critical Bug Fixes
Fixed: Shell hook breaks commands with quoted arguments (#41)
git commit -m "message with spaces" failed because the _lc() shell wrapper used $* which collapsed quoted arguments into a flat string. Git would see message, with, spaces as three separate pathspecs.
Fix: Changed to $@ (bash/zsh), unquoted $argv (fish), and splatted @args (PowerShell) to preserve argument boundaries.
To update your shell hook: Run lean-ctx init --global after updating.
Fixed: Terminal colors removed in normal terminal (#40)
When running commands through the shell hook in a real terminal (not an AI agent), colors were stripped because output was piped through a streaming buffer, causing isatty() to return false in child processes.
Fix: Interactive terminal mode now inherits stdout/stderr directly, preserving ANSI colors, prompts, and pager behavior. Compression only happens in non-interactive contexts (MCP tool calls, piped output).
Update
cargo install lean-ctx
npm i -g lean-ctx-bin
brew upgrade lean-ctx
lean-ctx init --global # re-install shell hook with fixFull Changelog: v2.14.1...v2.14.2