Repository navigation
Fix Windows windows closing about three seconds after the reflection prompt appears.
- Cancel the native close synchronously in the main process before showing the prompt.
- Keep repeated close attempts and timeout-to-stay working without entering the saving screen.
- Release the guard for normal saving and exit; clean up listeners on unload, reload, or renderer failure.
- Add regression coverage for cancellation, release, rearming, and cleanup.
Validation: regression tests, TypeScript checks, and build passed. Tested in an isolated empty vault on Windows with Obsidian 1.14.4: holding beyond three seconds, staying and closing again, timeout-to-stay, unload/reload, and confirmed exit. Other platforms, update/restart flows, and the declared minimum Obsidian version were not re-tested.
This fix relies on private Obsidian/Electron APIs. Install the attached main.js, manifest.json, and styles.css.