Skip to content

fix(dsh-weknora): page through scoped filename matches - #5750

Open
Ymmcc wants to merge 1 commit into
Tencent:mainfrom
Ymmcc:fix/dsh-scoped-name-pagination
Open

Ymmcc wants to merge 1 commit into
Tencent:mainfrom
Ymmcc:fix/dsh-scoped-name-pagination

Conversation

@Ymmcc

@Ymmcc Ymmcc commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Description

The filename search endpoint paginates across all accessible knowledge bases before the DeepSeek Harness plugin filters the results to the requested scope. An unrelated first page can therefore hide an exact filename match in the selected knowledge base.

Continue with the API's offset and has_more fields until the plugin fills the scoped result limit or reaches four pages. The extra lookups remain optional and preserve any previous matches if a later page fails.

Testing

An offline HTTP fixture returns an out-of-scope Invoice.md on page one and its in-scope counterpart on page two. The old search returned no document. The new search returns only the in-scope match. All 59 package tests, TypeScript checks and the diff check passed.

AI assistance: OpenAI Codex reproduced the pagination issue, implemented the fix and ran the tests.

This branch has not been deployed

No deployments
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