gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

Bug: Shift+Enter sends message instead of creating a newline

Open PauloNRocha opened this issue 1 year ago • 1 comments

What happened?

Pressing Shift+Enter in the input prompt immediately sends the message. It should insert a newline character to allow for multi-line input.

What did you expect to happen?

I expected Shift+Enter to insert a newline, allowing me to type a message across multiple lines before sending it with the Enter key.

Client information

  • CLI Version: 0.1.20
  • Git Commit: 214800cf
  • Operating System: win32 v22.18.0
  • Sandbox Environment: no sandbox
  • Model Version: gemini-2.5-pro
  • Memory Usage: 127.0 MB

Login information

API key

Anything else we need to know?

  1. The project's own test suite suggests that Shift+Enter is the intended behavior for creating newlines.
  2. The file packages/cli/src/ui/components/shared/text-buffer.test.ts contains the following test case: it('should handle VSCode terminal Shift+Enter as newline', ...)
  3. This indicates that the current behavior is likely a regression or a bug that occurs in some terminal environments.

PauloNRocha avatar Aug 13 '25 16:08 PauloNRocha

Hi thanks for reporting this issue. Support for the feature is currently being tracked and rolled out: #3289

adamfweidman avatar Aug 13 '25 17:08 adamfweidman