v3.5.20
Fixed
- Codex installer respects
CODEX_HOME—lean-ctx init --agent codexnow reads theCODEX_HOMEenvironment variable to determine the Codex config directory. Previously, all Codex files (config.toml,hooks.json,AGENTS.md,LEAN-CTX.md) were always written to~/.codex, even whenCODEX_HOMEpointed elsewhere. All 11 call sites updated to useresolve_codex_dir(). Fixes #202. - Codex feature flag migrated from
codex_hookstohooks— The installer now writeshooks = true(the current Codex feature flag) instead of the deprecatedcodex_hooks = true. Existingcodex_hooks = trueentries are automatically migrated tohooks = trueduring install. The uninstall parser also handles both variants. Fixes #203. lean-ctx lsrejects unsupported flags — Flags like-la,-l,-Rare now rejected with a clear error message and usage hint instead of being silently treated as path arguments. Supported flags:--all/-a,--depth N. The shell hook continues to passlsflags transparently to the systemls. Fixes #201.- Windows path format for inline rewrites —
handle_rewrite_inline()(used by the OpenCode plugin) now returns native OS paths instead of unconditionally converting to Unix/MSYS format (/c/Users/...). On Windows,sanitize_exe_path()normalizes MSYS paths vianormalize_tool_path(). Bash shell hooks still useto_bash_compatible_path()as before. Newfrom_bash_to_native_path()function provides the inverse conversion. Fixes #204.
Added
- Path normalization tests — 11 new
normalize_tool_path()tests covering MSYS drives, backslashes, double slashes, trailing slashes, and verbatim prefixes. 6 newfrom_bash_to_native_path()tests including Windows/Unix roundtrips. Platform-specificsanitize_exe_path()tests for Windows MSYS normalization.
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.5.20...v3.5.20