anomalyco / anomalyco/opencode

TUI mouse copy drops blank lines between markdown paragraphs

Open
#44,056 3 comments 0 reactions 1 assignee View on GitHub

@kommander is already working on this.

Since Aug 22, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.