Calling /editor on a longer bit of pasted prompt should actually open the pasted text #2190

Closed
opened 2026-02-16 17:34:35 -05:00 by yindo · 5 comments
Owner

Originally created by @benceferdinandy-signifyd on GitHub (Oct 20, 2025).

Description

When you have this:

Image

editor ends you with this:
Image

It's actually quite bad because closing the editor now actually overrides the original prompt with what you see in the editor literally.

OpenCode version

0.15.8

Steps to reproduce

Copy a longer bit of prompt so it get's truncated and execute the shortcut for editor

Screenshot and/or share link

No response

Operating System

MacOS

Terminal

Ghostty

Originally created by @benceferdinandy-signifyd on GitHub (Oct 20, 2025). ### Description When you have this: <img width="691" height="332" alt="Image" src="https://github.com/user-attachments/assets/b024bc80-61f2-4176-8562-86c298f4b0ca" /> editor ends you with this: <img width="370" height="117" alt="Image" src="https://github.com/user-attachments/assets/fa652888-2cfe-4d0e-8339-5e2844a02473" /> It's actually quite bad because closing the editor now actually overrides the original prompt with what you see in the editor literally. ### OpenCode version 0.15.8 ### Steps to reproduce Copy a longer bit of prompt so it get's truncated and execute the shortcut for editor ### Screenshot and/or share link _No response_ ### Operating System MacOS ### Terminal Ghostty
yindo added the bug label 2026-02-16 17:34:35 -05:00
yindo closed this issue 2026-02-16 17:34:35 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 20, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2551: Request for an option to disable pasting behavior when the text is a bit long - This issue describes the exact same problem where pasted text gets truncated/formatted automatically instead of opening the full text in the editor

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 20, 2025): This issue might be a duplicate of existing issues. Please check: - #2551: Request for an option to disable pasting behavior when the text is a bit long - This issue describes the exact same problem where pasted text gets truncated/formatted automatically instead of opening the full text in the editor Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 20, 2025):

oh yeah that should definitely get fixed thanks for callout

We are going to ship a rewrite of the tui this week so this will be fixed in one way or another

@rekram1-node commented on GitHub (Oct 20, 2025): oh yeah that should definitely get fixed thanks for callout We are going to ship a rewrite of the tui this week so this will be fixed in one way or another
Author
Owner

@ndrwstn commented on GitHub (Oct 27, 2025):

Still an issue in 0.15.18

Apparently someone has made a fix in a fork so this may be something that can easily be fixed. before the new tui.
https://github.com/sst/opencode/compare/dev...kcrommett:opencode:editor-paste-fix

@ndrwstn commented on GitHub (Oct 27, 2025): Still an issue in 0.15.18 Apparently someone has made a fix in a fork so this may be something that can easily be fixed. before the new tui. https://github.com/sst/opencode/compare/dev...kcrommett:opencode:editor-paste-fix
Author
Owner

@rekram1-node commented on GitHub (Oct 27, 2025):

I asked them to open a pr for it, ill merge it if they do

@rekram1-node commented on GitHub (Oct 27, 2025): I asked them to open a pr for it, ill merge it if they do
Author
Owner

@rekram1-node commented on GitHub (Oct 27, 2025):

will be fixed in next release

@rekram1-node commented on GitHub (Oct 27, 2025): will be fixed in next release
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2190