Files
DroidDeck/docs
visail 9ddb52c5fc fix(battlenet): retry a cancelled install's cleanup across restarts
The ownership rules from the previous change stop a cancel from deleting
someone else's registration, but a process killed mid-cleanup left the
registration behind with nothing to retry it, and a registration the client
writes just after the cancel looked at the folder was never seen.

A cancelled cleanup now records a marker per folder (SHA-256 of its path,
written atomically): ACTIVE while the install runs, PENDING when the cleanup
must still happen, WATCHING while the client may still be writing its
registration. reconcile() runs on the next refresh, checks the marker against
the registrations that are actually there, retries with backoff, and clears
the marker once the registration is gone and the folder it created is
deleted. uninstall() verifies the registration really disappeared before it
reports success.

The design document moves to docs/development/battlenet-china.md: it describes
the merged state, so the -final suffix and the #2150 reference no longer
belong in it.
2026-11-30 09:39:18 -05:00
..