Skip to content

Add Cmd+Shift+T reopen for closed browser panels - #253

Merged
lawrencecchen merged 1 commit into
mainfrom
issue-244-reopen-closed-browser-panels
Feb 21, 2026
Merged

lawrencecchen merged 1 commit into
mainfrom
issue-244-reopen-closed-browser-panels

Conversation

@lawrencecchen

Copy link
Copy Markdown
Contributor

Summary

  • add browser-only recently-closed snapshot capture in Workspace at close-time
  • add capped (20) LIFO restore stack in TabManager and reopen logic that prefers the original pane, then split recreation fallback, then focused-pane fallback
  • wire Cmd+Shift+T via menu action (Reopen Closed Browser Panel)
  • add regression unit tests for LIFO/cap stack behavior

Restore behavior

  • if the original pane still exists, reopen in that pane and restore tab index
  • if the pane collapsed, attempt to recreate the split side from captured parent split metadata
  • if the original workspace is gone or placement data no longer applies, reopen in the currently focused pane

Validation

  • xcodebuild -project GhosttyTabs.xcodeproj -scheme cmux -configuration Debug -destination 'platform=macOS' build ✅
  • xcodebuild -project GhosttyTabs.xcodeproj -scheme cmux-unit -configuration Debug -destination 'platform=macOS' -only-testing:cmuxTests/RecentlyClosedBrowserStackTests test ❌ (pre-existing compile failures in cmuxTests/CmuxWebViewKeyEquivalentTests.swift: missing UpdateChannelSettings symbols)
  • ./scripts/reload.sh --tag issue-244-cmd-shift-t ✅

Closes #244

Implements browser-only recently-closed restore stack with capped LIFO behavior and split-placement fallback.

Issue: #244
@vercel

vercel Bot commented Feb 21, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
cmux Ready Ready Preview, Comment Feb 21, 2026 6:54am

@lawrencecchen
lawrencecchen merged commit 12374c4 into main Feb 21, 2026
5 checks passed
@lawrencecchen
lawrencecchen deleted the issue-244-reopen-closed-browser-panels branch February 21, 2026 07:06
bn-l pushed a commit to bn-l/cmux that referenced this pull request Apr 3, 2026
Implements browser-only recently-closed restore stack with capped LIFO behavior and split-placement fallback.

Issue: manaflow-ai#244

This branch was successfully deployed

1 active deployment
Preview — 3b9b0816 Deployed Feb 21, 2026 by vercel[bot]
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.

Cmd+Shift+T to reopen closed browser panels

1 participant