Session delete in VSCode extension is a destructive single-click action with no confirmation and no recovery

Resolved 💬 2 comments Opened Jun 10, 2026 by techbondpt-code Closed Jun 14, 2026

Summary

In the Claude Code VSCode extension, the remove action on a session in the history/resume picker permanently deletes the conversation with no confirmation prompt and no way to recover it.

Current behavior

  • Hovering a session reveals rename and remove actions. "Remove" deletes the session from the list as a single action.
  • There is no confirmation step (no modal, no "press again to confirm").
  • The underlying transcript file (~/.claude/projects/<project>/<session-id>.jsonl) is permanently removed — it is not moved to any trash/backup location, so a deleted session cannot be recovered.
  • There is no setting in settings.json or the extension options to require a confirmation, and no keybinding that gates the action.

Why this is a problem

A single mis-click permanently destroys conversation history with no undo. For a destructive, irreversible action this is a sharp edge — most apps gate destructive deletes behind either a confirmation or a recoverable trash.

Suggested fix (either would help)

  1. A confirmation prompt before removing a session (ideally with a "don't ask again" setting for users who prefer the current behavior), and/or
  2. A recoverable trash — move the .jsonl to a trash directory under ~/.claude/ instead of deleting it outright, so it can be restored.

Environment

  • Claude Code VSCode extension
  • Platform: macOS (Darwin 25.5.0)

View original on GitHub ↗

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