Skip to content

workspace: Fix closed pane items not reopening due to stale preview state#45286

Merged
smitbarmase merged 4 commits intozed-industries:mainfrom
errmayank:nav-items-reopen-history
Jan 30, 2026
Merged

workspace: Fix closed pane items not reopening due to stale preview state#45286
smitbarmase merged 4 commits intozed-industries:mainfrom
errmayank:nav-items-reopen-history

Conversation

@errmayank
Copy link
Contributor

@errmayank errmayank commented Dec 18, 2025

Closes #45198

Release Notes:

  • Fixed an issue where "Reopen Closed Item" would fail to reopen tabs that had been converted from preview to non-preview before being closed.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 18, 2025
@github-actions github-actions bot added the community champion Issues filed by our amazing community champions! 🫶 label Dec 18, 2025
@errmayank
Copy link
Contributor Author

Here's the before/after:

screen-recording-reopen-closed-items.mov

smitbarmase

This comment was marked as outdated.

Copy link
Member

@smitbarmase smitbarmase left a comment

Choose a reason for hiding this comment

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

Thanks! I realized using a pane weak entity, we might not be able to update it since it's already in the pane update. This looks like a straightforward solution to fix it.

errmayank and others added 3 commits January 30, 2026 19:45
Removed is_preview field from ItemNavHistory as it becomes stale when a nav item becomes "permanent". This caused NavHistory::push to skip adding items to the closed_stack
@smitbarmase smitbarmase force-pushed the nav-items-reopen-history branch from a8ec86f to 40dbd86 Compare January 30, 2026 14:16
@smitbarmase smitbarmase merged commit 316a970 into zed-industries:main Jan 30, 2026
28 checks passed
@github-project-automation github-project-automation bot moved this from Community PRs to Done in Quality Week – December 2025 Jan 30, 2026
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 community champion Issues filed by our amazing community champions! 🫶

Projects

Development

Successfully merging this pull request may close these issues.

command "pane: reopen closed item" does nothing

2 participants