diff --git a/crates/midra-layout/src/project_ui.rs b/crates/midra-layout/src/project_ui.rs index 8fa8610..28891e8 100644 --- a/crates/midra-layout/src/project_ui.rs +++ b/crates/midra-layout/src/project_ui.rs @@ -177,16 +177,16 @@ impl Editor { let result = result.and_then(|loaded| { if let Some((prepared, path, time)) = loaded { self.install_prepared(prepared)?; - self.files.message = Some(if recovery { - "Recovery restored".into() + self.files.message = if recovery { + None } else { - format!( + Some(format!( "Opened {}", path.as_ref() .map(|p| p.display().to_string()) .unwrap_or_default() - ) - }); + )) + }; self.files.project_path = path; self.files.manual_saved_at = time; } diff --git a/crates/midra-layout/src/recovery_ui.rs b/crates/midra-layout/src/recovery_ui.rs index b5429c1..58562e8 100644 --- a/crates/midra-layout/src/recovery_ui.rs +++ b/crates/midra-layout/src/recovery_ui.rs @@ -223,6 +223,7 @@ mod tests { restored.restore_recovery(&ctx, path); restored.wait_project_job(); assert!(restored.recovery.error.is_none()); + assert!(restored.files.message.is_none()); assert_eq!(restored.project(), app.project()); assert_eq!(restored.files.project_path, Some(named)); assert_eq!(restored.files.manual_saved_at, app.files.manual_saved_at); diff --git a/docs/midra-layout/changelog.md b/docs/midra-layout/changelog.md index 200518b..ce9dc12 100644 --- a/docs/midra-layout/changelog.md +++ b/docs/midra-layout/changelog.md @@ -4,6 +4,8 @@ ## Unreleased +- Restore recovery sessions silently instead of opening a “Recovery restored” message. Keep recovery failures and retry information visible; regression coverage checks restored edits and absence of the success popup. + - Investigate Aquilon/LivePremier compatibility against the upstream web-control implementation; document firmware-specific geometry, bank and apply paths, saved-link constraints, and the staged adapter/acceptance plan. Research only: no Aquilon support or hardware verification claimed. - Add a Recent machines picker for the last four successful connections, saved across restarts with distinct ports and most-recent-first ordering. Selecting an entry reads the device immediately; failed attempts do not displace history. Settings v8 migrates v1–v7 with empty history; tests cover ordering, deduplication, failures, persistence and validation. diff --git a/docs/midra-layout/guide/files.md b/docs/midra-layout/guide/files.md index 098d472..df43ced 100644 --- a/docs/midra-layout/guide/files.md +++ b/docs/midra-layout/guide/files.md @@ -254,7 +254,8 @@ recovery copy, so save a named copy when you want to keep multiple projects. Recovery contains applied project values, not undo history or unfinished text, Source/import drafts. A crash can lose edits since the last checkpoint; normal -exit cancels unfinished canvas gestures. Project-menu status shows the recovery +exit cancels unfinished canvas gestures. Successful restoration is silent. Recovery failures still display an actionable +message. Project-menu status shows the recovery path and failures. A corrupt/unsupported recovery file is preserved with autosave paused; Retry recovery attempts to load it again. For a write failure, Retry attempts to save again. New project explicitly replaces the recovery copy.