waveterm icon indicating copy to clipboard operation
waveterm copied to clipboard

[Bug]: Shift+Enter for Newline Not Working in Claude Code After `/terminal-setup`

Open togo01 opened this issue 1 month ago • 1 comments

Current Behavior

When running Claude Code within Wave Terminal, the ability to insert a newline using the $\text{Shift}+\text{Enter}$ shortcut is not functional, even after running the built-in Claude Code command /terminal-setup.

The /terminal-setup command is designed to configure the terminal for optimal use with Claude Code, and on other terminal applications (like iTerm or VS Code's integrated terminal), this typically enables $\text{Shift}+\text{Enter}$ for multi-line input before submitting the prompt.

However, in Wave Terminal, pressing $\text{Shift}+\text{Enter}$ acts as if only $\text{Enter}$ was pressed—it submits the current prompt immediately instead of adding a new line.

Expected Behavior

This issue seems specific to how Wave Terminal handles keyboard events, particularly the combination of $\text{Shift}+\text{Enter}$, potentially conflicting with the settings applied by Claude Code's /terminal-setup script.

Steps To Reproduce

  1. Open Wave Terminal and launch Claude Code (e.g., using the claude command).
  2. Run the terminal setup command: /terminal-setup
  3. Type a line of text in the prompt.
  4. Press $\text{Shift}+\text{Enter}$.
  • Observed Behavior: The prompt is immediately submitted to Claude Code.
  • Expected Behavior: A new line should be inserted, allowing the user to type a multi-line prompt before final submission (which usually happens with $\text{Enter}$ or $\text{Ctrl}+\text{Enter}$).

Wave Version

0.12.1 (202510210631)

Platform

macOS

OS Version/Distribution

26.0(25A354)

Architecture

arm64

Anything else?

No response

Questionnaire

  • [ ] I'm interested in fixing this myself but don't know where to start
  • [ ] I would like to fix and I have a solution
  • [ ] I don't have time to fix this right now, but maybe later

togo01 avatar Nov 04 '25 15:11 togo01

#2523

togo01 avatar Nov 05 '25 07:11 togo01

should be working thanks to your PR!

sawka avatar Nov 20 '25 22:11 sawka