Skip to main content

refresh

Function refresh 

Source
pub fn refresh(
    current: Option<LoadedMemory>,
    cwd: &Path,
    cfg: &MemoryConfig,
) -> (Option<LoadedMemory>, MemoryReloadOutcome)
Expand description

Per-turn refresh: re-scan the roots (cheap — a few read_dirs + stats) and report whether anything changed since current. Picks up the agent’s own mid-session writes and hand edits with no filesystem watcher.