Repository navigation
Description
Title: Pressing Delete key in "Other" free-text input of Copilot Chat multi-choice question destroys entire conversation
Type: Bug
VS Code Version: (check via Help > About)
OS: Windows
Severity: Critical — causes complete data loss of in-progress work
Description:
When GitHub Copilot Chat presents a multi-choice question (via the agent's question tool) that includes an "Other" option allowing free-text input, pressing the Delete key while editing text in that free-text field immediately and irreversibly destroys the entire chat conversation — including all prior messages, context, and generated plans.
Steps to Reproduce:
- Start a Copilot Chat session (Plan mode or any mode)
- Work through a multi-step planning conversation with significant back-and-forth (the more content, the more painful the loss)
- Wait for Copilot to present a multi-choice question (quick-pick UI with several options)
- The quick-pick automatically includes an "Other" option with a free-text input field
- Click/select the "Other" option and begin typing a custom response
- Press the Delete key (forward-delete) while editing the text
- Result: The entire conversation is wiped — all messages, all context, all generated content is gone with no recovery possible
Expected Behavior:
The Delete key should delete a character in the text input field, as it does in every other text input in VS Code. The conversation should remain intact.
Actual Behavior:
The Delete key triggers destruction of the entire chat conversation. No confirmation dialog. No undo. No recovery mechanism.
Impact:
- Complete loss of multi-step planning sessions that may represent hours of collaborative work
- No way to recover the conversation — chat history is not persisted to disk or version control
- Undermines trust in using Copilot Chat for any substantive, multi-turn work
- The Delete key is a standard text-editing key — users will press it reflexively
Possible Cause:
The Delete key event appears to be propagating from the free-text input to the chat conversation container, where it's being interpreted as a "delete message" or "clear conversation" action rather than being captured by the input field.
Suggested Fixes:
- Immediate: Stop propagation of Delete key events from within the free-text input element
- Safety net: Add a confirmation dialog before destroying any conversation with more than N messages
- Recovery: Persist chat conversation state to disk so conversations can be recovered after accidental deletion or crashes
- Prevention: The "Other" free-text input should properly capture all keyboard events (Delete, Backspace, arrow keys, etc.) without side effects
Additional Context:
This occurred during a multi-stage refactoring planning session in Plan mode. The conversation contained extensive codebase research, architectural decisions, and a detailed implementation plan that was irrecoverably lost. The user was mid-way through answering a clarification question when the bug triggered.
Activity
barakbbn commentedon Feb 16, 2026
it just destroyed 2 hours of work. very frustrating
Darth-Carrotpie commentedon Mar 1, 2026
This. Just. Keeps. Happening.
Who thought of making delete button remove all conversation, should get FIRED.
NO CONFIRMATION, NOTHING! Just REMOVES instantly all context and history of the session.
Jeeeeeesus.
meganrogge commentedon Mar 2, 2026
can someone pls run the command "toggle keyboard shortcuts troubleshooting" to figure out which command is invoked here?
meganrogge commentedon Mar 2, 2026
it's
Undo Requestsfixes #294109
when in question carousel, do not allow delete to undo requests (#298752
when in question carousel, do not allow delete to undo requests (#298752
Update main-os to latest upstream with OS customizations (#50)