{% extends "base.html" %} {% block title %}Turn Detail — {{ session.title }}{% endblock %} {% block breadcrumb %} All Days / {{ session.date }} / {{ session.title }} / Turn Detail {% endblock %} {% block content %} ← Back to {{ session.title }}

Model: {{ turn.model.replace("claude-","") }}  |  Time: {{ turn.timestamp[11:19] }}  |  Cost: {{ format_cost(turn.cost_usd) }}

{% if turn.user_prompt_full or turn.assistant_content %}

Conversation

{% if turn.user_prompt_full %}
User
{{ turn.user_prompt_full }}
{% endif %} {% if turn.assistant_content %}
Assistant
{% for block in turn.assistant_content %} {% if block.get("type") == "thinking" %}
Thinking ({{ block.get("thinking","")|length }} chars)
{{ block.get("thinking","") }}
{% elif block.get("type") == "text" %}
{{ block.get("text","") }}
{% elif block.get("type") == "tool_use" %}
{{ block.get("name","tool") }} tool call → {{ block.get("id","")[:16] }}…
{% endif %} {% endfor %}
{% endif %} {% endif %} {% if turn.tool_calls %}

Tool Calls

{% for tc in turn.tool_calls %}
{{ tc.name }} {{ tc.tool_use_id[:16] }}…
{% if tc.input %}
Input
{{ tc.input | tojson(indent=2) }}
{% endif %} {% if tc.result_content %}
Result
{% for item in tc.result_content %} {% if item.get("type") == "text" %}
{{ item.get("text","") }}
{% elif item.get("type") == "tool_reference" %} [tool_reference: {{ item.get("tool_name","") }}] {% else %}
{{ item | tojson(indent=2) }}
{% endif %} {% endfor %}
{% endif %}
{% endfor %} {% endif %} {% if not turn.tool_calls and not turn.user_prompt_full and not turn.assistant_content %}
No detail available for this turn.
{% endif %} {% endblock %}