{# T-2041: bound rendered height — render the newest _tl_cap sessions inline, wrap the older overflow in a collapsed
(display:none → excluded from scrollHeight and full_page screenshots, yet still in the DOM and one click away; nothing dropped). Same unbounded-card-list class as T-2038/T-2039/T-2040; sessions list is newest-first. #} {% set _tl_cap = 40 %} {% for session in sessions %} {% if loop.index == _tl_cap + 1 %}
Show {{ sessions|length - _tl_cap }} older session{{ 's' if (sessions|length - _tl_cap) != 1 }} — earlier history {% endif %}
{% if session.is_emergency %}emergency {% endif %} {{ session.id }} {{ session.timestamp[:10] if session.timestamp else 'Unknown' }} {% if session.session_tokens %}{{ session.session_tokens }} tokens, {{ session.session_turns }} turns {% endif %}{% if session.token_usage %}({{ session.token_usage }}) {% endif %} — {% if session.narrative_short %}{{ session.narrative_short|linkify_tasks }}{% if session.touched_count %} ({{ session.touched_count }} tasks){% endif %}{% else %}{{ session.touched_count }} tasks touched, {{ session.completed_count }} completed{% endif %}
{% if session.token_input or session.commits_per_turn %}
{% if session.token_input %}
Token Breakdown: Input: {{ session.token_input }} | Cache Read: {{ session.token_cache_read }} | Cache Create: {{ session.token_cache_create }} | Output: {{ session.token_output }}
{% endif %} {% if session.commits_per_turn %}
Quality Metrics{% if session.session_commits_per_turn %} (session){% endif %}: CPT: {{ session.session_commits_per_turn or session.commits_per_turn }} | Error rate: {{ session.session_failed_tool_call_rate or session.failed_tool_call_rate }} | Edit bursts: {{ session.session_edit_bursts or session.edit_bursts }} | {% if not session.session_commits_per_turn %}1st commit: turn {{ session.first_commit_turn }} | {% endif %} Productive: {{ session.session_productive_turns_ratio or session.productive_turns_ratio }} {% if session.session_commits_per_turn %}(cumulative in tooltip){% endif %}
{% endif %}
{% endif %} {% if session.narrative %}
{{ session.narrative|linkify_tasks }}
{% endif %} {% if session.tasks_touched %}

Tasks Touched

{% endif %} {% if session.tasks_completed %}

Tasks Completed

{% endif %}
{% endfor %} {% if sessions|length > _tl_cap %}
{% endif %} {% if not sessions %}

No sessions found

Session handovers will appear here after running fw handover

{% endif %}