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
{{ message }}
Repository navigation
Pasted text from a clipboard is shown as "[pasted #2 1+ lines]" instead of inline pasting #3532
Hello, opencode devs! I've just downloaded and started to familiarize myself with opencode and I immediately stumbled across two issues.
One is being discussed here - shift+enter keybinding not working #1505 - is that there's no straightforward way to provide multi-line prompts (Ubuntu 24 LTS, default Gnome terminal), apart from CTRL+j
Another is that when I paste some text snippets while composing a prompt, they're pasted like "[pasted Roadmap & Existing Issues #2 1+ lines]" to prompt (instead of a plaintext), which is very annoying.
One might say to overcome both these issues I can prepare my prompts in an external editor - and yes, that is a workaround. But it spoils the overall experience of using the opencode as one and only tool.
Anyway it's really strange default behavior and Im also interesting is it intended
Reacted by Islam Nofl, Vlad Vaviloff, Fayi FB, Faisal Alkheraiji, Alexandr Pavlov, Victor Conner, Qoiso, Dennis Weber, Francesc Rosas, 2zqa and 12 more
Thanks for answering @istarkov! The version is 0.15.23 (as per the GitHub it's the latest one).
How to reproduce is:
copy some small piece of text into a clipboard. In my case it was some points I was making for myself, a sort of TODO list I wanted to give to llm as a prompt:
- don't forget about one thing
- don't forget about the other thing
- do the third thing, but keep in mind the previous two
- also keep in mind that ...
- and consider ...
With this snippet you should be able to reproduce it.
paste the contents of a clipboard to a prompt control (in Ubuntu's 24.04 LTS default Gnome terminal the shortcut is CTRL+SHIFT+v). You'll see the effect:
The interesting fact is - if you copy just first three lines, they are pasted as a normal text. So I suppose this behavior is somewhat dependent on the amount of characters / tokens being pasted.
@rekram1-node thanks for answering. I meant that I liked the fact that when I was pasting clipboard I would see [pasted ...] and not the raw text. However, now I do see the raw text.
Activity
github-actions commentedon Oct 29, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
istarkov commentedon Oct 29, 2025
You can fix this by adding these lines in your opencode.jsonc
Anyway it's really strange default behavior and Im also interesting is it intended
kha84 commentedon Oct 29, 2025
Thanks for answering @istarkov! The version is
0.15.23(as per the GitHub it's the latest one).How to reproduce is:
With this snippet you should be able to reproduce it.
The interesting fact is - if you copy just first three lines, they are pasted as a normal text. So I suppose this behavior is somewhat dependent on the amount of characters / tokens being pasted.
rekram1-node commentedon Oct 29, 2025
This is intentional behavior, if you submit the prompt it expands it.
In the soon to ship version of opencode using opentui this behavior will be adjusted so that you can expand and edit the contents
kha84 commentedon Oct 29, 2025
Awesome! Thanks a lot for the explanation
zippeurfou commentedon Nov 4, 2025
I actually liked this features but it seems gone with the 1.X release. Was this intended?
rekram1-node commentedon Nov 4, 2025
@zippeurfou are you talking about ability to disable the paste summary?
zippeurfou commentedon Nov 4, 2025
@rekram1-node thanks for answering. I meant that I liked the fact that when I was pasting clipboard I would see
[pasted ...]and not the raw text. However, now I do see the raw text.rekram1-node commentedon Nov 4, 2025
@zippeurfou hmm what terminal are u in and are u on latest? This doesn't work for u?
Screen.Recording.2025-11-04.at.10.43.17.AM.mov
zippeurfou commentedon Nov 4, 2025
No it does not @rekram1-node .
I am on iterm2 on macos
I am on v1.0.20
rekram1-node commentedon Nov 4, 2025
@zippeurfou I think it has a minimum # of lines required before it does that. Try pasting a large chunk of text like a code file or soemthing
zippeurfou commentedon Nov 4, 2025
@rekram1-node maybe this was a bad example but long text does exactly the same.
rekram1-node commentedon Nov 4, 2025
wow weird
rekram1-node commentedon Nov 4, 2025
im gonna close this one and open a separate issue for u
rekram1-node commentedon Nov 4, 2025
disable_paste_summary will be respected in next release
Phalangers commentedon Mar 25, 2026
workaround:
paste your prompt > displays [Pasted 4 lines]
use the command "open editor" (ctrl+x e) and save > turns the prompt back into text
mrckzgl commentedon Sep 28, 2026
Which version number is mean with the "soon to ship version ... using opentui"? Is this already released, and how to expand the lines?