{% set card_back = request.url.path if request is defined else "" %} {% from "_macros.html" import icon, ref %}
{{ s.status_label }} {% if s.verdict_label and s.verdict_label != s.status_label %}{{ s.verdict_label }}{% endif %} {% if s.stale %}Quiet {{ s.quiet_minutes }}m{% endif %} {{ s.context_label or "" }} Details {{ icon("arrow-right") }}

{{ s.title or "" }}

{% if s.verdict_reason %}

{{ s.verdict_reason }}

{% endif %} {% if s.parent %}

Started by {{ s.parent.title or s.parent.claude_session_id[:8] }}

{% endif %} {% if s.children %}

{{ s.children_summary }}: {% for c in s.children %}{{ c.title or c.claude_session_id[:8] }}{% if not loop.last %}, {% endif %}{% endfor %}

{% endif %} {% if s.prompt %}
{{ {"permission": "Waiting for your permission", "question": "Waiting for your answer", "plan": "Waiting for you to approve a plan"}[s.prompt.kind] }} {% with compact=true, back=card_back or "/sessions/" ~ s.id %}{% include "_prompt_form.html" %}{% endwith %}
{% elif s.display_status in ("waiting_permission", "waiting_input", "errored", "usage_limit") %}
{% if s.display_status == "waiting_permission" %}Waiting for your permission in the terminal{% elif s.display_status == "waiting_input" %}Waiting for your answer in the terminal{% elif s.display_status == "usage_limit" %}Waiting for the usage limit to reset{% else %}Stopped on an API error{% endif %} {% if s.display_status == "usage_limit" %}Claude Code continues it by itself when the limit resets{% elif s.display_status == "errored" %}{{ s.last_error or "Claude Code didn't say which" }}{% else %}{{ s.waiting_detail or "" }}{% endif %}
{% endif %} {% if s.current_blocker_id %} {{ "Waiting on you to act" if s.blocker_kind == 'action' else "Waiting on your decision" }} {{ "Open" if s.blocker_kind == 'action' else "Answer" }} {{ icon("arrow-right") }} {{ ref(s.current_blocker_id) }}{{ s.blocker_title }}{% if s.open_request_count > 1 %} +{{ s.open_request_count - 1 }} more{% endif %} {% if s.blocker_linear_push_error %} {{ icon("alert") }}Didn't sync to Linear — check Settings {% endif %} {% endif %}
{{ icon("message") }}You asked
{{ s.last_prompt or "" }}
{{ icon("terminal") }}Last done {{ s.last_summary_human or "" }}
{{ s.last_summary or "" }}
{% if not s.last_summary and not s.last_prompt %}
{{ icon("folder") }}{{ s.repository_name or s.cwd or "unknown path" }}
{% endif %} {% if s.checklist %}
{{ icon("chevron-right", cls="chev") }} Checklist {{ s.checklist_done }}/{{ s.checklist | length }}
{% if card_back %}{% endif %}
{% endif %} {% if s.status != "ended" %}
{{ icon("external") }}VS Code {% if s.agent_kind == "background" and s.agent_id %}
{% if card_back %}{% endif %}
{% endif %}
{% else %} {% include "_resume_actions.html" %} {% endif %}