-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Description
What happened?
When pasting text containing multiple lines (newlines) into the Gemini CLI prompt on Windows, the CLI does not handle
the input as a single block. Instead, it interprets the first newline character as an "Enter" key press.
Steps to Reproduce:
Copy a block of text with multiple lines (e.g., a code snippet or a long prompt).
. Paste it into the Gemini CLI input prompt.
Actual Behavior:
The first line is immediately sent/submitted as a message. The subsequent lines are either sent as separate rapid-fire
messages or left in the buffer/lost depending on the timing.
Expected Behavior:
What did you expect to happen?
The CLI should support multi-line pasting (likely via "Bracketed Paste Mode" or proper readline configuration). It
should allow the user to see the full pasted content and press "Enter" manually to submit, similar to how Node.js REPL
or other modern CLIs handle pasted blocks.
Client information
- CLI Version: 0.22.5
- Git Commit: 8daf2d3
- Session ID: aef184a9-95c1-4a30-a618-74edaf957ccc
- Operating System: win32 v22.12.0
- Sandbox Environment: no sandbox
- Model Version: auto-gemini-3
- Memory Usage: 222.2 MB
- IDE Client: Antigravity
Login information
No response
Anything else we need to know?
No response