GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing github.com — fix(desktop): Cmd/Ctrl+W closes sidebar tabs, never the window by t3dotgg · Pull Request #25860 · pingdotgg/t3code Conversation
Member
Cmd/Ctrl+W should only close tabs in the sidebar. When no tab was left to close, it closed the whole T3 Code window. On Windows and Linux that also quits the app and the local server. The renderer handles Now no application menu item has that shortcut on any platform:
The window close button and Quit work as before. This also covers what #25003 fixes for Windows and Linux, and adds macOS. Proof: a new menu test fails on Before ( After: Files tab open, Ctrl+W closes it, Ctrl+W again leaves the window open. Reviewed with sol-loop: 1 round with GPT-6.1 Sol. Sol verdict: approved Created with Claude Opus 5.5 in Claude Code (T3 Code). 🤖 Generated with Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
ApprovabilityVerdict: Needs Human Approval Macroscope's review found this PR requires human approval — This PR changes the default desktop Cmd/Ctrl+W behavior so it closes renderer tabs but never closes the window or quits the app, with focused cross-platform menu tests. Because this alters a product-default shortcut behavior, it warrants human review. No code changes detected at You can add or adjust custom eligibility rules. Learn more. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
82975f1 to
edbb2f6
Compare
There was an error while loading. Please reload this page.
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Menu and shortcut behavior apps/desktop/src/window/DesktopApplicationMenu.ts, apps/desktop/src/window/DesktopApplicationMenu.test.ts, apps/desktop/src/window/DesktopWindow.ts, docs/user/keybindings.md |
The macOS File menu closes the clicked window directly; other platforms retain the quit role. The Window menu defines Minimize and Zoom items, plus separator and Front items on macOS. The cross-platform test checks for close roles, default Window submenus, and +W accelerators. The comment and documentation describe Cmd/Ctrl+W behavior. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Possibly related PRs
Suggested labels: bugfix
Suggested reviewers: maria-rcks, juliusmarminge
edbb2Cmd/Ctrl+W is intended to close eligible tabs without closing the window. No actionable merge-blocking risk remains in the supplied evidence.
Explanation
The title "fix(desktop): Cmd/Ctrl+W closes sidebar tabs, never the window" is a conventional commit title that states the main change. The PR removes the native menu accelerator that made Cmd/Ctrl+W close the window when no terminal or right-panel tab remained. The changeset matches this: the File and Window menus no longer carry the CmdOrCtrl+W accelerator, the Window menu gets an explicit submenu, and the keybindings doc is updated. The title is specific and accurate.
Explanation
The description follows the template's main sections and covers the problem, the change, and verification. The Problem and Change content is clear. Verification gives a specific failing-then-passing menu test, a manual Linux Electron check with observed results, and before/after screenshots. The Scope and approval section is missing. It does not link a triaged bug issue or maintainer approval. It cites PR #25003 but does not say whether that PR or a maintainer approved this direction. The author also left the template's Read CONTRIBUTING.md comment in place, which is not a content problem. The description also names the model used, which the template asks for.
Resolution
Fill in the "Scope and approval" section. Link the triaged bug issue or the discussion with explicit maintainer approval, including the approval comment. If no prior issue exists, explain why this small, focused fix of an obvious bug qualifies without one. Also clarify the relationship to #25003, since the description says this fix covers what #25003 fixes for Windows and Linux.
Comment @coderabbitai help to get the list of available commands.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…otgg#25860) Co-authored-by: Claude Opus 5.5 <[email protected]> (cherry picked from commit a86c05f)
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.