{% extends "base.html" %} {% from "_macros.html" import icon, ref %} {% block title %}{{ s.title or s.claude_session_id[:8] }} — apo{% endblock %} {% block body_class %}page-session{% endblock %} {% set labels = {"prompt": "You", "assistant": "Claude", "recap": "Recap"} %} {% block content %}
{% set has_links = links.working or links.asked or links.goals or branch or s.project_id %} {% if has_links %}
{% for key, label in (("working", "Working on"), ("asked", "Asked you")) %}{% if links[key] %} {% set live = links[key] | rejectattr("status", "in", ["resolved", "cancelled"]) | list %} {% set closed = links[key] | selectattr("status", "in", ["resolved", "cancelled"]) | list %}
{{ label }}
{% for i in live %}{{ ref(i.id) }}{{ i.title }}{% if key == "asked" and i.status == "open" %} waiting on you{% endif %}
{% endfor %} {%- if closed %}Closed:{% for i in closed %} #{{ i.id }}{% endfor %}{% endif %}
{% endif %}{% endfor %} {% if links.goals %}
Goal
{% for g in links.goals %}{{ g.title }}{% if not loop.last %}
{% endif %}{% endfor %}
{% endif %} {% if branch %}
Branch
{{ branch.branch }} {% if branch.merged %}merged into {{ branch.default_branch }}{% elif branch.unrelated %}no history in common with {{ branch.default_branch }}{% else %}{{ branch.ahead }} commit{{ "s" if branch.ahead != 1 }} not in {{ branch.default_branch }}{% endif %} {% if not branch.merged and not branch.unrelated and branch.ahead and not branch.blocked %}
{% endif %}
{% endif %} {% if s.project_id %}
Next
{{ icon("plus") }}Follow up with new work
{% endif %}
{% endif %}

Continue

{% if plan.allowed %} {% set options = [("resume", "Continue this session", "Resumes it with your message. It keeps everything it knows, and re-reads all of it."), ("fresh", "Continue in a fresh session", "A new session from a short handoff: your message, what this one was asked, its recap and where its transcript is. Tracked on the Work tab.")] %} {% if plan.recommend == "fresh" %}{% set options = options | reverse | list %}{% endif %}

Recommended: {{ options[0][1] | lower }}. {{ plan.reason }}

{% for how, label, hint in options %} {% endfor %}
{% else %}

{{ plan.why_not }}

{% endif %}
{% if s.prompt %}

{{ {"permission": "It needs your permission", "question": "It has a question", "plan": "It has a plan for you to approve"}[s.prompt.kind] }}

asked {{ s.prompt.asked_at | ago }}
{% with compact=false %}{% include "_prompt_form.html" %}{% endwith %}
{% endif %} {% if s.last_summary %}

Recap

{% if s.last_summary_human %}{{ s.last_summary_human }}{% endif %}

{{ s.last_summary }}

{% endif %} {% if s.checklist %}

Checklist {{ s.checklist_done }}/{{ s.checklist | length }}

    {% for item in s.checklist %}
  • {{ item.title }}
  • {% endfor %}
{% endif %}

Conversation

{% if conversation and conversation.truncated %}The latest part; the start of a long session isn't shown{% endif %}
{% if not conversation %}

No transcript found for this session in your Claude Code profiles.

{% elif not conversation.entries %}

Nothing in the transcript yet.

{% else %}
    {% for block in conversation.blocks %} {% if block.kind == "tools" %}
  1. {{ icon("chevron-right", cls="chev") }}{{ block["items"] | length }} tool call{{ "s" if block["items"] | length != 1 }}
      {% for t in block["items"] %}
    • {{ t.text }}
    • {% endfor %}
  2. {% else %}
  3. {{ labels[block.kind] }}{% if block.at %} {% endif %}
    {{ block.text }}
  4. {% endif %} {% endfor %}
{% endif %}
{% endblock %} {% block extra_script %}{% endblock %}