MCPcopy
hub / github.com/coder/mux / onChange

Function onChange

src/node/orpc/router.ts:3912–3920  ·  view source on GitHub ↗
(event: MemoryChangeEvent)

Source from the content-addressed store, hash-verified

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) => {

Callers 8

handleKeyDownInternalFunction · 0.50
VimTextArea.tsxFile · 0.50
ToggleGroupFunction · 0.50
handleSaveFunction · 0.50
handleSelectModelFunction · 0.50
handleSelectFunction · 0.50
handleInputKeyDownFunction · 0.50

Calls 3

getStateFunction · 0.85
scheduleSnapshotFunction · 0.85
pushMethod · 0.65

Tested by

no test coverage detected