fix: harden account rotation and active download recovery

Apply account enablement changes optimistically and persist rapid toggles sequentially without losing clicks.

Refresh Mega-Debrid API and Web account pools during active downloads, isolate per-account cancellation budgets, rotate within the same conversion attempt, and keep pause, stop, resume, reset, and no-account gates consistent.

Use the native Electron clipboard under Remote Desktop and make support bundle export bounded, redacted, responsive, guarded, visible, and atomic.

Add end-to-end regressions for live account switching, persisted partial recovery, support export, native copy, availability preservation, and the 500 ms telemetry cadence.
This commit is contained in:
Sucukdeluxe
2026-08-13 05:14:44 +02:00
parent ca015553f3
commit e1b4708952
26 changed files with 2811 additions and 561 deletions
+11
View File
@@ -61,4 +61,15 @@ describe("account preload contract", () => {
IPC_CHANNELS.DELETE_ACCOUNT
]);
});
it("writes copied text through the native Electron clipboard channel", async () => {
electron.invoke.mockResolvedValueOnce(true);
await electron.api?.writeClipboardText("https://rapidgator.net/file/example");
expect(electron.invoke).toHaveBeenCalledWith(
IPC_CHANNELS.WRITE_CLIPBOARD_TEXT,
"https://rapidgator.net/file/example"
);
});
});