-
Notifications
You must be signed in to change notification settings - Fork 39.1k
[bug] GitHub Copilot Chat: input jumps to beginning when clicking inside long prompts, preventing text selection #288013
Description
Does this issue occur when all extensions are disabled?: No
Version: 1.108.1
Commit: 585eba7c0c34fd6b30faac7c62a42050bfbc0086
Date: 2026-01-14T14:55:44.241Z
Electron: 39.2.7
ElectronBuildId: 12953945
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Darwin arm64 25.2.0
macOS version: 26.2 (25C56)
extension version: 0.36.1
When using GitHub Copilot Chat in VS Code, the chat input field becomes unusable for selection when the prompt is long (e.g., when pasting code or long technical text).
If I click anywhere inside a long prompt (especially near the end) to select text, the cursor immediately jumps to the beginning of the prompt instead of staying where I clicked. This makes it effectively impossible to select or edit text unless I first click the “Edit” button.
This behavior is extremely disruptive when working with long prompts, which is a very common Copilot use case.
Steps to Reproduce
- Open Copilot Chat in VS Code
- Paste a long prompt (e.g., several hundred lines of code or text)
- Try to click somewhere near the bottom of the prompt to place the cursor or select text
- The cursor immediately jumps to the start of the prompt instead of where you clicked
Expected Behavior
Clicking inside the prompt should place the cursor at the clicked position and allow normal text selection, just like a standard text input or editor.
Actual Behavior
The cursor always jumps to the beginning of the prompt, making it impossible to select or edit text without using the “Edit” button.
Suggested Fix
Please disable or remove the “jump to beginning” behavior in the chat input field.
The chat prompt should behave like a normal selectable text area where clicking places the cursor at the clicked position.
If this behavior was added intentionally (e.g., for performance or state management), it should be optional or disabled for long prompts.