{% extends "base.html" %} {% set active = "sessions" %} {% set avatar_colors = ["avatar-purple", "avatar-blue", "avatar-green", "avatar-yellow"] %} {% block title %}Session {{ session.session_id }}{% endblock %} {% block content %}
{{ session.get("platform", "?") }}
Platform
{{ session.get("turns", [])|length }}
Turns
{{ session.get("created_at", "")[:16] }}
Created
{{ session.get("updated_at", "")[:16] }}
Last updated
{% for turn in session.get("turns", []) %}
{% set uid = turn.get("user_id", "?") %}
{{ uid[:2] }}
{{ uid }}
Turn {{ loop.index }} {% if turn.get("timestamp") %} · {{ turn.timestamp[:16] }}{% endif %}
{{ turn.get("user_message", "") }}
{% for tc in turn.get("tool_calls", []) %}
{% if tc.get("approved", true) %} approved {% else %} denied {% endif %} {{ tc.get("tool", "?") }}
{% if tc.get("input") %}
{{ tc.input | tojson }}
{% endif %} {% if tc.get("result_summary") %}
Show result
{{ tc.result_summary }}
{% endif %} {% if tc.get("error") %}
Error: {{ tc.error }}
{% endif %}
{% endfor %} {% if turn.get("assistant_response") %}
AI
Assistant
{{ turn.assistant_response }}
{% endif %}
{% endfor %} {% if not session.get("turns") %}
No turns in this session
{% endif %} Back to sessions {% endblock %}