Skip to content

[codex] Fix JUST-OS citation links#799

Draft
LukasWallrich wants to merge 1 commit into
mainfrom
codex/just-os-citation-links
Draft

[codex] Fix JUST-OS citation links#799
LukasWallrich wants to merge 1 commit into
mainfrom
codex/just-os-citation-links

Conversation

@LukasWallrich

Copy link
Copy Markdown
Contributor

Summary

  • renumber inline JUST-OS citations when chunk references are deduplicated by source
  • make inline citations clickable and show the full supporting chunk in a tooltip
  • preserve the existing collapsible bibliography, copied references, and chat-history behavior

Root cause

The FORRT chatbot deduplicated the bibliography by source URL but left the inline chunk-level citation numbers unchanged. This could display citations such as [4] and [5] even when the bibliography contained only three source entries. The backend already embeds the supporting chunk and source metadata in each citation link, but the FORRT client disabled those links.

Validation

  • node --check static/js/just-os-chat.js
  • git diff --check --cached
  • focused source-level renumbering fixture: [1] [2] [3] [4] [5] becomes [1] [2] [1] [3] [2] with three references
  • browser fixture verified that clicking a citation opens the supporting chunk and source link, and clicking outside closes the tooltip

@github-actions

Copy link
Copy Markdown
Contributor

👍 All image files/references (if any) are in webp format, in line with our policy.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Spell Check Passed

No spelling issues found when checking 2 changed file(s)! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant