Skip to content

CmdPal: Fixes missing app icons after list recycling - #50988

Merged
Michael Jolley (michaeljolley) merged 2 commits into
mainfrom
dev/jpolasek/b/50984-cmdpal-iconbox-unload-race
Oct 5, 2026
Merged

Michael Jolley (michaeljolley) merged 2 commits into
mainfrom
dev/jpolasek/b/50984-cmdpal-iconbox-unload-race

Conversation

@jiripolasek

Copy link
Copy Markdown
Collaborator

Summary of the Pull Request

This PR fixes blank or fallback icons in All apps when a stale Unloaded event invalidates a freshly loaded row's icon request. Cleanup now waits for the settled IsLoaded state, preserving requests for visible rows.

  • IconBox defers unload cleanup and preserves requests for rows that remain loaded.
  • The unload controller coalesces callbacks and reads IsLoaded directly.
  • Request invalidation advances the version before releasing demand and preserves pending refreshes.
  • XamlRoot subscription handling ignores stale root events and contains teardown failures.

PR Checklist

  • Communication: I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected
  • Tests: Added/updated and all pass
  • Localization: All end-user-facing strings can be localized
  • Dev docs: Added/updated
  • New binaries: Added on the required places
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

- IconBox defers unload cleanup and preserves requests for rows that remain loaded.
- The unload controller coalesces callbacks and reads IsLoaded directly.
- Request invalidation advances the version before releasing demand and preserves pending refreshes.
- XamlRoot subscription handling ignores stale root events and contains teardown failures.
@michaeljolley
Michael Jolley (michaeljolley) merged commit 4815ac3 into main Oct 5, 2026
10 checks passed
@michaeljolley
Michael Jolley (michaeljolley) deleted the dev/jpolasek/b/50984-cmdpal-iconbox-unload-race branch October 5, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0.102 Product-Command Palette Refers to the Command Palette utility Ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CmdPal: Missing app icons after list recycling

3 participants