github / github/copilot-cli

Right click to copy also pastes the content into the input area

Open
#4,126 0 comments 1 reaction 0 assignees View on GitHub
area:input-keyboard area:terminal-rendering
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

### Describe the bug

When I select something and right click to copy, the right click also pastes what was copied into the prompt input. What gets pasted may not even be what was selected, it can also be the previous thing that was selected.

### Affected version

GitHub Copilot CLI 1.0.71-1

### Steps to reproduce the behavior

1. Highlight text in the terminal
2. Right click to copy
3. Observe terminal now contains information that was not meant to be pasted

### Expected behavior

When I right click to copy, nothing should get pasted at the same time.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing this in GitHub Copilot CLI 1.0.71-1: highlight terminal text and right-click to copy. Trace the terminal input and paste handling, then verify that right-click copying no longer inserts selected or previously selected content into the prompt input.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.