From b4e2f7a927687edd5bb15e710b1a39187233e8a6 Mon Sep 17 00:00:00 2001 From: Tyler Smith <74526874+tylertms@users.noreply.github.com> Date: Thu, 12 Nov 2026 04:19:14 -0500 Subject: [PATCH] refactor(cli): remove repair's unreachable refusal of a stick whose macOS switch stopped, which dispatch finishes as an update --- crates/stela-cli/src/setup/doctor.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/crates/stela-cli/src/setup/doctor.rs b/crates/stela-cli/src/setup/doctor.rs index 7e5c15b903..656277cf3d 100644 --- a/crates/stela-cli/src/setup/doctor.rs +++ b/crates/stela-cli/src/setup/doctor.rs @@ -774,14 +774,9 @@ pub(super) fn repair(environment: &Environment<'_>, command: &Request) -> Result "repair it with this older stela", )?; } - // Its copy of the active build is gone for the new one's room: the - // update finishes it, and repair would download the old one again. - if let Some(next) = &record.replacing { - bail!( - "the update to macOS {next} stopped before its copy was complete: {} finishes it", - fix(usb, &format!("update --macos {next}")) - ); - } + // A macOS switch that stopped part way never comes here: `repair` + // finishes it as an update (`Request::dispatch`). + debug_assert!(record.replacing.is_none()); let esp = record.esp.clone(); let mut text = format!("Stela repair on {}:\n", esp.display()); text.push_str(&device_skips(&esp, "stela setup repair", command.dry_run)?);