From f73b28129c75b1284878345ba6e99c06e125b9b3 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Wed, 1 Apr 2026 21:01:59 -0400 Subject: [PATCH] Rehydrate rewound runs before resume --- lib/crates/fabro-cli/src/commands/run/rewind.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/crates/fabro-cli/src/commands/run/rewind.rs b/lib/crates/fabro-cli/src/commands/run/rewind.rs index ed2257182..d165324e6 100644 --- a/lib/crates/fabro-cli/src/commands/run/rewind.rs +++ b/lib/crates/fabro-cli/src/commands/run/rewind.rs @@ -8,7 +8,7 @@ use fabro_util::terminal::Styles; use fabro_workflow::git::MetadataStore; use fabro_workflow::operations::{ RewindInput, RewindTarget, RunTimeline, build_timeline_or_rebuild, - find_run_id_by_prefix_or_store, rewind, + find_run_id_by_prefix_or_store, open_or_hydrate_run, rewind, }; use fabro_workflow::records::CheckpointExt; use fabro_workflow::run_lookup::{resolve_run_combined, runs_base}; @@ -126,6 +126,11 @@ async fn reset_rewound_run_state( .delete_run(run_id) .await .map_err(|err| anyhow::anyhow!("failed to reset durable store run: {err}"))?; + open_or_hydrate_run(durable_store, run_dir) + .await + .map_err(|err| { + anyhow::anyhow!("failed to restore durable store run after rewind: {err}") + })?; Ok(()) }