     }
                }
                // else scroll the textarea to bottom with async trick
                setTimeout(() => {
                    let textarea = e.detail.elt.closest(".ts-box").querySelector("textarea")
                    textarea.scrollTop = textarea.scrollHeight
                }, 0)
            })

            // after content was swapped by HTMX (for status updates)
            document.body.addEventListener("htmx:sseMessage", function (e) {
                // only update recording