{% extends "base.html" %} {% block content %}

{{ session.id[:12] }}

{{ session.workspace_path }}

{{ session.ide }} {{ (session.started_at or "")[:19] }}
Turns
{{ turns|length }}
Session Cost
${{ "%.4f"|format(total_cost) }}
External Ref
{{ external_ref[:10] }}...
{% if folder_items %}
Workspace Snapshot Files ({{ folder_items|length }})
{% for item in folder_items %}
{% if item.is_dir %} {% else %} {% endif %} {{ item.path }} {{ item.size|string + " B" if not item.is_dir else "" }}
{% if item.content %}
Preview File Content
{{ item.content[:5000] }}{% if item.content|length > 5000 %}
... (truncated for preview){% endif %}
{% endif %}
{% endfor %}
{% endif %} {% if transcript_events %}
Agent Transcript Log Timeline ({{ transcript_events|length }} steps)
{% for event in transcript_events %}
Step #{{ event.step_index }} {{ event.source }} {{ event.type }}
{{ event.status }}
{% if event.content %}
{{ event.content }}
{% endif %} {% if event.tool_calls %}
Tool Invocations:
{% for tc in event.tool_calls %}
⚙️ {{ tc.function.name if tc.function else tc.get('name', 'tool') }} {% if tc.function and tc.function.arguments %} {{ tc.function.arguments }} {% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}

Conversation Thread

{% set ns = namespace(shown=0) %} {% if turns %}
{% for t in turns %} {% if t.display_content %} {% set ns.shown = ns.shown + 1 %}
{% if t.actor == 'user' %} {% elif t.actor == 'agent' %} {% else %} {% endif %}
{{ t.actor }} #{{ t.turn_index }} {% if t.model and t.model != "-" %} {{ t.model }} {% endif %} {% if t.cost_usd is not none %} ${{ "%.4f"|format(t.cost_usd) }} {% endif %} {% if t.tokens_in or t.tokens_out %} {{ "{:,}".format(t.tokens_in) }} in / {{ "{:,}".format(t.tokens_out) }} out {% endif %}
{{ (t.timestamp or "")[:19] }} Link
{% if t.summary %}
Summary: {{ t.summary }}
{% endif %}
{{ t.display_content|markdown|safe }}
{% endif %} {% endfor %}
{% if ns.shown == 0 %}

No conversation content available.

{% endif %} {% else %}

No turns in this session.

{% endif %}
{% endblock %}