{# pages/ai/chat_htmx.html — AI Chat driven by htmx's SSE extension #} {# Consumes the native /ai/chat/sse stream via the htmx SSE extension. #} {% extends "base.html" %} {% block title %}AI Chat (htmx){% endblock %} {% block head_extra %} {% endblock %} {% block content %}
Streaming via htmx SSE extension against /ai/chat/sse.
sse-swap appends delta events into the reply bubble;
the done and error events drive the status line via
hx-on::sse:*.