# workspace: Fix new projects opening with default window size \(\#45204\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f1ca2f9f3177d32d2b07fd5e62e6a8db28c5ddf9

Requested commit: f1ca2f9f3177d32d2b07fd5e62e6a8db28c5ddf9

Commit: f1ca2f9f3177d32d2b07fd5e62e6a8db28c5ddf9

Tree: ed7a592c14329bf17ad5d9f86911a1c9c13b92c2

Author: MostlyK

Committer: GitHub

## Message

```
workspace: Fix new projects opening with default window size (#45204)

Previously, when opening a new project (one that was never opened
before), the window bounds restoration logic would fall through to
GPUI's default window sizing instead of using the last known window
bounds.

This change consolidates the window bounds restoration logic so that
both empty workspaces and new projects use the stored default window
bounds, making the behavior consistent: any new window will use the last
resized window's size and position.

Closes #45092 

Release Notes:

- Fixed new files and projects opening with default window size instead
of the last used window size.
```

## Parents

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

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