# workspace: Retain panes while saving \(\#61683\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 23cb8712ba03642f7f85952d7cdd1f4e44ffcafe

Requested commit: 23cb8712ba03642f7f85952d7cdd1f4e44ffcafe

Commit: 23cb8712ba03642f7f85952d7cdd1f4e44ffcafe

Tree: 9d6aa8823e71df6a21e327bba6a533fec37fdcdc

Author: Lukas Wirth

Committer: GitHub

## Message

```
workspace: Retain panes while saving (#61683)

Save tasks can suspend while waiting for prompts, formatting, or
filesystem I/O. Holding only a WeakEntity<Pane> allowed the pane to be
released during those suspension points, surfacing an internal 'entity
released' error as a failed save.

Instead upgrade the pane once the save operation starts so we can ensure
it finishes.


---

Release Notes:

- N/A or Added/Fixed/Improved ...
```

## Parents

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

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