Skip to content

Preserve panel zoom state across workspace switches#49069

Merged
rtfeldman merged 1 commit intomainfrom
AI-22/fullscreen-workspace-switch
Feb 12, 2026
Merged

Preserve panel zoom state across workspace switches#49069
rtfeldman merged 1 commit intomainfrom
AI-22/fullscreen-workspace-switch

Conversation

@rtfeldman
Copy link
Contributor

@rtfeldman rtfeldman commented Feb 12, 2026

When the agent panel (or any dock panel) is open and fullscreened/zoomed, switching to a different workspace in the sidebar and then switching back caused the panel to close. It should remain both open and zoomed.

The root cause was in MultiWorkspace::focus_active_workspace() — it always focused the center pane of the active workspace. This triggered dismiss_zoomed_items_to_reveal(None), which closed any zoomed dock panel (the same behavior as when a user intentionally clicks away from a zoomed panel).

The fix checks if any dock has a zoomed panel before deciding what to focus. If a zoomed panel exists, it focuses that panel instead of the center pane, preventing the dismiss logic from firing.

Closes AI-22

Release Notes:

  • Fixed panels losing their fullscreen state when switching between workspaces.

When switching between workspaces in the sidebar, focus_active_workspace
always focused the center pane. This triggered dismiss_zoomed_items_to_reveal
which closed any zoomed dock panel.

Now focus_active_workspace checks if a dock panel is zoomed and focuses it
instead of the center pane, preserving the zoomed state.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 12, 2026
@zed-community-bot zed-community-bot bot added the staff Pull requests authored by a current member of Zed staff label Feb 12, 2026
@rtfeldman rtfeldman marked this pull request as ready for review February 12, 2026 21:59
@rtfeldman rtfeldman merged commit 9446eef into main Feb 12, 2026
38 checks passed
@rtfeldman rtfeldman deleted the AI-22/fullscreen-workspace-switch branch February 12, 2026 21:59
morgankrey added a commit that referenced this pull request Feb 19, 2026
Auto-applied queued documentation suggestions from:
- PR #48908
- PR #48909
- PR #48910
- PR #48912
- PR #48930
- PR #44794
- PR #48763
- PR #45073
- PR #48495
- PR #49374
- PR #49139
- PR #48780
- PR #48619
- PR #48978
- PR #48962
- PR #48988
- PR #47860
- PR #49015
- PR #47095
- PR #47475
- PR #48542
- PR #46766
- PR #47754
- PR #48807
- PR #44506
- PR #49051
- PR #49069
- PR #48842
- PR #48851
- PR #48736
- PR #47673
- PR #49094
- PR #49098
- PR #49622

Generated with script/docs-suggest-publish for human review in draft PR.
morgankrey added a commit that referenced this pull request Feb 25, 2026
Auto-applied queued documentation suggestions from:
- PR #48908
- PR #48909
- PR #48910
- PR #48912
- PR #48930
- PR #44794
- PR #48763
- PR #45073
- PR #48495
- PR #49374
- PR #49139
- PR #48780
- PR #48619
- PR #48978
- PR #48962
- PR #48988
- PR #47860
- PR #49015
- PR #47095
- PR #47475
- PR #48542
- PR #46766
- PR #47754
- PR #48807
- PR #44506
- PR #49051
- PR #49069
- PR #48842
- PR #48851
- PR #48736
- PR #47673
- PR #49094
- PR #49098
- PR #49622
- PR #49554
- PR #49710
- PR #49716
- PR #49732
- PR #49788
- PR #49876
- PR #49902
- PR #49910
- PR #49390
- PR #50027

Generated with script/docs-suggest-publish for human review in draft PR.
morgankrey added a commit that referenced this pull request Feb 25, 2026
Auto-applied documentation from:
- PR #48542: Bedrock extended context window
- PR #46766: LSP adapters in settings schema
- PR #47754: VSCode tasks.json label generation

Skipped (no target file exists):
- PR #49069: panel zoom state persistence

Already documented from prior batches:
- PR #48807, PR #44506, PR #49051, PR #48842, PR #48851, PR #48736
morgankrey added a commit that referenced this pull request Feb 25, 2026
Auto-applied queued documentation suggestions from:
- PR #48908
- PR #48909
- PR #48910
- PR #48912
- PR #48930
- PR #44794
- PR #48763
- PR #45073
- PR #48495
- PR #49374
- PR #49139
- PR #48780
- PR #48619
- PR #48978
- PR #48962
- PR #48988
- PR #47860
- PR #49015
- PR #47095
- PR #47475
- PR #48542
- PR #46766
- PR #47754
- PR #48807
- PR #44506
- PR #49051
- PR #49069
- PR #48842
- PR #48851
- PR #48736
- PR #47673
- PR #49094
- PR #49098
- PR #49622
- PR #49554
- PR #49710
- PR #49716
- PR #49732
- PR #49788
- PR #49876
- PR #49902
- PR #49910
- PR #49390
- PR #50027

Generated with script/docs-suggest-publish for human review in draft PR.
morgankrey added a commit that referenced this pull request Feb 25, 2026
Auto-applied documentation from:
- PR #48542: Bedrock extended context window
- PR #46766: LSP adapters in settings schema
- PR #47754: VSCode tasks.json label generation

Skipped (no target file exists):
- PR #49069: panel zoom state persistence

Already documented from prior batches:
- PR #48807, PR #44506, PR #49051, PR #48842, PR #48851, PR #48736
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 staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant