fix(tools): recover staged first installs asynchronously

Promote a verified staged first installation after interruption and clear stale first-install journals. Stream archive and managed executable hashes, make status recovery non-blocking, and await the propagated tool and IPC status contracts.
This commit is contained in:
Sucukdeluxe
2026-08-12 01:23:15 +02:00
parent 60b5aa8ca9
commit aa06d486be
4 changed files with 158 additions and 76 deletions
+4 -4
View File
@@ -7977,9 +7977,9 @@ registerTrustedIpcHandler(ipcMain, 'run-preflight', isTrustedRendererEvent, () =
return await runPreflight(autoFix);
});
ipcMain.handle('get-managed-tool-status', (event) => {
ipcMain.handle('get-managed-tool-status', async (event) => {
if (!isTrustedRendererEvent(event)) return null;
return getManagedToolStatuses();
return await getManagedToolStatuses();
});
ipcMain.handle('repair-managed-tools', async (event) => {
@@ -7987,9 +7987,9 @@ ipcMain.handle('repair-managed-tools', async (event) => {
return await repairManagedTools();
});
ipcMain.handle('reset-managed-tools', (event) => {
ipcMain.handle('reset-managed-tools', async (event) => {
if (!isTrustedRendererEvent(event)) return null;
return resetManagedTools();
return await resetManagedTools();
});
registerTrustedIpcHandler(ipcMain, 'get-debug-log', isTrustedRendererEvent, () => Promise.resolve(''), async (_, lines: number = 200) => {