# workspace: Support hot-exit for empty workspaces and single files \(\#46557\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e1c80f4706cefec5aaba9216471f4a80921aa937

Requested commit: e1c80f4706cefec5aaba9216471f4a80921aa937

Commit: e1c80f4706cefec5aaba9216471f4a80921aa937

Tree: 60b1fb09aebbd6d108bfbc117808a51ecb075a31

Author: Feng

Committer: GitHub

## Message

```
workspace: Support hot-exit for empty workspaces and single files (#46557)

Enables restoration of empty workspaces (without folders) that contain
unsaved items like drafts or single files. Empty workspaces are now
identified by workspace_id rather than paths, allowing multiple empty
workspaces to coexist and be properly restored on startup. This ensures
users don't lose work when closing Zed with unsaved files in empty
workspaces.

Closes #15098

Release Notes:

- Improved: Empty workspaces with unsaved files now restore on startup
(hot-exit)

---------

Co-authored-by: Kirill Bulatov <kirill@zed.dev>
```

## Parents

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

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