github yvgude/lean-ctx v2.17.0
v2.17.0 — Premium Experience Upgrade

latest releases: v3.9.6, v3.9.5, v3.9.4...
3 months ago

Premium Experience Upgrade — Architecture, Performance & Polish

Major internal refactoring for long-term maintainability, performance improvements for async I/O, unified error handling, and premium polish across CLI, dashboard, and CI pipeline.

Architecture

  • server.rs split — Monolithic server.rs (1918 lines) split into 4 focused modules: tool_defs.rs (620L), instructions.rs (159L), cloud_sync.rs (136L), server.rs (1001L). Each module has a single responsibility.
  • Centralized error handling — New LeanCtxError enum in core/error.rs with thiserror derive. From impls for io::Error, toml::de::Error, serde_json::Error.

Performance

  • Async I/O for ctx_shellexecute_command wrapped in tokio::task::spawn_blocking to prevent blocking the Tokio runtime during shell command execution.

CLI

  • Dynamic version — All hardcoded version strings replaced with env!("CARGO_PKG_VERSION").
  • report-issue exit code — Empty title now exits with status 1.
  • Theme migrationprint_command_box() migrated from hardcoded ANSI to core::theme system.
  • upgrade → updatelean-ctx upgrade now deprecation-delegates to lean-ctx update.

Dashboard

  • Offline fonts — Removed Google Fonts CDN dependency, system font stacks.
  • Dynamic version — Fetched from /api/version instead of hardcoded.
  • Empty state UX — Links to Getting Started guide.
  • Connection retry — Auto-retry with clear message when API unavailable.

Tool Robustness

  • ctx_search — Reports files skipped due to encoding/permission errors.
  • ctx_read — Warns on unknown mode, shows message when using cache fallback.
  • ctx_analyze / ctx_benchmark.unwrap()if let Some(...) safety.

CI

  • Deduplicated audit — Removed redundant cargo audit job.
  • Release testscargo test --all-features runs before release builds.

Setup

  • Compact doctordoctor::run_compact() for concise diagnostics during setup.

Full Changelog: v2.16.6...v2.17.0

Full Changelog: v2.16.6...v2.17.0

Don't miss a new lean-ctx release

NewReleases is sending notifications on new releases.