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

Pipe characters (`|`) are copied when selecting prompt text

Open stagefright5 opened this issue 1 month ago • 0 comments

When selecting and copying prompt text from the CLI input box, the | border characters are also included in the clipboard content.

Steps to Reproduce:

  1. Add a multiline prompt in the input box of gemini cli
  2. Use mouse to select the prompt

Expected Behavior:

Only the actual prompt text should be copied, without the decorative border characters.

Actual Behavior:

The | pipe characters used for visual borders are included in the copied text.

Example:

  • The prompt in the cli
Image
  • The Copied Text
│ > Please follow the rules:                                                                                                                                                           │
│   - Always use signals API for state management                                                                                                                                      │
│   - Don't use decorator based Inputs and Outputs                                                                                                                                     │
│   - Always create `standalone` components

stagefright5 avatar Dec 10 '25 16:12 stagefright5