feat(terminal): selection-aware copy, image paste, and Thai input fix#776
Open
Piya-Boy wants to merge 3 commits into
Open
feat(terminal): selection-aware copy, image paste, and Thai input fix#776Piya-Boy wants to merge 3 commits into
Piya-Boy wants to merge 3 commits into
Conversation
When clipboard contains only an image, write it to a temp PNG file via a Rust command and paste the file path into the terminal. Supports AI CLI tools (e.g. Claude Code) that accept image paths. Temp file is deleted automatically after 5 minutes. - Add write_temp_image Tauri command (Rust, base64 decode → temp dir) - Add base64 crate dependency - Refactor pasteClipboard helper: image path on image-only clipboard, plain text otherwise - Add isMacPaste (Cmd+V) for macOS cross-platform support
In terminal: replace keyCode === 229 check with event.key === 'Process' so Thai tone marks (which Chromium also reports with keyCode 229) are forwarded to xterm's textarea-diff path instead of being silently dropped. In AI composer: skip setValue during IME composition so React does not overwrite the textarea mid-composition, which caused Thai characters to disappear on compositionend.
This was referenced Jun 19, 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.
Summary
Test plan