Fix law citations not rendering as clickable pills

↗ view on GitHub · Markus · 2026-05-08 · 90a57483

- normalizeCitation: treat page:null as page=0 instead of dropping the
  citation (law chunks have no page number)
- Emit loading_citations SSE event when <CITATIONS> block starts so the
  frontend can track citation generation state
- Strengthen formatLawContext prompt to reliably produce <CITATIONS> blocks

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Repository marklok/danishmike
Author Markus <markusklok@gmail.com>
Authored
Parents 20f4a079
Stats 2 files changed , +21 , -6
Part of Danish law & EUR-Lex retrieval with inline citations

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-90a57483.md from inside the repo you want the change in.

⬇ Download capture-commit-90a57483.md