(event: MemoryChangeEvent)
| 3910 | |
| 3911 | // Global file events are always forwarded (shared across everything). |
| 3912 | const onChange = (event: MemoryChangeEvent) => { |
| 3913 | if (event.scope === "workspace" && event.workspaceId !== boundWorkspaceId) return; |
| 3914 | // Project memory is keyed by project identity: the same virtual |
| 3915 | // path in another project is a different file. |
| 3916 | if (event.scope === "project" && event.projectPath !== boundProjectPath) { |
| 3917 | return; |
| 3918 | } |
| 3919 | queue.push(event); |
| 3920 | }; |
| 3921 | // Consolidation status includes global coverage, so every open Memory |
| 3922 | // tab should refetch when a run completes, even if it made no file changes. |
| 3923 | const onStatusChange = (event: MemoryConsolidationStatusChangeEventPayload) => { |
no test coverage detected