Skip to content

fix: require inspected citation regions - #149

Merged
suguanYang merged 2 commits into
stagingfrom
fix/wangbinqi/citation-vlm-regions
Aug 21, 2026
Merged

fix: require inspected citation regions#149
suguanYang merged 2 commits into
stagingfrom
fix/wangbinqi/citation-vlm-regions

Conversation

@suguanYang

Copy link
Copy Markdown
Contributor

Summary

  • require visual inspection for cited page/image assets before the agent can finalize, while deduplicating canonical pages without an arbitrary inspection cap
  • preserve VLM highlight regions through citation persistence and navigation, and remove misleading full-page fallbacks
  • add unit and headless Chromium coverage for exact citation overlay geometry

Test plan

  • pnpm typecheck
  • pnpm exec eslint e2e/citation-dedupe.e2e.ts src/app/e2e/citation-same-page/page.tsx
  • PLAYWRIGHT_EXTERNAL_WEB_SERVER=1 pnpm exec playwright test e2e/citation-dedupe.e2e.ts --project=chromium (3 passed)
  • live headless Chromium check clicked all 7 current citation chips; every chip had tight regions, none had a full-page overlay, and no runtime errors occurred
  • pnpm test reached 765 passing tests with one suite-load timeout; the timed-out same-source citation test passed in isolation

Made with Cursor

Force cited page images through visual inspection, preserve the resulting boxes through persistence and navigation, and avoid misleading full-page highlights.

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

vercel Bot commented Aug 21, 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 21, 2026 6:10pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
knowhere-notebook Ignored Ignored Preview Aug 21, 2026 6:10pm

Request Review

Prevent cross-document region reuse and keep inspection enforcement and rendered overlays accurate.

Co-authored-by: Cursor <cursoragent@cursor.com>
@suguanYang
suguanYang merged commit 95fb6e6 into staging Aug 21, 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