github / github/copilot-cli

Blocker: Compact can be triggered accidentally with no confirmation or Undo

Ouverte
#4,353 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

area:context-memory area:sessions
Langage dominant
Shell
Étoiles
11.2k
Forks
1.9k
Merge moyen
14 h 16 min
PR mergées (30 j)
6

Description

Describe the bug

The Compact action in the VS Code Copilot CLI experience can be activated accidentally and immediately rewrites the active conversation context without:

  • a confirmation dialog,
  • a clear warning that the operation cannot be reversed,
  • an Undo action, or
  • a supported way to restore the original conversation into the active UI/context.

This is a blocker-level data-loss UX issue. Although an underlying session record/checkpoint may remain on disk, that is not equivalent to preserving the user's active conversation. After accidental activation, the user cannot restore the session to its prior state or see the original conversation as it appeared before compaction.

Affected version
  • VS Code: 1.131.0 (Windows x64)
  • Copilot CLI runtime integrated into VS Code; standalone copilot executable is not available in PATH
  • Observed August 3, 2026
Steps to reproduce
  1. Open a long-running Copilot CLI session in VS Code.
  2. Accidentally activate Compact.
  3. Observe that compaction begins immediately without confirmation.
  4. After it completes, attempt to undo or restore the original active conversation.
  5. Observe that no Undo or restoration path exists.
Actual behavior

A single accidental activation permanently replaces a large active conversation with a generated summary. In the observed session, compaction removed approximately 133,000 tokens from active context. The session checkpoint/log remained, but the original visible/active conversation could not be restored.

Expected behavior

Before Compact runs, show a blocking confirmation that clearly states what will change and whether it can be undone. At minimum:

  1. Require explicit confirmation for manual compaction.
  2. Clearly state that the current active context will be replaced by a summary.
  3. Provide an immediate Undo/Restore action backed by the retained session record.
  4. Preserve access to the original visible transcript.
  5. Consider moving Compact away from controls that are easy to trigger accidentally.

Please treat this as a release-blocking UX/data-preservation defect rather than a normal enhancement request. Irreversible context replacement must not occur from one accidental click.

Additional context

No private session content or source code is included in this report.

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Commencez par reproduire l’action Compact dans l’expérience VS Code Copilot CLI et suivez le point d’entrée de la compaction manuelle. Examinez comment le checkpoint/log de session est conservé et comment la conversation active est remplacée. C’est terminé lorsque la compaction manuelle exige une confirmation et fournit un chemin pris en charge pour Undo ou la restauration, tout en préservant la transcription d’origine.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
shell, vscode
Domaine
cli, developer-experience
Type d'issue
Bug
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.