# workspace: Fix opening closed projects randomly when Zed restarts \(\#50961\) · gitcafe/zed

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

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

Visibility: public

Requested revision: cc09611d0b058f2c814b8d9e290bdd902e8a6ebf

Requested commit: cc09611d0b058f2c814b8d9e290bdd902e8a6ebf

Commit: cc09611d0b058f2c814b8d9e290bdd902e8a6ebf

Tree: 1047a1a35ea6dd96e8ac017ed1ed849f72633c97

Author: Amaan

Committer: GitHub

## Message

```
workspace: Fix opening closed projects randomly when Zed restarts (#50961)

Closes #49854 

Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [x] No UI changes

Video for the fix: 
in the video i open a project -> close the project -> quit out of zed ->
reopen zed -> zed opens to an empty workspace which was not the case
before


https://github.com/user-attachments/assets/1afb44a1-932b-4dab-8228-9d9d65750b6e



Release Notes:
 - Fixed closed projects re-opening erroneously
```

## Parents

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

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