Preserve explicit upload cancellations across MCP updates
CI / verify (push) Canceled after 0s

This commit is contained in:
Sucukdeluxe committed 2026-10-16 05:40:01 +02:00
1 parent fae1c3a3de
commit b456109c2d
2 files changed
+19 -3

No files matched your search

+4 -2
View File
@@ -2928,17 +2928,19 @@ function logMemorySnapshot(label) {
} catch {}
}
ipcMain.handle('cancel-upload', () => {
ipcMain.handle('cancel-upload', async () => {
if (uploadManager) {
uploadManager.cancel();
}
await mcpUpdate.excludeResumeJobs(null);
return true;
});
ipcMain.handle('cancel-selected-jobs', (_event, jobIds) => {
ipcMain.handle('cancel-selected-jobs', async (_event, jobIds) => {
if (uploadManager) {
uploadManager.cancelJobs(Array.isArray(jobIds) ? jobIds : []);
}
await mcpUpdate.excludeResumeJobs(Array.isArray(jobIds) ? jobIds.filter(id => typeof id === 'string') : []);
return true;
});