Description
Session replay via print_session_history incorrectly render tool use sessions. Tool calls and tool results are silently skipped during replay, making it impossible to reconstruct what actually happened during the session.
Steps to Reproduce
- Run a session that involves tool use (e.g., agent executes a tool)
- Use session replay feature to display the history
- Observe that tool calls and results are missing from the output
Expected Behavior
Session replay should display all message types including:
- Tool use blocks (
type == "tool_use")
- Tool result blocks (
type == "tool_result")
The reconstructed history should match what was originally displayed live.
Actual Behavior
print_session_history in src/mini_agent/cli/display/printing.py only handles:
- User messages where
content is a plain str
- Assistant messages where
content is a list — but only type == "text" blocks are printed
Tool use blocks and tool result turns are silently skipped and not shown at all.
Environment
- OS: macOS
- CLI Version: v0.11.0
Description
Session replay via
print_session_historyincorrectly render tool use sessions. Tool calls and tool results are silently skipped during replay, making it impossible to reconstruct what actually happened during the session.Steps to Reproduce
Expected Behavior
Session replay should display all message types including:
type == "tool_use")type == "tool_result")The reconstructed history should match what was originally displayed live.
Actual Behavior
print_session_historyinsrc/mini_agent/cli/display/printing.pyonly handles:contentis a plainstrcontentis a list — but onlytype == "text"blocks are printedTool use blocks and tool result turns are silently skipped and not shown at all.
Environment