pub fn refresh(
current: Option<LoadedInstructions>,
cwd: &Path,
) -> (Option<LoadedInstructions>, ReloadOutcome)Expand description
Per-turn auto-reload check. Compares the previously-loaded mtime to
the current mtime on disk; reloads only when they differ. The hot
path (file unchanged) is one stat() syscall — no I/O.
cwd is used to re-discover MERMAID.md when current is None
(handles “user created the file mid-session” by re-running the walk).