github yvgude/lean-ctx v3.5.8

latest releases: v3.8.11, v3.8.10, v3.8.9...
one month ago

Security

  • CodeQL #40 (High): XSS in dashboard searchcockpit-search.js fallback esc() function was function(s) { return String(s); } — no HTML escaping. Replaced with safe textContentinnerHTML implementation matching format.js.
  • CodeQL #38/#39 (Medium): Unpinned GitHub Actionscodecov/codecov-action@v4 and EmbarkStudios/cargo-deny-action@v2 are now pinned to commit SHAs (b9fd7d16…, 5bb39ff5…) in ci.yml.

Fixed

  • Codex config corruption on mode change (GitHub #189) — When lean-ctx setup or lean-ctx update ran with v3.5.6 (where Codex was CLI-Redirect mode), remove_codex_toml_section removed the [mcp_servers.lean-ctx] parent section but left orphaned sub-tables like [mcp_servers.lean-ctx.env], causing Codex to fail with "invalid transport in mcp_servers.lean-ctx".
    • remove_codex_toml_section now removes all TOML sub-tables via prefix matching when removing a parent section.
    • ensure_codex_mcp_server now detects orphaned sub-tables and inserts the parent section before them instead of appending at the end.
    • ensure_codex_mcp_server now uses toml_quote_value for Windows backslash-safe TOML quoting (was using raw format! with double quotes).

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.8...v3.5.8

Don't miss a new lean-ctx release

NewReleases is sending notifications on new releases.