# Fix \`workspace::ReopenLastPicker\` action when \`which_key\` helper is enabled \(\#61002\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/4ebc1545d299b1270bc76813fa841357ee711b19)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 4ebc1545d299b1270bc76813fa841357ee711b19

Requested commit: 4ebc1545d299b1270bc76813fa841357ee711b19

Commit: 4ebc1545d299b1270bc76813fa841357ee711b19

Tree: f89830d6a0ab3345db595b93e51ea6bdcdce5d67

Author: David

Committer: GitHub

## Message

```
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>
```

## Parents

- [9007560a696dbc9037314808052411d43386598e](https://git.cafe/gitcafe/zed/commit/9007560a696dbc9037314808052411d43386598e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/4ebc1545d299b1270bc76813fa841357ee711b19?format=markdown)
