fix(citations): resolve document UUIDs in agent citations end-to-end

↗ view on GitHub · Jason Lee · 2026-05-13 · c85201fd

- Agent outputs real document_id/version_id UUIDs in <CITATIONS> block sourced from <document_metadata> appended to read_document output
- DocStore extended with document_id + version_id so read_document can append metadata
- extractAnnotations parses document_id directly, validates UUID format, cross-checks against known doc set, drops and warns invalid entries
- <CITATIONS> block suppressed from SSE stream - never shown in chat UI
- History reload extractCitationsFromText validates UUID format on parse
- System prompt updated: citations use document_id/version_id/filename fields; doc-N labels banned from <CITATIONS>
Repository dropthejase/louis
Author Jason Lee <12leeejk2@gmail.com>
Authored
Parents 0cbbf5ed
Stats 9 files changed , +112 , -36
Part of Edit/replicate/generate-docx tool fixes and citation/error surfacing

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-c85201fd.md from inside the repo you want the change in.

⬇ Download capture-commit-c85201fd.md