Skip to content

[Windows] Multi-line paste triggers immediate submission, preventing full text input in AntiGravity #15849

@xiaobaoliu849

Description

@xiaobaoliu849

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

Metadata

Metadata

Labels

area/coreIssues related to User Interface, OS Support, Core FunctionalitywindowsWindows OS related fix or improvement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions