Skip to content

Session replay skips tool calls and tool results #11

@kowyo

Description

@kowyo

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

  1. Run a session that involves tool use (e.g., agent executes a tool)
  2. Use session replay feature to display the history
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions