Repository navigation
Make Cmd+Shift+T reopen the last closed item - #9132
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (13)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughCmd+Shift+T now defaults to reopening closed browser panels while legacy workspace bindings can displace that default. Shortcut resolution, UI binding lookup, documentation, and window-restoration tests were updated accordingly. ChangesReopen Last Closed Shortcut
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant KeyboardShortcutSettings
participant ClosedItemHistoryStore
participant MainWindow
User->>KeyboardShortcutSettings: Press Cmd+Shift+T
KeyboardShortcutSettings->>ClosedItemHistoryStore: Restore newest closed item
ClosedItemHistoryStore->>MainWindow: Reopen window or panel
MainWindow-->>User: Restore workspace, tabs, and frame
Possibly related issues
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 24 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (24 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
ClosedItemHistoryStoreLIFO path, including window workspaces and geometrycmux.jsonand SettingsArchitecture
This builds on the existing close-history owner rather than adding window-only state. Window closure already records a value-typed
SessionWindowSnapshot, and restoration creates a fresh AppKit window from that snapshot. No live closed-window or PTY context is retained, and surface-level restore can continue to share the same stack (#4427).Validation
swift test --disable-xctest --package-path Packages/macOS/CmuxSettings(265 tests passed)./scripts/lint-pbxproj-test-wiring.sh(626 test files)web/data/cmux-shortcuts.tsgit diff --checkCloses #9126
Cross-reference: #4427
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Cmd+Shift+T now reopens the last closed item—panel, workspace, or window—in LIFO order and restores window geometry. Settings now also preserve legacy unbindings so Cmd+Shift+T won’t override them. Closes #9126.
New Features
reopenClosedBrowserPanelaction ID for Settings compatibility.Migration
reopenClosedWorkspaceis unbound by default; Cmd+Shift+T defaults toreopenClosedBrowserPanel.reopenClosedWorkspaceare preserved and suppress the default onreopenClosedBrowserPanel.Written for commit bdf5cc9. Summary will update on new commits.