diff options
| author | Agando <roduccomm@gmail.com> | 2026-06-08 06:01:25 +0200 |
|---|---|---|
| committer | Agando <roduccomm@gmail.com> | 2026-06-08 06:01:25 +0200 |
| commit | b9485bae5c2e62fa9c1b1c56d0f75be67cb47c37 (patch) | |
| tree | b565095aa14c0072ceb6ca675f0182c275cff0b2 /modules/core/virtual-fs.js | |
| parent | 0fa227601d51263b0eb787d53225de3f0b44cad1 (diff) | |
auto: 2026-06-08_06:00 changes
Diffstat (limited to 'modules/core/virtual-fs.js')
| -rw-r--r-- | modules/core/virtual-fs.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/core/virtual-fs.js b/modules/core/virtual-fs.js index 12bb7f1..95b031e 100644 --- a/modules/core/virtual-fs.js +++ b/modules/core/virtual-fs.js @@ -86,7 +86,10 @@ class VirtualFileSystem { _emitChange(path) { // Notify NeuralVFS via window event — zero coupling // Skip internal index/system files to prevent re-trigger loops - if (path && (path.startsWith('/.semantic_index') || path.startsWith('/.memory_graph') || path.startsWith('/.trash') || path.startsWith('/_snapshots') || path.startsWith('/_sessions') || path.startsWith('/logs') || path.startsWith('/memory') || path.startsWith('/system') || path.startsWith('/_mods') || path.startsWith('/backups'))) return; + if (!path) return; + const normalized = path.startsWith('/') ? path : '/' + path; + const sysPaths = ['/.semantic_index', '/.memory_graph', '/.trash', '/_snapshots', '/_sessions', '/logs', '/memory', '/system', '/_mods', '/backups']; + if (sysPaths.some(p => normalized.startsWith(p))) return; if (typeof window !== 'undefined' && window.__nvfsMarkDirty) { window.__nvfsMarkDirty(path); } |