From c8a16934926c820e17fc87596918dbd629057c7e Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Wed, 4 Mar 2026 01:48:59 -0500 Subject: [PATCH] Use Checkpoint::load() instead of manual file read and parse Co-Authored-By: Claude Opus 4.6 --- crates/arc-workflows/src/cli/run.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/arc-workflows/src/cli/run.rs b/crates/arc-workflows/src/cli/run.rs index 4f70a0c94..081683f5e 100644 --- a/crates/arc-workflows/src/cli/run.rs +++ b/crates/arc-workflows/src/cli/run.rs @@ -1031,11 +1031,7 @@ async fn run_from_branch( /// Print the final stage output from the checkpoint, if available. fn print_final_output(logs_dir: &std::path::Path, styles: &Styles) { - let checkpoint_path = logs_dir.join("checkpoint.json"); - let Ok(data) = std::fs::read_to_string(&checkpoint_path) else { - return; - }; - let Ok(checkpoint) = serde_json::from_str::(&data) else { + let Ok(checkpoint) = Checkpoint::load(&logs_dir.join("checkpoint.json")) else { return; };