{% extends "base.html" %} {% block content %}

Chat

Group chat: kamu, Puspa, dan agenmu di satu thread. Sub-agen terlipat secara default; @mention agen atau sub-agen untuk bicara langsung. Pesanmu selalu menyela tugas yang berjalan.

{% for p in message %}
{{ p.sender }}: {{ p.text }} {% if p.attachments %} {% for a in p.attachments %} {% if a.kind == "image" %}
{{ a.filename or 'gambar' }}{% elif a.kind == "audio" %}
Pesan suara{% if a.transcript %}: {{ a.transcript }}{% endif %}{% else %}
{{ a.filename or 'Lampiran' }}{% endif %} {% endfor %} {% endif %} {% if p.card %} {% if p.card.kind == "draft" %}
{{ p.card.title }}
{{ p.card.body }}
{% if p.card.mailto %}Buka di Mail{% endif %}
{% elif p.card.kind == "options" %}
{{ p.card.question }}
{% for o in p.card.options %}{{ o.label }}{% if o.detail %} — {{ o.detail }}{% endif %}
{% endfor %}
{% elif p.card.kind == "chart" %}
{{ p.card.title }}
{% for pt in p.card.points %}{{ pt.label }}: {{ pt.value }}
{% endfor %}
{% elif p.card.kind == "map" %}
{{ p.card.title }}
Peta OpenStreetMap, zoom {{ p.card.zoom }}.
{% for mk in p.card.markers %}Marker: {{ mk.label or mk.lat }}, {{ mk.lon }}
{% endfor %}{% if p.card.route %}Rute: {{ p.card.route|length }} titik.{% endif %}
{% endif %} {% endif %}
{% else %}

Belum ada pesan. Sapa Puspa dulu.

{% endfor %}

Kirim foto untuk cek harga (fase 3). Angka bermakna punya tombol Bukti di panelnya.

Live: SSE /sse aktif saat ada tugas berjalan.
{% endblock %}