github yvgude/lean-ctx v3.5.20

latest releases: v3.8.15, v3.8.14, vscode-v0.2.0...
one month ago

Fixed

  • Codex installer respects CODEX_HOMElean-ctx init --agent codex now reads the CODEX_HOME environment 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 when CODEX_HOME pointed elsewhere. All 11 call sites updated to use resolve_codex_dir(). Fixes #202.
  • Codex feature flag migrated from codex_hooks to hooks — The installer now writes hooks = true (the current Codex feature flag) instead of the deprecated codex_hooks = true. Existing codex_hooks = true entries are automatically migrated to hooks = true during install. The uninstall parser also handles both variants. Fixes #203.
  • lean-ctx ls rejects unsupported flags — Flags like -la, -l, -R are 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 pass ls flags transparently to the system ls. Fixes #201.
  • Windows path format for inline rewriteshandle_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 via normalize_tool_path(). Bash shell hooks still use to_bash_compatible_path() as before. New from_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 new from_bash_to_native_path() tests including Windows/Unix roundtrips. Platform-specific sanitize_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-ctx

Note: After upgrading via cargo/npm/brew, run lean-ctx setup to refresh shell aliases. lean-ctx update does this automatically.

Full Changelog: v3.5.20...v3.5.20

Don't miss a new lean-ctx release

NewReleases is sending notifications on new releases.