M-CHAT-A5 P2 | MaterialReaderView parentKnowledgeBaseId 为 nil #59
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
发现
MaterialReaderView 工具栏 AI 入口传 material scope 但 parentKnowledgeBaseId = nil:
后端 loadContextByScope 需要 kbId 来限定 material 检索范围。没有 parentKnowledgeBaseId,material scope 检索退化为空或全库检索。
修复方案
MaterialReaderView 需要传入 knowledgeBaseId:
涉及文件
处理
MaterialReaderView 没有 knowledgeBaseId,因为 Route.materialReader 未包含此参数。
需要改动 Route + 所有调用点,后续统一处理。
修复
Route.materialReader 新增 knowledgeBaseId + title 参数。
MaterialReaderView 接收并传入 ChatEntryContext。
涉及: Route.swift + MaterialReaderView.swift