Skip to content

TUI mouse copy drops blank lines between markdown paragraphs #44056

Closed as not planned

Description

@dzatona

Description

Mouse-selecting assistant markdown collapses blank lines between paragraphs (\n\n → \n).

<leader>y (messages_copy) copies part.text correctly. Only the mouse path is wrong.

Not #16521 / opentui#1103: that was empty logical lines inside one TextBuffer.

Plugins

none that touch the TUI

OpenCode version

1.18.15

Steps to reproduce

  1. Ask for three short paragraphs separated by blank lines
  2. Mouse-drag across them
  3. Paste -- blank lines are gone

Operating System

macOS 26.3

Terminal

WezTerm via tmux

Related: #16521 #25623 #10098, anomalyco/opentui#1103

Activity

  1. github-actions commented on Aug 22, 2026

    @github-actions
    Contributor

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

  2. dzatona commented on Aug 22, 2026

    @dzatona
    Author

    Checked those. #16521 and #25623 were closed after opentui#1103, which fixed empty logical lines inside one TextBuffer. This is still broken for markdown paragraphs on 1.18.15 -- mouse path only, <leader>y is fine. Please keep this open rather than closing as a duplicate of a closed issue.

  3. disarticulate commented on Sep 12, 2026

    @disarticulate

    copy paste doesnt work anywhere because who ever decided to override normal terminal behavior fails to read issues.

  4. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions