Skip to content

fix: focus deduplicated citation pages - #157

Merged
suguanYang merged 1 commit into
stagingfrom
fix/wangbinqi/duplicate-page-citation-focus
Aug 24, 2026
Merged

fix: focus deduplicated citation pages#157
suguanYang merged 1 commit into
stagingfrom
fix/wangbinqi/duplicate-page-citation-focus

Conversation

@suguanYang

Copy link
Copy Markdown
Contributor

Summary

  • fall back to the cited physical page when its logical chunk was removed by page deduplication
  • keep existing citation highlights while moving the retained page card to the top
  • add unit and headless browser regression coverage for same-source citation navigation

Test plan

  • pnpm exec vitest run src/components/chunks-panel-state.test.ts src/components/chunks-panel.test.ts src/components/workspace-shell.test.ts --maxWorkers=1
  • PLAYWRIGHT_EXTERNAL_WEB_SERVER=1 pnpm exec playwright test e2e/citation-dedupe.e2e.ts --project chromium --reporter=line
  • pnpm run typecheck
  • pnpm exec eslint src/components/chunks-panel-state.ts src/components/chunks-panel-state.test.ts src/app/e2e/citation-same-page/page.tsx e2e/citation-dedupe.e2e.ts

Made with Cursor

Fall back to the cited physical page when its logical chunk is removed from the page-asset list.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Aug 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
knowhere-notebook-staging Ready Ready Preview Aug 24, 2026 3:47am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
knowhere-notebook Ignored Ignored Aug 24, 2026 3:47am

Request Review

@suguanYang
suguanYang merged commit baca18c into staging Aug 24, 2026
7 checks passed
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