The handler dispatch (api.* paths) now checks for HX-Request header. If present, the SX aser output is rendered to HTML via sx_render_to_html before sending. SX-Request (from SX client navigation) still gets SX wire format. This makes hx-* attributes work like real htmx — the server returns HTML fragments that htmx can swap into the DOM. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>