Shift-Enter sends message instead of adding newline #2760

Closed
opened 2026-02-16 17:37:08 -05:00 by yindo · 2 comments
Owner

Originally created by @calebdw on GitHub (Nov 10, 2025).

Description

Hello!

It looks like Enter and Shift-Enterboth send the message. IfEntersends the message, thenShift-Enter` should just add a newline (this was the behaviour on the 0.15.x) branch

OpenCode version

1.0.55

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

PopOs 22 (ubuntu)

Terminal

Wezterm

Originally created by @calebdw on GitHub (Nov 10, 2025). ### Description Hello! It looks like `Enter` and Shift-Enter` both send the message. If `Enter` sends the message, then `Shift-Enter` should just add a newline (this was the behaviour on the 0.15.x) branch ### OpenCode version 1.0.55 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System PopOs 22 (ubuntu) ### Terminal Wezterm
yindo added the opentuibug labels 2026-02-16 17:37:08 -05:00
yindo closed this issue 2026-02-16 17:37:08 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 10, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #1505: shift+enter keybinding not working - describes the same issue where shift+enter sends messages instead of adding newlines, with detailed technical analysis
  • #4046: Shift-return does not input newline since 1.0 - reports identical issue where shift-return doesn't work since OpenCode v1.0
  • #3849: Keybind: ctrl+j stopped working in 1.0 - related keybinding issue in v1.0 where ctrl+j (alternative to shift+enter) has problems

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 10, 2025): This issue might be a duplicate of existing issues. Please check: - #1505: shift+enter keybinding not working - describes the same issue where shift+enter sends messages instead of adding newlines, with detailed technical analysis - #4046: Shift-return does not input newline since 1.0 - reports identical issue where shift-return doesn't work since OpenCode v1.0 - #3849: Keybind: ctrl+j stopped working in 1.0 - related keybinding issue in v1.0 where ctrl+j (alternative to shift+enter) has problems Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Nov 10, 2025):

we working on fixing this

@rekram1-node commented on GitHub (Nov 10, 2025): we working on fixing this
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2760