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
[FEATURE]: Allow to expand the pasted text (e.g. [Pasted ~1 lines]) #8501
Reacted by Sergey Kostrukov, Ellis Nieuwpoort, ShikChen, Sam Kline, Ariel Schiavoni, Dan Wood, Scott, Goszczu, JD Solanki, mj-h and 236 more
Reacted by Glenn Dwiyatcita, ɘɿuɔɐɿɈ, Chindriș Mihai - Alexandru, Federico Biccheddu, Savely Sivkov, LY, Fadi Chamieh, Samuel Beer, selcukduman, Steve Lalonde and 18 more
Reacted by Maxim, JD Solanki, Matheus, Mathias Fortuna, Manel Cardenas, Haroon Ahmad, Noah, Luis Molina, Claudio Orlandi, Ahmedklai and 30 more
Reacted by Glenn Dwiyatcita, Chindriș Mihai - Alexandru, Savely Sivkov, Pavel, Hunter Wilhelm, Vivasvan, Cezary Stanisławski, Erik May, Halis Yücel, Yannick A. and 5 more
changed the title [-][FEATURE]: A way to expand the pasted text (e.g. `[Pasted ~1 lines]`)[/-][+][FEATURE]: Allow to expand the pasted text (e.g. `[Pasted ~1 lines]`)[/+]on Jan 23, 2026
I would love this. Also using text to speech a lot.
Reacted by Avinash A K, Parker Rowe, Rian Dolphin, Chindriș Mihai - Alexandru, Miguel Jara, Aryan Jain, l3chugas, Jacob Tian, Arda Kılıçdağı, icedpanda and 2 more
Been wanting this for a long time. At this point, I'll just submit my query, immediately interrupt, and then /undo, just so I can see my speech-to-text output.
Reacted by 19hamdisalem91, Peter McIntyre, François, Jacob Tian, Jakariya Abbas, Luciano Commendatore, Sami Saves and akai
Reacted by Bernat Pericàs, Avinash A K, Chindriș Mihai - Alexandru, Peter McIntyre, Erfan Mehraban, fuchinoko, Harvey Williams, Jakariya Abbas and akai
@berenar thanks for suggesting this! I think enabling adding a keybind as done in PR #8496 looks really cool. That said, it pollutes the keybinds for a relatively small benefit.
A simpler discoverable solution may be to support an additional selected state to the pasted summary block.
Instead of skipping over the pasted block when moving your cursor towards it, this can make it appear highlighted.
When you are currently on a highlighted paste summary block,
moving left or right moves your cursor past it, deselecting it
pressing Enter expands it in-line, replacing the block with the raw pasted text
backspace/delete deletes block
I don't think there'd be too much of a need to track the pasted block state and support collapsing it, although adding that support as done in #8496 in the future is always an option.
Reacted by Bernat Pericàs, Avinash A K, Chindriș Mihai - Alexandru, Peter Antoncich, Erfan Mehraban and Kyrylo
Created opentui#652 to optionally customize the extmark's handling of the cursor, allowing behaviors like selecting an extmark rather than only skipping over it. If that's accepted, implementing this in opencode is trivial (see packages/core/src/examples/extmarks-demo.ts in opentui for example).
Reacted by Viktor Willander Thand, ɘɿuɔɐɿɈ, Konstantin Slavnov, Erlend, Parker Rowe, Jeremy Goh, Phoenix Gao, Santiago M. Mola, Daniel Sandnes, Ayush Walia and 22 more
Reacted by Bernat Pericàs, snoolord and Chindriș Mihai - Alexandru
Reacted by ɘɿuɔɐɿɈ, Phoenix Gao, nishikawa7863 and Chindriș Mihai - Alexandru
This is one of the most frustrating things I have ever encountered. I don't know how on earth seeing "Pasted +1 lines" makes sense to anyone. Absolutely ridiculous. What makes it worse is that you can't even click on it to expand it, to edit or even view. What on earth are you thinking guys!
Reacted by Misha Merkushin, Savely Sivkov, Tamas Knisz, Vishal Mishra, Chindriș Mihai - Alexandru, Avinash A K, George Grasham, Pavel, Erfan Mehraban, B. Branchard and 2 more
I'm using wispr dictation to type, which uses paste for longer text. It's also not usually perfect on the first shot, so I need to edit. Having opencode take 2 sentences and put it in the pasted text block such that I can't easily edit it is a huge turn-off and I may switch to another AI CLI just because of this.
Reacted by François, Adam B, j-k, Toby Jackson, Avinash A K, Ian Luca, Jacob Tian and Simon Gates
In Claude CLI, double-pasting automatically expands the [Pasted... ] block - why not use the same convention?
Reacted by LeoniePhiline, Isa, Domenico Andreoli, Guangyi Zhang, Ian Luca, Vinicius da Motta, depado, Jacob Tian, amellouli-mgmtp, Ekaterina Markelova and 3 more
Claude code does this by double pasting (cmd/ctrl+v+v: You paste with ctrl/cmd modifier, and while holding the modifier, press the v key again and it expans to the raw text for that paste). I like that approach personally, and feels natural.
Reacted by Adam B, Tomasz Łaguz, Tino Thamjarat, Filip-Stastny-Philips and David Moberg
@sdivens it's not the same and I believe does not cover the requirement. I may want to extend only one paste. A prompt may consist of multiple big pastes.
Oh and, it's already enabled:
Reacted by NicolasWebDev, Tino Thamjarat, depado, Jakariya Abbas, j-k and 7heMech
It seems there's no real consensus in how this feature should be implemented which is the main blocker. Maybe we need to summarize the approaches people have suggested so far alongside with up/downsides and requirements? I'm a bit short on time though.
For anyone still looking for this on v1: #54463 opens a placeholder's text when you click it, in an editor with the prompt's keys and undo. Escape saves the edit (the label follows the new line count), and an Inline button replaces the placeholder with the text.
Activity
github-actions commentedon Jan 14, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
Merge branch 'dev' into feat/expand-paste-summary
[-][FEATURE]: A way to expand the pasted text (e.g. `[Pasted ~1 lines]`)[/-][+][FEATURE]: Allow to expand the pasted text (e.g. `[Pasted ~1 lines]`)[/+]berenar commentedon Jan 29, 2026
Hi @rekram1-node, what does the team think about this?
DaniBedz commentedon Feb 4, 2026
I would love this. Also using text to speech a lot.
jorgeraad commentedon Feb 8, 2026
@rekram1-node, any updates?
Been wanting this for a long time. At this point, I'll just submit my query, immediately interrupt, and then /undo, just so I can see my speech-to-text output.
jorgeraad commentedon Feb 8, 2026
@berenar thanks for suggesting this! I think enabling adding a keybind as done in PR #8496 looks really cool. That said, it pollutes the keybinds for a relatively small benefit.
A simpler discoverable solution may be to support an additional selected state to the pasted summary block.
Instead of skipping over the pasted block when moving your cursor towards it, this can make it appear highlighted.
When you are currently on a highlighted paste summary block,
I don't think there'd be too much of a need to track the pasted block state and support collapsing it, although adding that support as done in #8496 in the future is always an option.
jorgeraad commentedon Feb 9, 2026
Created opentui#652 to optionally customize the extmark's handling of the cursor, allowing behaviors like selecting an extmark rather than only skipping over it. If that's accepted, implementing this in opencode is trivial (see
packages/core/src/examples/extmarks-demo.tsin opentui for example).avinashkanaujiya commentedon Feb 18, 2026
I really need this.
Simplereally commentedon Feb 26, 2026
I really need this
SivkovSavely commentedon Mar 4, 2026
I also really need this
fchamieh commentedon Mar 28, 2026
This is one of the most frustrating things I have ever encountered. I don't know how on earth seeing "Pasted +1 lines" makes sense to anyone. Absolutely ridiculous. What makes it worse is that you can't even click on it to expand it, to edit or even view. What on earth are you thinking guys!
16 remaining items
jurajkapsz commentedon Jun 20, 2026
+1
I would love the expand feature as well. Too many times I want to modify the pasted text for the prompt.
How about just by clicking on the "pasted lines" placeholder? No toggle. Once expanded, stays expanded. Just my two cents.
mryechkin commentedon Jun 20, 2026
+1 that's all I really want or need
mjperrone commentedon Jun 30, 2026
I'm using wispr dictation to type, which uses paste for longer text. It's also not usually perfect on the first shot, so I need to edit. Having opencode take 2 sentences and put it in the pasted text block such that I can't easily edit it is a huge turn-off and I may switch to another AI CLI just because of this.
b1skit commentedon Jul 1, 2026
This is my #1 pain point with OpenCode CLI.
In Claude CLI, double-pasting automatically expands the
[Pasted... ]block - why not use the same convention?cavokz commentedon Jul 8, 2026
I worked around this by simply disabling the summary and always paste the whole text. See #21315 (comment).
Ardakilic commentedon Jul 27, 2026
Claude code does this by double pasting (cmd/ctrl+v+v: You paste with ctrl/cmd modifier, and while holding the modifier, press the v key again and it expans to the raw text for that paste). I like that approach personally, and feels natural.
sdivens commentedon Jul 28, 2026
Ardakilic commentedon Jul 28, 2026
@sdivens it's not the same and I believe does not cover the requirement. I may want to extend only one paste. A prompt may consist of multiple big pastes.
Oh and, it's already enabled:
jakariyaa commentedon Aug 8, 2026
Any update on this? This is a feature I miss the most from Claude Code
MartyMcFlyInTheSky commentedon Aug 9, 2026
It seems there's no real consensus in how this feature should be implemented which is the main blocker. Maybe we need to summarize the approaches people have suggested so far alongside with up/downsides and requirements? I'm a bit short on time though.
luchev commentedon Aug 11, 2026
I have a proposed implementation #41813 check the preview to see how it looks toggled/untoggled.
feat(tui): make pasted-text placeholders expandable and collapsible
kaddkaka commentedon Oct 9, 2026
What was the outcome? @neriousy
Nowaker commentedon Oct 11, 2026
For anyone still looking for this on v1: #54463 opens a placeholder's text when you click it, in an editor with the prompt's keys and undo. Escape saves the edit (the label follows the new line count), and an Inline button replaces the placeholder with the text.