Fix: Cross-Platform Hook Handlers (#49)
Fixed
- Windows: PreToolUse hook errors — Agent hooks (Claude Code, Cursor, Gemini) no longer require Bash. Hook logic is now implemented natively in the lean-ctx binary via
lean-ctx hook rewriteandlean-ctx hook redirect - "Stuck in file reading" — Fixed hook redirect loop where denied Read/Grep tools caused repeated retries when the MCP server wasn't properly connected
- Hook auto-migration — Existing
.sh-based hook configs are automatically upgraded to native binary commands on next MCP server start
Upgrade
cargo install lean-ctx # or
npm update -g lean-ctx-bin # or
brew upgrade lean-ctxAfter upgrading, run lean-ctx setup to migrate hooks to native mode, or restart your AI tool to trigger auto-migration.
Full Changelog: v2.17.1...v2.17.2
Full Changelog: v2.17.1...v2.17.2