Fix `workspace::ReopenLastPicker` action when `which_key` helper is enabled (#61002)
# Objective
Fixes #60612
`workspace::ReopenLastPicker` should open the stashed picker _after_ the
active model is dismissed
## Solution
Queue reopen requests when another modal is active, then reveal the
stashed modal after `hide_modal` clears the layer. Reset queued reveals
when explicitly opening a new modal.
## Testing
Confirmed `ReopenLastPicker` keybind working even when which_key is
enabled with delay=`0ms`. Tested with file_finder and text_finder.
## Self-Review Checklist:
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable
---
Release Notes:
- Fixed `workspace::ReopenLastPicker` when `which_key` helper menu is
enabled
Co-authored-by: Yara 🏳️⚧️ <git@yara.blue>
4ebc1545d2David committed on 7/22/2026, 1:11:53 AM· committed by GitHubparent9007560