Fix copy keybinding to prioritize input text over selected blocks (APP-4330)#9491
Open
seemeroland wants to merge 1 commit intomasterfrom
Open
Fix copy keybinding to prioritize input text over selected blocks (APP-4330)#9491seemeroland wants to merge 1 commit intomasterfrom
seemeroland wants to merge 1 commit intomasterfrom
Conversation
Previously, when a block was selected and the user had highlighted text in the input editor, hitting Ctrl/Cmd-Shift-C copied the block content instead of the selected input text. Both selections can coexist, and the user almost always intends to copy the actively selected input. Update TerminalView::copy to check for selected input text right before falling back to copying selected blocks. Linear: APP-4330 Co-Authored-By: Oz <oz-agent@warp.dev>
Contributor
|
I'm starting a first review of this pull request. You can view the conversation on Warp. I completed the review and posted feedback on this pull request. Comment Powered by Oz |
Contributor
There was a problem hiding this comment.
Overview
This PR updates TerminalView::copy so selected input editor text is copied before falling back to selected blocks, while preserving the existing higher-priority CLI subagent, cloud error, and terminal grid selection behavior.
Concerns
- No correctness or security concerns found in the changed diff lines.
Verdict
Found: 0 critical, 0 important, 0 suggestions
Approve
Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).
Powered by Oz
tylerlam-warp
approved these changes
May 1, 2026
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.
Description
Fixes APP-4330: the global Copy keybinding (Ctrl/Cmd-Shift-C) was copying selected block content even when the user had text highlighted in the input editor.
You can have a block selected and text highlighted in the input editor at the same time. In that case, the user almost always intends to copy the actively-selected input text, not the block.
This change updates
TerminalView::copyto check for selected text in the input editor before falling back to copying selected blocks. The priority is now:Testing
Manual testing:
https://www.loom.com/share/573b5d4a75ca42a8ad6c40900363edbd
Server API dependencies
N/A — client-only change.
Agent Mode
Changelog Entries for Stable
CHANGELOG-BUG-FIX: Copy keybinding now prioritizes selected text in the input over a selected block when both are active.