Conversation history tracking

t-507·WorkTask·
·
·
Created3 weeks ago·Updated3 weeks ago

Dependencies

Description

Edit

Track conversation history and inject into prompt:

  • Data type for history entries (User text, Assistant text + tool calls)
  • Format history as markdown for prompt injection
  • Append new entries after each turn

Timeline (5)

🔄[human]Open → InProgress3 weeks ago
💬[human]3 weeks ago

Conversation history tracking implemented and tested:

✅ Data type for history entries (UserMessage, AssistantMessage with tool calls) ✅ Format history as markdown for prompt injection (formatHistory function) ✅ Append new entries after each turn in replLoop ✅ History correctly passed between turns and injected into prompts

Tested with multi-turn conversation - agent correctly remembered previous question.

Next steps (for future improvements):

  • Extract actual tool calls from agent execution (currently storing empty list)
  • Consider adding /clear command to reset history
  • Add /history command to show conversation log
🔄[human]InProgress → Done3 weeks ago
Complete[engineer]{"verified":true}3 weeks ago