Skip to content

Fix reopened browser focus after workspace switch - #257

Merged
lawrencecchen merged 2 commits into
mainfrom
feat-reopen-browser-focus-fix
Feb 21, 2026
Merged

lawrencecchen merged 2 commits into
mainfrom
feat-reopen-browser-focus-fix

Conversation

@lawrencecchen

Copy link
Copy Markdown
Contributor

Summary

  • fix TabManager.reopenMostRecentlyClosedBrowserPanel() to preserve focus on the reopened browser panel when switching back to the original workspace
  • add regression coverage for the workspace-switch reopen path from Cmd+Shift+T to reopen closed browser panels #244
  • add edge-case coverage for reopening after deleting the original workspace and reopening from collapsed split state
  • update stale update-feed tests in cmuxTests/CmuxWebViewKeyEquivalentTests.swift to the current UpdateFeedResolver API so unit tests compile/run

Testing

  • xcodebuild -project GhosttyTabs.xcodeproj -scheme cmux-unit -configuration Debug -destination 'platform=macOS' -only-testing:cmuxTests/TabManagerReopenClosedBrowserFocusTests test
  • xcodebuild -project GhosttyTabs.xcodeproj -scheme cmux -configuration Debug -destination 'platform=macOS' build

@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 11:08am

@lawrencecchen
lawrencecchen merged commit 7dbc80d into main Feb 21, 2026
3 of 5 checks passed
@lawrencecchen
lawrencecchen deleted the feat-reopen-browser-focus-fix branch February 21, 2026 11:08
bn-l pushed a commit to bn-l/cmux that referenced this pull request Apr 3, 2026
…er-focus-fix

Fix reopened browser focus after workspace switch

This branch was successfully deployed

1 active deployment
Preview — e9f25ef6 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.

1 participant