You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A launcher-icon switch whose caller is cancelled leaves the app naming the old icon #387
On branch android/app-icons, AppIconStore.switchTo published the new icon (state.value = target) only after locked { aliases.switchTo(target) } returned.
Failure scenario
The coroutine that pressed «Применить» is cancelled while the platform write is running on the IO dispatcher. For example, the page's scope ends mid-switch.
The write completes, but withContext throws CancellationException when it resumes, so the assignment never runs.
For the rest of the process, current names the old icon while the launcher shows the new one. The row on «Оформление», «О приложении» and the page itself all show the old icon. «Применить» stays enabled for the icon already applied.
refresh and reconcile had the same ordering. That also let an earlier read overwrite a later switch's value.
How it was found
The review of task 4 of docs/specs/2026-10-09-app-icons-plan.md found it. This never reached main.
Fix
d082a2e on android/app-icons assigns the value inside the locked block, right after the write it publishes. Its test cancels the job in the middle of the platform write. The pull request for that branch closes this issue.
Activity
Hand over the app icons: sixty-four «Пятёрка» variants chosen in the …