Skip to content

fix(chat): the sources strip counts the cards the answer shows CU-17tkuw61kfy - #2889

Merged
michaelassraf merged 1 commit into
mainfrom
fix/strip-counts-cards
Oct 29, 2026
Merged

michaelassraf merged 1 commit into
mainfrom
fix/strip-counts-cards

Conversation

@michaelassraf

@michaelassraf michaelassraf commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

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.

  • An answer with cards now cites exactly the records its cards show, in card order (splitCitedSources reads the card markers through extractCardReferences). An answer without cards still counts its numbers.
  • Hiding a [N] no longer leaves a space before the punctuation after it (remarkStripCitations).

Tests: cited-sources.test.ts (11 new cases), new remark-strip-citations.test.ts. tsc, eslint and cycles are clean; vitest 7682 of 7683 pass, and the one failure (markdown-parity fenced-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-Set lines in these descriptions; this block is maintained by the hub.

…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>
@michaelassraf

Copy link
Copy Markdown
Member Author

@github-actions

Copy link
Copy Markdown
Contributor

🦩 Flamingo Code Review

Not 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:

  • Review this pull request

Or comment @flamingo-review. Add the flamingo-review-always label to review every push.

Updated 2026-10-29 22:35 UTC · workflow run

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