v1.7.1-beta.2 - Duplicate Output Fix
Pre-release
Pre-release
Fixed
- Duplicate Text Output - Resolved text appearing twice in terminal (streaming + final render)
- Changed
render_streaming_text()to check console object directly instead ofuse_richflag - The
use_richflag could be incorrectly set or out of sync with actual console state - Now checks if
console is not Noneas 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.pyto use renderer'sshould_skip_streaming_display()method for consistency
- Changed
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.1b2Testing
- All 510 unit tests passing
- Ready for Windows testing