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
[BUG] Terminal TUI does not insert a new line with Shift+Enter; only Ctrl+J works #2960
Activity
github-actions commentedon Oct 4, 2025
This issue might be a duplicate of existing issues. Please check:
/helpcommands wrap onto next line oddly #2725:/helpcommands wrap onto next line oddly - mentionsinput_newlinecommand wrapping, suggesting TUI input handling issuesFeel free to ignore if none of these address your specific case.
rekram1-node commentedon Oct 4, 2025
@H0llyW00dzZ what terminal are you using?
H0llyW00dzZ commentedon Oct 4, 2025
@rekram1-node I'm using the default terminal that comes with Ubuntu 25.04 (Plucky Puffin)—that’s the distro I’ve been using.
H0llyW00dzZ commentedon Oct 4, 2025
It's GNOME 48
H0llyW00dzZ commentedon Oct 4, 2025
I also found a workaround: if start the line with a backslash (
\) and then press Shift+Enter, it works as expected.Here’s a screen recording demonstrating this:
Screencast.From.2025-10-04.09-45-07.mp4
It might also be helpful to automatically insert a backslash when Shift+Enter is pressed—consider adding this in a future update.
rekram1-node commentedon Oct 4, 2025
this is a duplicate of: #1505
rekram1-node commentedon Oct 4, 2025
The issue here is opencode isn't able to capture the shift+enter at all it isn't an issue of issuing a backslash vs a newline
Normally this is because you have a conflicting keybind causing shift+enter isn't sending the correct thing