fix: use terminal paste command for image paths#5
Open
mybarman wants to merge 1 commit intodkodr:mainfrom
Open
fix: use terminal paste command for image paths#5mybarman wants to merge 1 commit intodkodr:mainfrom
mybarman wants to merge 1 commit intodkodr:mainfrom
Conversation
Prefer VS Code's terminal paste command over direct sendText so uploaded image paths reach Claude/Codex TUIs again in remote sessions. AI-assisted by Codex. Co-Authored-By: Codex <codex@openai.com>
c7b2921 to
aab76c4
Compare
Author
|
@dkodr can you review this please? |
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.
Why?
VS Code 1.110+ appears to have regressed terminal insertion for Claude/Codex TUIs in remote sessions. The image upload still succeeds, but
Terminal.sendTextno longer reliably injects the generated remote path into the TUI input.How?
Route terminal insertion through VS Code's terminal paste command instead of relying on direct
sendText, and keep a fallback that leaves the path on the clipboard if programmatic insertion still fails.Implementation details
This change adds a shared terminal insertion helper so both command paths use
workbench.action.terminal.pastebefore falling back. The fix was verified against the reported macOS + remote session repro and also compiles cleanly.AI-assisted by Codex.