The most recent capture file for one turn (the latest commit attempt), when any exists.
(
sessions_dir: &Path,
session_id: &str,
turn: u32,
)
| 131 | /// The most recent capture file for one turn (the latest commit attempt), |
| 132 | /// when any exists. |
| 133 | fn latest_capture_file( |
| 134 | sessions_dir: &Path, |
| 135 | session_id: &str, |
| 136 | turn: u32, |
| 137 | ) -> AgentResult<Option<PathBuf>> { |
| 138 | Ok(capture_files(sessions_dir, session_id, turn)?.pop()) |
| 139 | } |
| 140 | |
| 141 | /// Whether any capture evidence exists for one turn of one session. |
| 142 | pub fn has_capture(sessions_dir: &Path, session_id: &str, turn: u32) -> bool { |