Close workbench P0 resource lifecycle gaps

This commit is contained in:
lix-2026
2026-05-20 20:48:18 +08:00
parent e0b0e70fb8
commit fe13444dbc
14 changed files with 610 additions and 7 deletions
+11
View File
@@ -3742,6 +3742,17 @@ fn build_tree_shell_html(
.map((entry) => entry.nodeId),
});
const buildFileTreeRuntimeEnvironment = () => ({
visibleRowIds: visibleFileTreeRowIds,
rows: Array.from(fileTreeRowById.values()).map((entry) => ({
rowId: entry.rowId,
rowKind: entry.rowKind,
documentId: entry.documentId || null,
assetId: entry.assetId || null,
})),
rootUri: sourceKind === "local_folder" ? rootUri || null : null,
});
const readPageRuntimeState = (action, item) => {
const actionKind = normalizeText(action?.kind).toLowerCase();
const nodeId = normalizeText(action?.nodeId || item?.nodeId);