feat: complete tree shell cutover and regression coverage

This commit is contained in:
lix-2026
2026-04-18 09:38:16 +08:00
parent d3876e56eb
commit 111a87d4fd
53 changed files with 5440 additions and 516 deletions
+6
View File
@@ -96,6 +96,12 @@ function readKernelSidebarProjection(
return camelCaseProjection;
}
if (Array.isArray(result.documents) && result.documents.length > 0) {
// 说明:部分 query transport 只回 documents,没有同步附带 projection。
// 这里按同一协议即时重建,避免 UI 把缺失节点全部降级到根层。
return buildProjectionContract(result.documents);
}
return EMPTY_KERNEL_SIDEBAR_PROJECTION;
}