优化: 前端体验批次(Knowledge持久化+流式缓存失效 + dfnodes节点注册 + delta 50ms合批 + MCP schema必填校验+bind_directory对齐)

This commit is contained in:
lxy
2026-08-08 20:19:19 +08:00
parent 97525a3143
commit 4092a8d5bb
9 changed files with 277 additions and 90 deletions
+3
View File
@@ -171,6 +171,7 @@ const {
scheduleStreamParse,
clearStreamingState,
cancelPendingRaf,
resetStreamCache,
} = useStreamRenderer({
saveSelection,
restoreSelection,
@@ -715,6 +716,8 @@ watch(() => store.state.activeConversationId, () => {
} else {
cancelPendingRaf()
}
// 切会话同步清流式块级 memo 缓存(_blockCache),防旧会话已缓存块被新会话命中。
resetStreamCache()
})
// 流式 rAF 清理:组件卸载时若仍有 pending rAF(streaming 中途切走/关窗),取消防泄漏。