github yvgude/lean-ctx v2.12.5
v2.12.5 — Fix shell hook output buffering

latest releases: v3.7.5, v3.7.4, v3.7.3...
2 months ago

Fixed

  • Shell hook output buffering: Commands routed through lean-ctx -c (via shell aliases) now stream output in real-time instead of buffering until completion. Progress bars, build output, and streaming logs appear immediately as they happen
  • Excluded command overhead: Interactive tools (vim, htop, ssh, etc.) now use Stdio::inherit() directly for zero-overhead passthrough

Changed

  • Shell exec refactored into 3 distinct modes:
    • exec_inherit — zero-overhead passthrough for interactive tools
    • exec_streaming — real-time output via parallel threads for terminal sessions
    • exec_buffered — compressed output for AI agents (unchanged)
  • Streaming mode captures output in parallel threads (4KB chunks) for stats recording while forwarding to terminal with immediate flush
  • Savings summary shown on stderr after streaming commands complete (only when >50 tokens and >10% savings)

Full Changelog: v2.12.4...v2.12.5

Full Changelog: v2.12.4...v2.12.5

Don't miss a new lean-ctx release

NewReleases is sending notifications on new releases.