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
Shift+Enter line break not working in Warp terminal (only Ctrl+J works) #5870
Shift+Enter does not insert a line break in the input when running OpenCode inside the Warp terminal. The expected behavior is that Shift+Enter should create a new line, allowing multi-line input before submitting.
Current Behavior
Pressing Shift+Enter does nothing (no line break inserted)
Only Ctrl+J works as a workaround for inserting line breaks
Expected Behavior
Shift+Enter should insert a line break in the input field, consistent with behavior in other terminals.
Workaround
Using Ctrl+J instead of Shift+Enter successfully inserts a line break.
Additional Context
This may be related to how Warp handles key bindings or how OpenCode captures keyboard input. Other terminals may not have this issue.
Activity
github-actions commentedon Dec 21, 2025
This issue might be a duplicate of existing issues. Please check:
keybinds.input_newlinehas no effect #5458: Modifyingkeybinds.input_newlinehas no effect (Windows Terminal)Feel free to ignore if your specific Warp terminal case is different from these.
For keybind-related issues, please also check our pinned keybinds documentation: #4997
kommander commentedon Dec 21, 2025
Warp does not support modifyOtherKeys or kitty keyboard protocol. Warp will only work when it supports it, see Warp issues like these:
warpdotdev/warp#2037
warpdotdev/warp#2528
The only thing you can do is adding a custom keybinding for
shift+enterto send\n. See something like this: https://github.com/warpdotdev/keysets/tree/main