Skip to content

v0.3.8

Choose a tag to compare

@zanjonke zanjonke released this 24 Jul 09:05
· 32 commits to main since this release

New release 🎉

Hello everyone! We are releasing a new version of codeplain - 0.3.8!

Run uv tool upgrade codeplain in your terminal to upgrade!

New features & improvements

  • Live credit usage in the TUI. A new usage line (functionalities / used credits / render time) appears beneath the render status while rendering, and freezes on success, failure, and cancellation. Wording now matches the console post-render summary.
  • Color-highlighted log messages. Retry and success messages are highlighted in color in the TUI, while file logs stay plain text.
  • Examples downloaded from a Cloudflare R2 bucket during install, simplifying the install scripts.
  • Windows-compatible date formatting in the status output, plus install-script logging improvements.

Fixes

  • Fixed render time reporting 0 on failure and cancellation — the live elapsed time is now captured on every terminal path so the TUI line and console summary agree.
  • Fixed format_duration_hms mangling whole-second inputs (e.g. 10s rendered as 1s).
  • Elapsed render time now flows through a single RunState.get_live_render_time() accessor, removing duplicated timing logic across log timestamps, the TUI, and the summary.

Internal improvements

  • New root usage_summary.py as the single source of truth for the usage line, shared by the console summary and the TUI (kept at root so the TUI stays independent of cli_output/ and the renderer).
  • Added tests for the TUI usage line, usage summary, RunState, duration formatting, and console log styles.
  • Bump dependencies: mypy (2.1.0 → 2.3.0), sentry-sdk (2.63.0 → 2.66.0), gitpython (3.1.50 → 3.1.52).