{% 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 }} {# ── Turn Info ── #}
Model {{ turn.model.replace("claude-","") }}
Time {{ turn.timestamp[:19].replace("T", " ") }}
Cost {{ format_cost(turn.cost_usd) }}
Input {{ format_tokens(turn.usage.get("input_tokens", 0)) }}
Output {{ format_tokens(turn.usage.get("output_tokens", 0)) }}
{% if turn.duration_seconds %}
Duration {{ format_duration(turn.duration_seconds) }}
{% endif %}
{# ── Conversation ── #} {% if turn.user_prompt_full or turn.assistant_content %}

Conversation

{% if turn.user_prompt_full %}
👤 User
{{ turn.user_prompt_full | markdown }}
{% endif %} {% if turn.assistant_content %}
🤖 Assistant
{% for block in turn.assistant_content %} {% if block.get("type") == "thinking" and block.get("thinking", "")|length > 0 %}
Thinking ({{ block.get("thinking","")|length|string }} chars)
{{ block.get("thinking","") }}
{% elif block.get("type") == "text" %}
{{ block.get("text","") | markdown }}
{% elif block.get("type") == "tool_use" %}
🔧 {{ block.get("name","tool") }} {{ block.get("id","")[:16] }}…
{% endif %} {% endfor %}
{% endif %} {% endif %} {# ── Tool Calls ── #} {% if turn.tool_calls %}

Tool Calls

{% for tc in turn.tool_calls %}
🔧 {{ tc.name }} {% if tc.input and tc.input.get("file_path") %}{{ tc.input.get("file_path") }}{% endif %} {{ tc.tool_use_id[:16] }}…
{% if tc.input %}
{{ tc.input | tojson(indent=2) }}
{% endif %} {% if tc.result_content %} {% 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 %}