v1.7.1 - Stable Release: Double-Output Fix + Load Template
🎉 Version 1.7.1 - Stable Release
Major Bug Fix
Fixed double-output bug where text appeared twice in the terminal (unformatted during streaming, then formatted at the end).
Root Cause
After extensive diagnostic work across beta.6-8, we discovered that AWS Strands and similar agent libraries print accumulated response text to stdout during async generator execution. This caused text to appear twice when using Rich markdown formatting.
Solution
- Configurable stdout suppression during streaming (
behavior.suppress_agent_stdout) - Suppression only active during yield back to stream_async (between iterations)
- Stdout restored during event processing so tool calls and logging work normally
- Enabled by default for clean output
New Feature
New /load template for loading markdown files into context
- Loads all .md files from a directory (non-recursive)
- Usage:
/load(current dir) or/load path/to/dir - Automatically created in
~/.prompts/on first run
Default Templates (Now 7)
/explain- Explain code/review- Code review/debug- Debug help/optimize- Optimize code/test- Write tests/document- Add documentation/load- NEW - Load markdown files
Configuration
Stdout suppression is enabled by default. To configure:
behavior:
suppress_agent_stdout: true # Recommended (default)Or use the wizard:
chat_loop --wizardInstallation
# Stable release (recommended)
pip install --upgrade basic-agent-chat-loop
# Or specific version
pip install basic-agent-chat-loop==1.7.1Upgrading from Beta
If you were on any 1.7.1-beta version:
- Upgrade:
pip install --upgrade basic-agent-chat-loop - If you see YAML config errors, reset:
chat_loop --reset-config - Test with your agent - no more double output!
Changes Since 1.7.0
- Fixed double-output bug with configurable stdout suppression
- Added
/loadtemplate for loading markdown files - Improved code quality (linting fixes)
- Enhanced default configuration
Testing Status
- ✅ Confirmed working with AWS Strands agents
- ✅ Tool calls and logging fully functional
- ✅ Rich markdown rendering working perfectly
- ✅ No more duplicate output
Known Issues
None - this is a stable, production-ready release!
Thank you to everyone who helped test the beta versions and report issues! 🙏