You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Maintain newline when copying output #10098
The feature you are requesting is default behaviour. It has to be a local problem on your machine or terminal interface.
Any suggestions on figuring out why the newline might be getting dropped for me?
I get the same results on konsole and kitty. I don't see any options in my clipboard that seem related. The closest one was trimming whitespace at the start or end of a selection (so no the situation I outlined) but this does not change the behaviour.
Blank lines in text copied from opencode are missing for me on MacOS, both iTerm2 and Ghostty (in built-in MacOS Terminal copy doesn't work at all, "Copied to clipboard" notification pops up but nothing is actually copied)
Activity
dkraemerwork commentedon Jan 22, 2026
The feature you are requesting is default behaviour. It has to be a local problem on your machine or terminal interface.
adrianveen commentedon Jan 23, 2026
Any suggestions on figuring out why the newline might be getting dropped for me?
I get the same results on konsole and kitty. I don't see any options in my clipboard that seem related. The closest one was trimming whitespace at the start or end of a selection (so no the situation I outlined) but this does not change the behaviour.
i8ramin commentedon Feb 1, 2026
Also curious about this. Output copied from Opencode is missing newlines, but copied from other CLI tools like Claude Code are just fine. Using iTerm2
itkach commentedon Feb 3, 2026
Blank lines in text copied from opencode are missing for me on MacOS, both iTerm2 and Ghostty (in built-in MacOS Terminal copy doesn't work at all, "Copied to clipboard" notification pops up but nothing is actually copied)
github-actions commentedon Apr 5, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.
benkoppe commentedon Jun 2, 2026
Fixed by anomalyco/opentui#1103