fix: auto-repair malformed memory scope regions

This commit is contained in:
Youzini-afk
2026-04-23 18:45:45 +08:00
parent ffd1cabb90
commit 0daf723fd1
8 changed files with 452 additions and 21 deletions

View File

@@ -4241,8 +4241,8 @@ function _refreshMemoryBrowser() {
const scope = normalizeMemoryScope(node.scope);
const regionText = [
scope.regionPrimary,
...(scope.regionPath || []),
...(scope.regionSecondary || []),
...(Array.isArray(scope.regionPath) ? scope.regionPath : []),
...(Array.isArray(scope.regionSecondary) ? scope.regionSecondary : []),
]
.join(" ")
.toLowerCase();