Make Cmd+W close the active tab instead of the window#64
Merged
wesbillman merged 1 commit intomainfrom Apr 1, 2026
Merged
Conversation
Intercepts the Cmd+W keydown event in the AppShell keyboard handler to close the current active tab via closeAndCleanupTab. When no tab is active, the shortcut is swallowed with no effect. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
tellaho
added a commit
to tellaho/goose2
that referenced
this pull request
Apr 2, 2026
Merges 7 commits from main into tho/boss-ui: - Image paste support in chat input (block#68) - Tab name text unselectable (block#67) - Chat title immediate update on send (block#66) - Artifact v1 file viewing (block#63) - Cmd+W tab close (block#64) - Chat activity/unread state tracking (block#62) - Sidebar hierarchy polish + faster reloads (block#61) Key conflict resolutions: - Keep Tailwind v4 CSS-based config (delete tailwind.config.js) - Keep boss-ui dialog.tsx, add showCloseButton prop from main - Add text-foreground-subtle token to boss-ui theme system - Keep ToolCallAdapter (boss-ui), adopt ToolChainCards pattern from main - Delete MarkdownContent/ToolCallCard (replaced by boss-ui ai-elements) - Adopt SessionActivityIndicator from main into sidebar - Adopt ClickableImage/ImageLightbox from main - Merge drag-and-drop image support into ChatInput - Keep boss-ui hover:bg-accent/50 treatment throughout sidebar Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cmd+Win the existing AppShell keydown handler to close the active tab viacloseAndCleanupTabinstead of letting Tauri's default close-window behavior fireCmd+,(settings) andCmd+B(sidebar) handlersTest plan
Cmd+W— active tab should close, next tab becomes activeCmd+W— should return to the home screenCmd+W— nothing should happen (window stays open)Cmd+,andCmd+Bstill work as before🤖 Generated with Claude Code