{% if decision.status == "resolved" %} {% set partial = decision.completion and decision.completion.outcome == "partial" %}

{{ icon("check-circle") }}{{ "Arrived" if is_wait else ("Partly done" if partial else "Done") }}

{% if decision.answer_text %}
{{ decision.answer_text }}
{% endif %} {% if decision.completion %}
{% for key, label in (("done", "Done"), ("not_done", "Not done"), ("left_for_human", "Left for you"), ("branch", "Branch")) %} {% if decision.completion[key] %}
{{ label }}
{{ decision.completion[key] }}
{% endif %} {% endfor %}
{% endif %} {% if effort_text %}

Took {{ effort_text }}

{% endif %} {% include "_work_location.html" %} {% elif decision.status == "cancelled" %}

Cancelled

{% else %} {% if is_wait %}

Waiting on {{ decision.waiting_on or "someone outside" }}

{{ icon("info") }}Nobody needs to do anything until it arrives. Mark it when it does.

{% else %}

For an agent

{{ icon("info") }} {% if decision.status == "in_progress" %} An agent claimed it {% if decision.claimed_at %}{{ decision.claimed_at | ago }} {% endif %}{% if claim_stale %}but its session has ended. Retry puts it back to ready.{% else %}and is working on it.{% endif %} {% elif repository %} Ready in {{ repository.local_path }}/.claude/decisions/INDEX.md. The next session there that runs /decisions claims it, or start one now. {% elif folders %} It has no folder, so no session can see it yet. Choose one under Folder. {% else %} No repository is registered for this project, so no session can see it. Register one with apo repo-add. {% endif %}

{% if decision.dispatched_at %}

{{ icon("terminal") }} Started in the background {{ decision.dispatched_at | ago }}{% if decision.dispatch_agent_id %} — claude attach {{ decision.dispatch_agent_id }} to watch it{% endif %}.

{% endif %} {% if launch_error %} {% endif %} {% if decision.status == "open" and repository and not dispatch_in_flight %}
Runs /decisions #{{ decision.id }} in {{ repository.local_path | home }}.
{% endif %} {% endif %}
{% endif %} {% if not is_wait and decision.kind == "task" and decision.status in ("in_progress", "cancelled", "resolved") %}
{% endif %} {% if attempts %}

History

    {% for a in attempts %}
  1. {{ {"claimed": "Claimed", "completed": "Partly done" if a.outcome == "partial" else "Completed", "released": "Released", "retried": "Retried"}[a.event] }} {% if a.actor == "human" %}by you{% elif a.session_id %}by session {{ a.session_id[:8] }}{% endif %} {% if a.note %}
    {{ a.note }}
    {% endif %}
  2. {% endfor %}
{% endif %}