anomalyco / anomalyco/opencode
First new-line being removed on submit
@Brendonovich is already working on this.
Since Aug 7, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
I use lists -- ordered and unordered -- quite a bit in my messages and I noticed the first new-line tends to get removed when my message is displayed in the session.
Before pressing return
What shows up in the session
Happens even when clicking the "send" button in the UI. Happens with shorter lines as well
Further testing, it seems to be when I type my message in a separate editor (which I do because I jump operating systems enough that I forget which one requires shift-return vs ctrl-return vs etc to get a new-line in the input control). If I do use e.g. shift-return on windows to insert the new-line, things are then formatted correctly
Further further testing, it's anything with copy/pasted with new-lines. It's just easier to notice with a list
becomes
Plugins
No response
OpenCode version
1.18.15
Steps to reproduce
- create an ordered/unordered markdown list in a separate editor
- copy/paste the whole thing into the opencode input control
- either hit return to click "send"
Screenshot and/or share link
No response
Operating System
Ubuntu 26.04 WLS (opencode) and Windows 11 (chrome)
Terminal
No response
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.