v1.6.9 - Fix Duplicate Startup Display
What's Fixed
Critical Bug Fix: Eliminates duplicate banner and agent initialization messages during startup with --resume flag
The Issue
When starting the chat loop with --resume flag, the banner (including agent metadata, tool loading, and initialization messages) was displayed twice:
- First display on initial startup
- Second display after successful session resumption
This caused duplicate messages like:
- "loaded .env ..."
- "Loaded system prompt..."
- "Tool Loading Summary ..."
- "Tools: X available"
Root Cause
The startup flow at chat_loop.py:2350-2408 unconditionally displayed the banner first, then if resume succeeded, displayed it again with the comment "Clear and redisplay banner after resume" - but the clear never happened.
The Fix
- Banner now displays only once during startup
- When
--resumeis specified:- Initial banner display is skipped (line 2352-2353)
- Banner displays after resume completes (success or failure)
- When
--resumeis NOT specified:- Banner displays immediately as before
Test Coverage
All scenarios now properly display banner exactly once:
✅ Normal startup (no --resume)
✅ Resume with picker (--resume or --resume pick)
✅ Resume with specific session ID (--resume )
✅ Resume failed/cancelled
✅ No sessions found
Testing:
- All 318 tests passing
- Verified single banner display in all code paths
Installation:
pip install --upgrade basic-agent-chat-loopVerify version:
pip show basic-agent-chat-loop | grep Version
# Should show: Version: 1.6.9🤖 Generated with Claude Code