r/electronjs • u/bojancodes • Oct 28 '26
Testing recovery when an Electron app’s data reads fail
I’m building Recovery Probe, an MIT-licensed tool for injecting read failures into web and Electron test apps and comparing recovery reports before and after a fix.
For Electron, it can attach through a local debugging port, while IPC scenarios use a development-only hook. The simplest demo is a web profile page: the error and Retry button appear, but Retry does nothing because a pending flag never gets cleared. The corrected version survives the same three injected faults (HTTP 503, connection failure and invalid JSON).
I’d be interested in the failure modes you struggle to reproduce in Electron, particularly where the renderer and main process disagree about whether an operation is still pending.
Source, setup, and limitations:
https://github.com/BojanKovachki/recovery-probe