(null);
+ // The sidecar writes the diagnostics report without the Hub, so the
+ // existing export works over the transport while the session service
+ // is still failing.
+ const exportDiagnostics = async () => {
+ setExportStatus("Exporting diagnostics…");
+ try {
+ const result = await desktopClient.invoke<{ path: string }>(
+ "export_diagnostics",
+ );
+ setExportStatus(`Diagnostics saved to ${result.path}`);
+ } catch (error) {
+ setExportStatus(error instanceof Error ? error.message : String(error));
+ }
+ };
const failed =
!readiness.retrying &&
(connected
@@ -76,13 +93,29 @@ export function LoadingScreen({
)}
-
+
+
+ {connected && (
+
+ )}
+
+ {exportStatus && (
+
+ {exportStatus}
+
+ )}
)}