gemini-cli
gemini-cli copied to clipboard
Bug: Shift+Enter sends message instead of creating a newline
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?
- The project's own test suite suggests that Shift+Enter is the intended behavior for creating newlines.
- The file
packages/cli/src/ui/components/shared/text-buffer.test.tscontains the following test case:it('should handle VSCode terminal Shift+Enter as newline', ...) - This indicates that the current behavior is likely a regression or a bug that occurs in some terminal environments.
Hi thanks for reporting this issue. Support for the feature is currently being tracked and rolled out: #3289