anomalyco / anomalyco/opencode

[Bug] Pasting multiline text with blank lines into Chat input loses empty lines on Windows Desktop

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

@Hona is already working on this.

Since Aug 25, 2026.

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

Description

Environment

  • OpenCode Desktop: v1.18.22
  • Platform: Windows Desktop

Description
When pasting multiline text containing blank lines into the Chat input box, the blank lines are not displayed correctly. The pasted content appears collapsed, so multiline text that should include empty lines is shown without them in the input box.

This happens every time I reproduce it.

Steps to Reproduce

  1. Copy text like this:

    line 1.
    
    line 2.
    
  2. Paste it into the OpenCode Desktop Chat input box.

  3. Observe the content in the input box.

Expected Behavior
The input box should preserve and display the blank line between line 1. and line 2..

Actual Behavior
The blank line is not shown. The pasted text appears as:

line 1.
line 2.
Image

Notes

  • This is only observed when pasting into the Chat input box.
  • Using Shift+Enter to manually insert line breaks works correctly, so multiline display itself appears supported.
  • The issue is reproducible consistently.

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.