Add desktop update diagnostics to codex doctor (#39074)

## What changed

- Probe the installed desktop app's update endpoint on macOS and Windows and report update-CDN reachability alongside the existing network diagnostics.
- Report newer Windows Store builds and macOS updates that Sparkle has staged for installation in the updates check and human-readable notes.
- Validate Windows update manifests against the production app identity, and use the persisted production appcast configuration when selecting the macOS feed.

## Testing

- Cover Windows version comparison and manifest identity validation.
- Cover macOS appcast selection and staged-bundle discovery.
- Verify the human-readable desktop update note.

GitOrigin-RevId: 1af5aa750144346b4b31f2b27a20371daf40d3c0
This commit is contained in:
chess authored and copyberry committed 2026-08-17 20:39:35 +00:00
1 parent 45cf6cbc19
commit d65d315939
8 files changed
+535 -63

No files matched your search

+5
View File
@@ -543,6 +543,11 @@ async fn build_report(
progress.begin("desktop");
if let Some(desktop) = desktop::collect().await {
#[cfg(any(target_os = "macos", target_os = "windows"))]
if let Some(application) = desktop.application.as_ref() {
updates::append_desktop_update(&mut checks, config_result.as_ref().ok(), application)
.await;
}
progress.finish("desktop", overall_status(&desktop.checks));
checks.extend(desktop.checks);
}