Repository navigation
fix(knowledge): 修复目录重扫断线与 PDF 预览,整合桌面交互和启动恢复 - #89
Merged
Merged
Conversation
…figurable (#85, #86) Directory imports published documents without a mimeType, so the raw route served every PDF as application/octet-stream and the panel iframe fell back to a download. Derive the MIME from the extension on upload/path imports, fall back to the file name in getRawFile and the raw response, and keep existing libraries previewable without a reindex. Also add a global autoRetrieveCitation switch (default true): off keeps the injected evidence and untrusted-content boundary but drops the instruction that makes the model print source labels. Exposed in the global defaults scope of the retrieval settings.
The raw-preview spec copied an older inline FakeTable that lacks the deleteMany method required by the DSH 0.2.2-rc.5 KvTable interface, so every typecheck job failed before running tests. Use tests/helpers/memory-kv-table.ts instead.
Track bound directory scans across browser disconnects and panel reopening. Honor generic MIME data from older PDF uploads, and keep window controls clickable in the desktop host. Add regression coverage for each path.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复范围
基于
v0.6.0-beta.1对应的main,完整包含 #87 的4a4bf06和 #88 的3fe3c38,并保留原始提交与作者。no-drag,保留窗口拖动带。Escape 逐层关闭弹层,面板关闭后焦点回到入口。autoRetrieveCitation默认开启,关闭引用要求后仍注入证据、来源和不可信内容提示。既有同步
/reindex调用契约兼容。完成摘要新增可选任务编号,历史记录可直接读取,包版本仍为0.6.0-beta.1。验证
0.2.2-rc.5下通过 736 项测试、类型检查、构建、检索基准、工作区和包校验。生产依赖审计为 0 个 high、0 个 critical。UND_ERR_HEADERS_TIMEOUT。Fixes #84
Fixes #85
Fixes #86
Refs #83