{% set waiting = run.status == 'waiting_approval' %}

Antwort

{% if run.status in ('cancelled', 'failed', 'blocked_by_guardrail') %} {% if run.status == 'cancelled' %}

Abgebrochen.

{% else %}

{{ run.result.get('message') or 'Die Antwort ist fehlgeschlagen. Bitte erneut versuchen.' }}

{% endif %} {% if run.chat_session_id %}
{% endif %} {% elif waiting or run.status == 'needs_reconciliation' %} {% set texts = (run.state or {}).get('texts', []) %} {% if texts %}
{{ texts|join('\n\n')|markdown }}
{% endif %} {% if waiting %}

Wartet auf Freigabe. Die Antwort geht weiter, sobald entschieden ist; die Seite kann solange geschlossen werden.

{% else %}

{{ run.result.get('message') or 'Abgleich mit dem Zielsystem nötig.' }}

{% if is_admin %}

Beim Abgleich wird zuerst geprüft, ob die Aktion im Zielsystem schon angekommen ist; nichts wird doppelt ausgeführt.

{% endif %}
{% endif %} {% for r in requests|default([]) %}

{{ r.arguments.get('title') or r.tool }} {{ labels[r.status] }}

{% endfor %} {% if waiting %}{% endif %} {% else %}

Status: {{ run.status }}

{% endif %}