Fixed
lean-ctx updatecreates.zshenvon systems without zsh (#309):install_all_with_style()unconditionally wrote shell hooks for both zsh and bash regardless of whether the shell was installed. Now checks for shell binary existence (/bin/zsh,/usr/bin/zsh, etc.) before installing hooks. Systems with only bash no longer get a spurious.zshenv.lean-ctx config setrejects valid config keys (#308): Theconfig setcommand only supported ~12 hardcoded keys while the config schema defines 80+. Implemented a generic schema-based setter (config/setter.rs) that validates any key against the ConfigSchema, parses values by type (bool, integer, float, string, enum, string[]), and performs a TOML round-trip with full serde validation. Keys likeproxy_enabled,profile,compression_level,memory_profilenow work as expected.
Added
lean-ctx gain: 30-day USD savings (#307): The dashboard now shows a "past 30 days" line with the estimated dollar savings for the last 30 days, in addition to the all-time total.lean-ctx gain: version in Recent Days header (#307): The "Recent Days" section now displays the current lean-ctx version (e.g.v3.6.23) for easier troubleshooting in screenshots.- Generic
config setwith enum validation: Setting enum keys (e.g.compression_level) now shows allowed values on invalid input instead of a generic error.
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.6.23...v3.6.23