{% if not history %}
No messages yet. Try: what did guest #1 order most on their last visit?, P&L for last month, who owes money?, or today's ops.
{% endif %} {% for m in history %} {% set idx = loop.index0 %} {% if m.role == 'user' %}
You
{{ m.content }}
{% elif m.role == 'assistant' %} {% set _ai = animate_index if animate_index is defined else none %} {% set should_animate = (_ai is not none and idx == _ai) %}
Assistant{% if m.meta %}ยท {{ m.meta }}{% endif %}
{% if not should_animate %}{{ m.content }}{% endif %}
{% endif %} {% endfor %} {% if pending_action %}
Proposed action{% if pending_action.type %}ยท {{ pending_action.type }}{% endif %}
{{ pending_action.summary or pending_action.title or 'Assistant wants to perform an action' }}
{% if pending_action.description %}
{{ pending_action.description }}
{% endif %} {% if pending_action.resolved %}
Resolved details
{{ pending_action.resolved | tojson(indent=2) }}
{% endif %} {% if pending_action.preview %}
Preview
{{ pending_action.preview | tojson(indent=2) }}
{% endif %} {% if pending_action.warnings %}
Warnings:
    {% for w in (pending_action.warnings if pending_action.warnings is iterable and pending_action.warnings is not string else [pending_action.warnings]) %}
  • {{ w }}
  • {% endfor %}
{% endif %} {% if pending_action.prechecks %}
Prechecks
{{ pending_action.prechecks | tojson(indent=2) }}
{% endif %} {% if pending_action.expires_at %}
Expires: {{ pending_action.expires_at }}
{% endif %}
{% if pending_action.requires_password %} {% endif %}
Nothing is executed until you confirm.
{% endif %}