{# Live region for the flow detail. Same idiom as #workers-list (workers.html): a STABLE wrapper that carries the trigger and morphs its OWN inner HTML - it is never replaced, so its sse listener is registered once and stays. While the flow is live it re-fetches flow_body.html on each job event; gated on flow_live, so a flow that is already terminal when you open it never polls (and htmx tears the trigger down when you navigate away). #} {% if job and job.flow %}
{% include "partials/flow_body.html" %}
{% endif %}