Function
attempt_capture_path
(
sessions_dir: &Path,
session_id: &str,
turn: u32,
attempt: u32,
)
Source from the content-addressed store, hash-verified
| 91 | } |
| 92 | |
| 93 | fn attempt_capture_path( |
| 94 | sessions_dir: &Path, |
| 95 | session_id: &str, |
| 96 | turn: u32, |
| 97 | attempt: u32, |
| 98 | ) -> AgentResult<PathBuf> { |
| 99 | Ok(capture_dir(sessions_dir, session_id)?.join(format!("turn-{turn}.attempt-{attempt}.json"))) |
| 100 | } |
| 101 | |
| 102 | /// Every stored capture for one turn, oldest first (legacy single file |
| 103 | /// first, then per-attempt files in attempt order). |