Feature Request: Add a confirmation dialog to the "Archive/Clear" button in Copilot Chat

Open
#319,666 1 comment 0 reactions 1 assignee View on GitHub

@roblourens is already working on this.

Since Jun 3, 2026.

Assessment

This issue has not been assessed yet.

Description

Is your feature request related to a problem? Please describe.
Yes. In the GitHub Copilot Chat view, the "Archive" (or clear chat) button lacks a confirmation step. The button is placed in a position where it is very easy to click by mistake. Since there is no secondary confirmation, an accidental click immediately wipes out the entire chat history and context. This causes a significant disruption to the workflow, as all the valuable context built up during a session is lost and cannot be recovered.

Describe the solution you'd like
I would like a secondary confirmation dialog to appear when the "Archive" button is clicked. A simple prompt asking, "Are you sure you want to archive/clear the chat history?" (with "Confirm" and "Cancel" options) would easily prevent accidental data loss.

Describe alternatives you've considered
An alternative would be to show a temporary "Undo" toast notification in the bottom right corner for a few seconds immediately after the archive action is triggered, allowing the user to revert the action if it was accidental.

Additional context
Long-running chat sessions often contain crucial architectural discussions and code snippets. Losing them to a misclick is a highly frustrating user experience. Adding a simple safeguard would greatly improve usability.

Dominant language
TypeScript
Stars
193k
Forks
42.9k
PR merge metrics
PR metrics pending

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/vscode

All issues in microsoft/vscode

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.