Improve stability of navigation in command palette