# cli: Restore workspace by default when \`cli_default_open_behavior="new_window"\` \(\#60652\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4d6762ad6b83c55326997553ab53d66e8eaaa716

Requested commit: 4d6762ad6b83c55326997553ab53d66e8eaaa716

Commit: 4d6762ad6b83c55326997553ab53d66e8eaaa716

Tree: a48c9f1c39838dd8f0bd9615e9fc255edc57bcda

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
cli: Restore workspace by default when `cli_default_open_behavior="new_window"` (#60652)

Closes #60325, Follow up to #59415

Fixes an issue where launching Zed from the cli (just `zed`, no path)
would not restore the previous window when using
`cli_default_open_behavior: new_window`

Release Notes:

- cli: Fixed an issue where the previous workspace would not be restored
when using `cli_default_open_behavior: new_window` and no path was
provided
```

## Parents

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

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