Repository navigation
feat(ag-ui): project sources listed in state as message citations - #1598
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Nov 15, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #1596 (base
blove/ag-ui-agent-session), which is stacked on #1595. Merge those first.What
Assistant messages projected from an AG-UI session now carry citations. In a live check before this change, the backend's markers showed as raw text (
[^ng-signals-overview]) and there was no Sources panel.Behavior
projectMessagesreadsstate.citations[messageId]and attaches the list to that assistant message as coreCitationvalues. This is the same convention the Angular adapter'sbridgeCitationsStatereads.idorrefId,titleorname,url,hreforsource, andsnippet,contentorexcerptare read; a missingidorindexis filled from the entry's position. The rules match the LangGraph runtime's citation projection.createAgentSession, a change to a message's sources notifies subscribers; other state changes stay silent.Limits
Verification
message-projection.spec.ts(aliases and defaults, malformed listings, identity, and a state delta followed by a renaming messages snapshot through the real session). React:Chatover the real session shows the Sources panel and no raw marker.examples/ag-ui/python(gpt-5-mini): the answer showed numbered markers and "Sources 3"; no raw marker was visible.npx nx run-many -t test,type-tests,lint,runtime-quality,runtime-type-tests -p ag-ui,reactand the four builds: pass.verify-ag-ui-candidate.mjs,verify-ag-ui-client-tools.mjs,review-native-ag-ui.mjs --verify,verify-packages.mjs,inventory.mjs --check --drift warn, and the 225 verifier spec tests: pass.🤖 Generated with Claude Code