From 2d9ea0997f3491667ece2b71c8d3b30493841bcc Mon Sep 17 00:00:00 2001 From: brooklyn! Date: Wed, 3 Jun 2026 12:01:13 -0500 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .../src-tauri/src/update.rs | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/apps/bootstrap-installer/src-tauri/src/update.rs b/apps/bootstrap-installer/src-tauri/src/update.rs index 8ae64e686..23ebc51ce 100644 --- a/apps/bootstrap-installer/src-tauri/src/update.rs +++ b/apps/bootstrap-installer/src-tauri/src/update.rs @@ -62,6 +62,27 @@ pub async fn start_update(app: AppHandle) -> Result<(), String> { .compare_exchange(false, true, Ordering::SeqCst, Ordering::SeqCst) .is_err() { + // Already running: re-emit the manifest so a duplicate startUpdate() + // call (which resets the frontend store) can recover its stage list. + let target_app = if cfg!(target_os = "macos") { + target_app_from_args(std::env::args().skip(1)) + } else { + None + }; + let mut stages = vec![ + stage_info("update", "Updating Hermes"), + stage_info("rebuild", "Rebuilding the desktop app"), + ]; + if cfg!(target_os = "macos") && target_app.is_some() { + stages.push(stage_info("install", "Installing the updated app")); + } + emit( + &app, + BootstrapEvent::Manifest { + stages, + protocol_version: None, + }, + ); return Ok(()); } tokio::spawn(async move {