Context/compact button triggers compact on single click with no confirmation or undo

Resolved 💬 3 comments Opened May 29, 2026 by rmiller-uab Closed Jun 1, 2026

Problem

The context indicator button (showing remaining context %) triggers /compact on a single click. There is:

  • No confirmation dialog
  • No undo
  • No "are you sure?" given the destructive nature

This is a footgun. The button looks like an informational indicator (it displays a percentage), but clicking it irreversibly compacts the conversation. Once compacted, the original turn-by-turn context is gone — you only have the summary the model produced.

Why it matters

Compaction is destructive in a way most UI buttons aren't:

  • You can't recover the original messages
  • The summary may miss nuance the user was relying on
  • Mid-task compaction can drop in-flight reasoning that the next response depended on
  • It's particularly painful in long sessions where the user has invested context-building work

A single misclick on what looks like a status indicator wipes that out.

Suggested fixes (any one would help)

  1. Confirmation modal — "Compact this conversation? This cannot be undone." with Cancel/Confirm
  2. Two-step interaction — first click expands a panel showing context stats; explicit "Compact now" button inside
  3. Undo window — keep the pre-compact state for N seconds and surface an Undo toast
  4. Separate the affordances — make the % indicator non-interactive and put compact in a menu

Of these, the confirmation modal is the lowest-friction fix and would prevent the misclick problem entirely.

Environment

  • Claude Code VSCode extension
  • Long-running session (multi-hour, multi-task)

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗