Jazzcort add timeout (#6772)

Signed-off-by: Jazzcort <jason101011113@gmail.com>
Co-authored-by: Jazzcort <jason101011113@gmail.com>
Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
Douwe Osinga
2026-01-28 10:59:20 -05:00
committed by GitHub
parent 4d608690b8
commit a4ad231d60
11 changed files with 68 additions and 30 deletions
+1 -6
View File
@@ -247,12 +247,7 @@ export function registerUpdateIpcHandlers() {
log.error('Error downloading update:', error);
const version = githubUpdateInfo.latestVersion || lastUpdateState?.latestVersion || 'unknown';
const method = isUsingGitHubFallback ? 'github-fallback' : 'electron-updater';
trackUpdateDownloadCompleted(
false,
version,
method,
errorMessage(error, 'unknown')
);
trackUpdateDownloadCompleted(false, version, method, errorMessage(error, 'unknown'));
return {
success: false,
error: errorMessage(error, 'Unknown error'),
+3 -1
View File
@@ -58,7 +58,9 @@ export async function loadSession(sessionId: string, forceRefresh = false): Prom
return session;
} catch (error) {
throw new Error(`Error loading session ${sessionId}: ${errorMessage(error, 'Unknown error')}`);
throw new Error(
`Error loading session ${sessionId}: ${errorMessage(error, 'Unknown error')}`
);
} finally {
inFlightRequests.delete(sessionId);
}