github / github/copilot-cli

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

Đang mở
#4,353 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

area:context-memory area:sessions
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện hành động Compact trong trải nghiệm VS Code Copilot CLI và lần theo điểm vào của thao tác compact thủ công. Xem xét cách checkpoint/log của phiên được giữ lại và cách cuộc hội thoại đang hoạt động được thay thế. Được xem là hoàn tất khi thao tác compact thủ công yêu cầu xác nhận và cung cấp đường dẫn Undo hoặc khôi phục được hỗ trợ, đồng thời vẫn giữ nguyên bản ghi gốc.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
shell, vscode
Lĩnh vực
cli, developer-experience
Loại issue
Lỗi
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.