{# A run's current state, as a replaceable fragment. Rendered in three places: on the run page, as the body of a 409 when the project is already busy, and as the ``run_status`` SSE frame that closes a stream. It therefore takes only ``run`` and ``is_terminal`` -- never the request -- so it can be rendered straight from Python. ``is_terminal`` comes from the run's *status*. It is never derived from the event stream: a run the supervisor found interrupted has no finish event. Phrasing content only -- a ```` root and no ``

`` inside it -- because the run page renders this inside its ``

`` breadcrumb, which accepts nothing else. It still stands alone as the 409's body, where the span is laid out as a row of its own. No exit code. The status says how the run ended in the reader's own words; the number is the shell's, and the history row still carries it. #} {% if message %}{{ message }}{% endif %} {{ run.status }} {% if run.current_task and not is_terminal %} task {{ run.current_task }} {% endif %}