Skip to content

[6.x] Fix Command Palette recents not updating when navigating#13908

Merged
jasonvarga merged 2 commits into6.xfrom
command-palette-recent
Feb 13, 2026
Merged

[6.x] Fix Command Palette recents not updating when navigating#13908
jasonvarga merged 2 commits into6.xfrom
command-palette-recent

Conversation

@duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Feb 12, 2026

This pull request fixes an issue where the recents state wasn't being updated when navigating in the Command Palette.

It looks like this was caused by a race condition introduced in #13569, where the Command Palette closed before it could call addToRecentItems. This PR effectively reverts that PR, and fixes the issue in a different way.

The "Save", "Edit Blueprint" actions aren't returned by findSelectedItem() which causes an error in the select() function when it tries to add to recent, etc.

The error means the reset() function isn't called, which is usually responsible for closing the Command Palette. This PR fixes it by adding a conditional in select() to avoid the error.

Fixes #13904

@jasonvarga jasonvarga merged commit 453b85c into 6.x Feb 13, 2026
13 checks passed
@jasonvarga jasonvarga deleted the command-palette-recent branch February 13, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Command Palette recents not updating

2 participants

Comments