Skip to content

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

Closed

Description

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

Activity

  1. github-actions commented on Oct 20, 2025

    @github-actions
    Contributor

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

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

  2. rekram1-node commented on Oct 20, 2025

    @rekram1-node
    Contributor

    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

  3. ndrwstn commented on Oct 27, 2025

    @ndrwstn

    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.
    dev...kcrommett:opencode:editor-paste-fix

  4. rekram1-node commented on Oct 27, 2025

    @rekram1-node
    Contributor

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

  5. rekram1-node commented on Oct 27, 2025

    @rekram1-node
    Contributor

    will be fixed in next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions