Skip to content

v2.12.5 — Fix shell hook output buffering

Choose a tag to compare

@yvgude yvgude released this 01 Apr 09:56
· 1666 commits to main since this release

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