Added
- Smart Shell Mode: New
-t/--tracksubcommand for human shell usage — full output preserved, only stats recorded. Shell aliases (_lc) now default to track mode instead of compress mode, eliminating unwanted output compression for interactive users. lean-ctx-modeshell function: Switch betweentrack(default),compress, andoffmodes without editing config files. Available in both POSIX (bash/zsh) and Fish shells._lc_compressshell function: Explicit compression wrapper for power users who want compressed output in their terminal.- Unified Rewrite Registry (
rewrite_registry.rs): Single source of truth for all 24+ rewritable commands, used consistently across shell aliases, hook rewrite, and compound command lexer. - Compound Command Lexer (
compound_lexer.rs): Intelligent splitting of&&,;,||compound commands for selective rewriting — only rewritable segments get wrapped with-c. - Extended hook support: Copilot hooks now recognize
runInTerminal,run_in_terminal,shell, andterminaltool names in addition toBash/bash. - Dashboard API routes: New
/api/symbols,/api/call-graph,/api/routes,/api/searchendpoints for the web dashboard. - 22 IDE/agent targets: Rules injection now supports Crush, Verdent, Pi Coding Agent, AWS Kiro, Antigravity, Qwen Code, Trae, Amazon Q Developer, and JetBrains IDEs (22 total).
Fixed
- Shell commands compressed for humans (#101):
ls,git status, and other aliased commands were always compressed because_lcused-c. Now defaults to-t(track) which preserves full output. - "Authorization required" on Ubuntu (#101):
exec_bufferedpipe redirection triggered X11/Wayland auth errors on headless Linux. Track mode usesexec_inherit_tracked(direct stdio), avoiding this entirely. - Token counting accuracy:
stats::recordnow usescount_tokens()(tiktoken) instead of byte length for output measurement. - Dashboard Windows path normalization: Compression Lab demo paths now correctly handle Windows absolute paths (merged PR #102).
- Dashboard "d streak" label: Fixed to display "days streak" (merged PR #106).
Community
- Merged PR #102 — fix compression lab path resolution (@frpboy)
- Merged PR #103 — add symbols API route (@frpboy)
- Merged PR #104 — add call graph API route (@frpboy)
- Merged PR #106 — fix dashboard streak label (@frpboy)
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 with the new Smart Shell Mode.lean-ctx updatedoes this automatically.
Full Changelog: v3.2.1...v3.2.2