Skip to content

fix(chat): stop repeated collection quote requests - #7426

Open
xqvvu wants to merge 1 commit into
labring:mainfrom
xqvvu:xqvvu/fix-inline-quote-request
Open

fix(chat): stop repeated collection quote requests#7426
xqvvu wants to merge 1 commit into
labring:mainfrom
xqvvu:xqvvu/fix-inline-quote-request

Conversation

@xqvvu

@xqvvu xqvvu commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

修复移动端内联引用进入单条分块详情后,因隐藏相邻分块导致滚动分页监听持续触发 getCollectionQuote 请求的问题。

  • 单条引用仍保留初始锚点请求
  • 单条模式关闭上下分页加载
  • 普通引用详情继续支持滚动分页

验证:

  • pnpm --filter @fastgpt/app typecheck
  • pnpm exec eslint packages/web/hooks/useLinkedScroll.tsx projects/app/src/pageComponents/chat/ChatQuoteList/CollectionQuoteReader.tsx
  • pnpm --filter @fastgpt/app test(183 files / 1408 tests)

@github-actions

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 18.37% 1629 / 8865
🔵 Statements 18.36% 1710 / 9310
🔵 Functions 16.12% 340 / 2109
🔵 Branches 15.1% 759 / 5026
File CoverageNo changed files found.
Generated in workflow #1883 for commit 10c964b by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown

Admin Preview Image Ready!

ghcr.io/labring/fastgpt-pr:admin_10c964ba36715cf97656a959e4820572380f3889

🕒 Time: 2026-07-31 18:38:43 (UTC+8)

@github-actions

Copy link
Copy Markdown

Build Successful - Preview fastgpt Image for this PR:

ghcr.io/labring/fastgpt-pr:fastgpt_10c964ba36715cf97656a959e4820572380f3889

🕒 Time: 2026-07-31 18:42:00 (UTC+8)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant