Skip to content

v1.6.9 - Fix Duplicate Startup Display

Choose a tag to compare

@jwesleye jwesleye released this 31 Dec 18:26
· 87 commits to main since this release

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:

  1. First display on initial startup
  2. 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 --resume is specified:
    • Initial banner display is skipped (line 2352-2353)
    • Banner displays after resume completes (success or failure)
  • When --resume is 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-loop

Verify version:

pip show basic-agent-chat-loop | grep Version
# Should show: Version: 1.6.9

🤖 Generated with Claude Code