fix(desktop): release Electron storage locks before wiping user data on Windows#28244
Draft
Copilot wants to merge 2 commits into
Draft
fix(desktop): release Electron storage locks before wiping user data on Windows#28244Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
Copilot
AI
changed the title
[WIP] Fix cannot wipe data from Debug menu on Windows
fix(desktop): release Electron storage locks before wiping user data on Windows
Jun 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Windows, "Wipe data" from Debug settings fails with
EBUSY: resource busy or lockedbecause Electron's Chromium storage service holds open file handles onDIPSandDIPS-valSQLite databases in the user data directory while the app is running.Description
packages/suite-desktop-core/src/libs/user-data.ts: Inclear(), callsession.defaultSession.clearStorageData()beforefs.promises.rm(). This closes all storage handles held by the Chromium storage service (IndexedDB, cookies, DIPS, etc.), releasing the Windows file locks so the directory can be deleted.Notes for QA
On Windows: Settings → Debug → Wipe data → should complete without
EBUSYerror and app should restart cleanly with no user data.Related Issue
Screenshots:
🔍 Currents Test Results
🔍 Suite desktop test results: View in Currents
🔍 Suite web test results: View in Currents
🔒 Quarantined E2E Tests
Trezor Suite (web) — 9 test(s)
Updated: 2026-06-01T16:01:49.480Z • 9 test(s) total
Trezor Suite (desktop) — 6 test(s)
Updated: 2026-06-01T15:59:33.084Z • 6 test(s) total
🌐 Preview deployments
🌐 Suite Web preview: https://dev.suite.sldev.cz/suite-web/copilot/fix-cannot-wipe-data-windows/web/