Skip to content

Conversation

@MostlyKIGuess
Copy link
Contributor

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.
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 zed-industries#45092

Release Notes:

- Fixed new files and projects opening with default window size instead
  of the last used window size.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 18, 2025
@Veykril Veykril self-assigned this Dec 18, 2025
@github-project-automation github-project-automation bot moved this to Community Champion PRs in Quality Week – December 2025 Dec 18, 2025
Copy link
Member

@Veykril Veykril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Veykril Veykril enabled auto-merge (squash) December 18, 2025 09:48
@Veykril Veykril merged commit f1ca2f9 into zed-industries:main Dec 18, 2025
25 checks passed
@github-project-automation github-project-automation bot moved this from Community Champion PRs to Done in Quality Week – December 2025 Dec 18, 2025
@ofetch
Copy link
Contributor

ofetch commented Dec 18, 2025

@MostlyKIGuess Thank you, I wonder does this fix also work for #40737 ?

rtfeldman pushed a commit that referenced this pull request Jan 5, 2026
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.
@ofetch
Copy link
Contributor

ofetch commented Jan 13, 2026

Hello @Veykril

I'm currently three stable updates in, now at version 0.218.7, and the closed issue #40737 is still not fixed. I’m not sure whether the PR hasn’t made it into a release yet or if it didn’t actually fix the issue. If that’s the case, please reopen issue #40737.

@ofetch
Copy link
Contributor

ofetch commented Jan 15, 2026

@Veykril

Never mind it wasn't included yet, it's in today's release v0.219.4 and it works 👍

LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
…ustries#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 zed-industries#45092 

Release Notes:

- Fixed new files and projects opening with default window size instead
of the last used window size.
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
…ustries#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 zed-industries#45092 

Release Notes:

- Fixed new files and projects opening with default window size instead
of the last used window size.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

3 participants