Skip to content

v1.7.1-beta.2 - Duplicate Output Fix

Pre-release
Pre-release

Choose a tag to compare

@jwesleye jwesleye released this 05 Jan 15:36
· 61 commits to main since this release

Fixed

  • Duplicate Text Output - Resolved text appearing twice in terminal (streaming + final render)
    • Changed render_streaming_text() to check console object directly instead of use_rich flag
    • The use_rich flag could be incorrectly set or out of sync with actual console state
    • Now checks if console is not None as single source of truth for Rich availability
    • If console exists → skip streaming output (Rich will render later)
    • If console is None → print streaming text (plain text mode)
    • Updated chat_loop.py to use renderer's should_skip_streaming_display() method for consistency

Technical Details

The root cause was using the use_rich flag to determine whether to skip streaming output. This flag is set during initialization and could become out of sync with the actual console object state. By checking the console object directly (self.console is not None), we ensure the decision is based on the actual availability of Rich rendering, not a potentially stale flag value.

What's Included from Previous Beta

This release also includes all fixes from v1.7.1-beta.1:

  • Template command parsing bug fix
  • Windows Rich console compatibility improvements

Installation

# Install the latest beta
pip install --pre basic-agent-chat-loop

# Or specify exact version
pip install basic-agent-chat-loop==1.7.1b2

Testing

  • All 510 unit tests passing
  • Ready for Windows testing