{{ define "chat_response" }}
{{ template "assistant_stream" . }} {{ end }} {{/* The assistant's reply streams in over Server-Sent Events using the htmx SSE extension (htmx-ext-sse). Shared by "chat_response" (a reply that just started) and "index" (re-attaching to a run that is still in flight after a page reload). Data: any value with .StreamID and .CSRFToken. Event flow (see internal/handlers/chat.go StreamChat): "tool" -> a fragment wrapped in hx-swap-oob="beforebegin:#assistant-row-