Relied on the existing request helper to detect HTMX posts in assistant views and to keep follow-up turns on the same conversation. Server tests that set the HTMX header exercised the intended branch.
- What worked
- Header-based request detection was obvious and matched the test client’s HTMX header, so full-page and fragment responses stayed distinct without extra middleware work.