opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Pasting something big causes UI issues

Open unluckyjori opened this issue 1 year ago • 9 comments

Pasting big text like the one below causes UI issues. I used a previous response from the AI, but it does not matter what you paste as long as it's a big text.

Okay, let's see. The user asked for exactly what was run to read the agents file.
Earlier, the user mentioned using the AGENTS.md file. The first tool call was to read "AGENTS.md". The response showed the content of AGENTS.md, which includes
guidelines for agents.

The user then asked to scan the next file from unscannedfiles.md, which listed "AISearchRoutine.cs". But when trying to read that file, it wasn't found. So
maybe the path is incorrect. The user then mentioned using only part of the path, not the full one.

But the initial read for AGENTS.md was successful with the full path. The user now wants to know exactly what command was run for that. So the answer should
restate the exact command used: read the file at "AGENTS.md". That's the precise action taken.
Image

unluckyjori avatar Aug 02 '25 04:08 unluckyjori

Is this on latest? what terminal?

rekram1-node avatar Aug 04 '25 02:08 rekram1-node

Latest and in Visual Studio Code

unluckyjori avatar Aug 04 '25 15:08 unluckyjori

Ahh I see, I would recommend using a proper terminal emulator when using TUIs but I can try to look into it a bit more for ya

rekram1-node avatar Aug 04 '25 15:08 rekram1-node

On Windows, when using Git Bash, I notice that each line of code pasted from the clipboard is sent to the model as a separate call.

Image

$ opencode.exe -v 0.4.2

kurdin avatar Aug 10 '25 22:08 kurdin

Please consider pasting lines of code using a format like [Pasted +10 lines] as done by Claude Code and Codex CLI.

kurdin avatar Aug 10 '25 22:08 kurdin

Also having paste issues. New lines trigger new messages. Consider adding a paste mode that disables this behaviour until ESC pressed, like /paste

Durandle46 avatar Sep 06 '25 11:09 Durandle46

My observations

Environment Ctrl+V Support Right-Click Paste Support
Windows Git Bash (standalone) ✅ Works ❌ Not working
Windows Git Bash inside Windows Terminal ❌ Not working ❌ Not working

Not working means it will send each line as a separate command.

geocine avatar Sep 07 '25 19:09 geocine

If anyone is using Windows Terminal . Go to the JSON version of your windows terminal settings and delete/comment out this line

// {
//     "id": "User.paste",
//     "keys": "ctrl+v"
// },

This will remove the ability to paste on normal terminal though, but will work on open code

geocine avatar Sep 12 '25 11:09 geocine

[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

rekram1-node avatar Dec 28 '25 01:12 rekram1-node