Fixed
- #478 — JetBrains plugin now writes its backend port file to
XDG_DATA_HOME,
matching the Rustdata_dir. After the #408 path refactor,LeanCtxPaths
treatedconfig.tomlas a data marker and fell back toXDG_CONFIG_HOME, so
the plugin wrote the port file under~/.config/lean-ctxwhile the Rust reader
looks under~/.local/share/lean-ctx. The file was never found
(BACKEND_REQUIRED), disabling every IDE-sidectx_*action. Data-dir
resolution now mirrors the Rust implementation (single-dir override, layout
pin, data-only markers withconfig.tomlexcluded), with regression tests for
fresh installs, mixed configs and XDG pins. Thanks @dasTholo. lean-ctx uninstallnow also removes the auto-update agent and every XDG
data directory. A full uninstall left the 6-hourly self-update LaunchAgent
(com.leanctx.autoupdate) running and never deleted the real runtime dirs
(~/.local/share,~/.local/state,~/.cache— >150 MB), because
remove_data_dirresolved throughdirs::data_dir(), which collapses onto
~/Library/Application Supporton macOS. Uninstall now calls
update_scheduler::remove_schedule()and resolves every XDG category through
core::paths(honoringLEAN_CTX_*_DIR/XDG_*), with a regression test that
asserts every canonical directory is covered exactly once.- Onboarding command box now shows
LEAN_CTX_DISABLED=1instead of the
non-existentlean-ctx off/ontoggle. The box advertised subcommands
that don't exist (they fail with "unknown command"); the real global switch is
theLEAN_CTX_DISABLED=1environment variable.
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.8.11...v3.8.11