cleanup_stale

Function cleanup_stale 

Source
pub fn cleanup_stale(data_dir: &Path, max_age_ms: u64)
Expand description

Remove stale entries at startup.

An entry is considered stale if updated_at is older than max_age_ms. The default is 4 hours — well beyond any reasonable agent session. Entries are also removed if their JSON is malformed.