Skip to content

v1.5.1 - Hotfix: Fixed Empty Agent Responses in Saved Conversations

Choose a tag to compare

@jwesleye jwesleye released this 29 Dec 19:42
· 136 commits to main since this release

🐛 Hotfix v1.5.1 - Fixed Empty Agent Responses in Saved Conversations

Critical Bugfixes

Fixed three bugs causing saved conversation files (.md and .json) to show only user queries without agent responses:

1. Streaming Event Parser (AWS Strands/Claude Agents)

  • Issue: Only handled .data attribute events, missing AWS Strands .delta events
  • Impact: Claude Sonnet 4.5 agents showed responses in terminal but saved empty files
  • Fix: Added comprehensive fallback handling for .delta, .text, and string events
  • Location: chat_loop.py:1369-1415

2. Conversation History Tracking

  • Issue: History only tracked when auto_save=True, breaking manual saves
  • Impact: Manual "save" command created empty files, "copy all" didn't work
  • Fix: Removed conditional tracking - history always tracked regardless of settings
  • Location: chat_loop.py:1595-1606

3. Harmony Processor Empty Channels

  • Issue: Empty Harmony channels overwrote actual response text
  • Impact: Non-Harmony agents could have responses replaced with empty strings
  • Fix: Preserve original text when channels are empty
  • Location: harmony_processor.py:219-226, 463-467, 502

Testing

  • ✅ Added comprehensive test suite (test_conversation_saving.py, 608 lines)
  • ✅ 9/9 core functionality tests passing
  • ✅ 326/331 total tests passing
  • ✅ All existing tests remain passing

What Now Works

✅ Universal support for all streaming formats (AWS Strands, Anthropic, etc.)
✅ Reliable conversation saving regardless of auto_save configuration
✅ Complete conversation history in both .md and .json files
✅ Manual commands ("save", "copy all") work correctly
✅ Session resume functionality works properly

Documentation

See BUGFIX_SUMMARY.md for detailed technical information.


Upgrade: pip install --upgrade basic-agent-chat-loop

Fixes user reports: "saved conversations only show my questions"