Spaces:
Running
Running
Commit History
-
fix(search): a search from the box renames the heading and the tab
siddhm11 +1: Claude Opus 5.5The search box swaps in only #search-results, so the page heading and the tab title kept the query the page was opened with: on 2026-10-23 the page read "how do I stop a RAG system from making things up" above the results for "HI HOW ARE YOU >". The htmx answer now carries the heading as an out-of-band swap and a <title> that htmx applies as the swap settles. The whole page is unchanged and has one heading. A browser test runs a second search from the box and checks the heading and title, then Back and Forward. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>b804177
-
fix(search): Back to a search shows the whole page, not a bare fragment
siddhm11 +1: Claude Opus 5.5/search?q=... answers htmx with the results alone and a browser with the whole page, and nothing told the browser the two differ. After search -> open a paper -> Back, the browser could show the cached results fragment as the page: no header, no styles, no title (reproduced in Chromium against the sealed test world). - Every non-static response now carries Vary: HX-Request, and htmx fragments are sent with Cache-Control: no-store. - htmx restoring history without a snapshot (HX-History-Restore-Request) gets the whole search page; it swaps the answer in as the body. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>eeef7b6