You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Windows Terminal, Ctrl+V is intercepted by the terminal before the TUI's onKeyDown fires. When the clipboard has only an image, Windows Terminal sends nothing — so the existing clipboard image read path never triggers.
Adds alt+v as a second default for input_paste ("ctrl+v,alt+v"). Windows Terminal doesn't intercept Alt+V, so it reaches onKeyDown and the existing PowerShell clipboard read works as intended.
Safe cross-platform: @opentui/core blocks character insertion when key.meta is true, so Alt+V with no image in clipboard does nothing. On macOS/Linux where Ctrl+V already passes through, it's a harmless extra binding.
How did you verify your code works?
Tested on Windows 11 + Windows Terminal. Alt+V with an image in clipboard inserts [Image 1] in the prompt. Ctrl+V text paste unaffected.
Related to clipboard image paste functionality on Windows environments
These PRs all relate to the same underlying issue: clipboard image paste on Windows Terminal/environments. PR #8495 appears to be the most directly related as it also implements the Alt+V keybind solution.
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
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.
Issue for this PR
Closes #13800, #10154
Related issues: #13322, #12075
Related unmerged PRs from other contributors: #13161, #13871, #8626
Type of change
What does this PR do?
On Windows Terminal, Ctrl+V is intercepted by the terminal before the TUI's onKeyDown fires. When the clipboard has only an image, Windows Terminal sends nothing — so the existing clipboard image read path never triggers.
Adds
alt+vas a second default for input_paste ("ctrl+v,alt+v"). Windows Terminal doesn't interceptAlt+V, so it reaches onKeyDown and the existing PowerShell clipboard read works as intended.Safe cross-platform: @opentui/core blocks character insertion when key.meta is true, so
Alt+Vwith no image in clipboard does nothing. On macOS/Linux whereCtrl+Valready passes through, it's a harmless extra binding.How did you verify your code works?
Tested on Windows 11 + Windows Terminal.
Alt+Vwith an image in clipboard inserts [Image 1] in the prompt.Ctrl+Vtext paste unaffected.Screenshots / recordings
Checklist