{% from "_event_macros.html" import badge_for, meta_for, copyable, detail_panel with context %}

Run {{ run_id }}

{% if agent %}{{ agent }}{% endif %} {% if item %} · item #{{ item.id }} {{ item.status.value }} {% endif %} · {{ sub_sessions | length }} session{{ '' if sub_sessions | length == 1 else 's' }}
{{ stats.turns }} turns {{ stats.wall_ms|fmt_duration or '—' }} {{ stats.input_tokens|fmt_tokens or '0' }} in / {{ stats.output_tokens|fmt_tokens or '0' }} out {% if stats.estimated_cost_usd is not none %} ~${{ "%.4f"|format(stats.estimated_cost_usd) }} {% endif %} {{ stats.raw_count }} lines
{% if sub_sessions %}
Sessions in this run {{ sub_sessions | length }}
{% for s in sub_sessions %}
{{ s.session_id[:8] }}…{{ s.session_id[-4:] }} {% if s.is_phase_only %} phase {% endif %} {{ s.event_count }} event{{ '' if s.event_count == 1 else 's' }} · {{ s.first_seen | fmt_time }} → {{ s.last_seen | fmt_time }}
{% endfor %}
{% endif %} {% if tool_usage %}
Tools used {% for t in tool_usage %} {% endfor %}
{% endif %}
Conversation Transcript Debug ({{ debug | length }}) {% if active_tab in ['transcript', 'debug'] and event_kinds %}
All events
{% for kind in event_kinds %} {% endfor %}
{% endif %}
{% if active_tab == "conversation" %} {% if conversation %}
{% for ev in conversation %}
{{ ev.kind }} · {{ ev.ts|fmt_time }}
{{ ev.text }}
{% endfor %}
{% else %}

No conversation messages in this run.

{% endif %} {% else %} {% set events = transcript if active_tab == 'transcript' else debug %} {% if events %}
{% for ev in events %} {% set did = loop.index0 %}
{{ badge_for(ev, active_tab) }} {{ ev.label }} {{ meta_for(ev) }}
{% endfor %}
Select an event to inspect its data.

Tip: use j / k to navigate, Esc to close.
{% for ev in events %} {{ detail_panel(ev, loop.index0) }} {% endfor %}
{% else %}

No events in this view.

{% endif %} {% endif %}