Skip to main content

merge_mem_changed_json

Function merge_mem_changed_json 

Source
pub fn merge_mem_changed_json(body: &mut Value, notices: &[MemChangedNotice])
Expand description

Merge a mem_changed notice array into a --json CLI response body. No-op when no reload happened during the operation or the body is not a JSON object. Mirrors the MCP server’s attach_mem_changed so the two surfaces emit the same key. (Always compiled; on lean the engine never stashes a notice, so notices is empty and this no-ops.)