{% 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' }}
{% if stats.model %} {{ stats.model }} {% endif %} {{ 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 %} {{ stats.estimated_cost_usd|fmt_cost }} {% 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 %} {% if s.ai_title %} {{ s.ai_title }} {% endif %} {{ s.event_count }} event{{ '' if s.event_count == 1 else 's' }} · {{ s.first_seen | fmt_time }} → {{ s.last_seen | fmt_time }}
{% endfor %}
{% endif %} {# Tools-used chips moved into the filter dropdown next to Events (see the .tabs row below) — same pattern as _session_body.html. #}
Conversation Debug ({{ debug | length }}) {% if active_tab == 'debug' %} {% if tool_usage %}
All tools
{% for t in tool_usage %} {% endfor %}
{% endif %} {% if event_kinds %}
All events
{% for kind in event_kinds %} {% endfor %}
{% endif %} {% endif %}
{% if active_tab == "conversation" %} {% if conversation %}
{% for ev in conversation %}
{% if ev.kind == 'thinking' %}
Thinking
{% endif %}
{{ ev.text|markdown }}
{% if ev.ts and ev.kind != 'thinking' %}
{{ ev.ts|fmt_hm }}
{% endif %}
{% endfor %}
{% else %}

No conversation messages in this run.

{% endif %} {% else %} {% set events = 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 %}