fn restore_cwd(state_path: &Path) -> Option<PathBuf>Expand description
Read back a previously-persisted cwd, if the file exists, is non-empty, and still names a real directory (it may not — the directory could have been deleted since, or this is the first call for this agent).