anomalyco / anomalyco/opencode
[Bug] Pasting multiline text with blank lines into Chat input loses empty lines on Windows Desktop
@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
-
Copy text like this:
line 1. line 2. -
Paste it into the OpenCode Desktop Chat input box.
-
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.
Notes
- This is only observed when pasting into the Chat input box.
- Using
Shift+Enterto manually insert line breaks works correctly, so multiline display itself appears supported. - The issue is reproducible consistently.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.