Skip to content

feat: reopen closed tab from the tab context menu#62

Open
ytkimirti wants to merge 1 commit into
masterfrom
DX-2800-reopen-closed-tab
Open

feat: reopen closed tab from the tab context menu#62
ytkimirti wants to merge 1 commit into
masterfrom
DX-2800-reopen-closed-tab

Conversation

@ytkimirti

@ytkimirti ytkimirti commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a "Reopen Closed Tab" action to the tab context menu. Closed tabs are pushed onto a persisted stack grouped per close action, Chrome style: one reopen click restores everything a "Close Other Tabs" or "Close All But Pinned" closed at once, with full tab state intact.

Changes

  • New persisted closedTabs: TabData[][] in the store, capped at the last 10 close actions; schema bumped to v9 with a migration
  • All four close paths push through a shared pushClosedTabs helper; reopenClosedTab() pops the latest group and selects the last restored tab
  • Context menu item is disabled when the stack is empty and scrolls the restored tab into view
  • Fixes a pre-existing crash when force-closing the last remaining tab via the context menu
recording.mp4

@linear-code

linear-code Bot commented Jul 6, 2026

Copy link
Copy Markdown

DX-2800

@vercel

vercel Bot commented Jul 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-redis-browser Ready Ready Preview, Comment Jul 6, 2026 5:41am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant