Repository navigation
fix(chat): the sources strip counts the cards the answer shows CU-17tkuw61kfy - #2889
Merged
Merged
Conversation
…er shows The strip said "2 sources" and listed one, because it counted the [N] numbers the model wrote, and the model numbers wrongly. An answer with cards now cites exactly the records its cards show, in card order; an answer without cards still counts its numbers. A hidden [N] no longer leaves a space before the punctuation that follows it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
Contributor
🦩 Flamingo Code ReviewNot reviewed yet. Reviews start when you ask, so the reviewer reads this pull request when it is ready, not when it is opened. When it is ready:
Or comment Updated 2026-10-29 22:35 UTC · workflow run |
This was referenced Oct 29, 2026
Merged
This was referenced Oct 30, 2026
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.
The Sources strip on an answer said 2 sources and listed one. It counted the
[N]numbers the model wrote, and the model numbers wrongly.splitCitedSourcesreads the card markers throughextractCardReferences). An answer without cards still counts its numbers.[N]no longer leaves a space before the punctuation after it (remarkStripCitations).Tests:
cited-sources.test.ts(11 new cases), newremark-strip-citations.test.ts. tsc, eslint and cycles are clean; vitest 7682 of 7683 pass, and the one failure (markdown-parityfenced-code-js) passes when run alone.Change-Set: feat-mcp-in-app-links
🤖 Generated with Claude Code
Change set
flamingo-stack/openframe-oss-lib#2870: these pull requests are one change, reviewed together.Linked work
Linked by the
Depends-On/Change-Setlines in these descriptions; this block is maintained by the hub.