claude-code - 💡(How to fix) Fix Add confirmation dialog and restore option for deleted conversations [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#47065Fetched 2026-04-13 05:42:24
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

I accidentally clicked the delete button on a conversation in the Claude Code desktop app and permanently lost my chat history. There is no confirmation dialog before deleting, and no undo or restore option after the deletion happens.

Proposed Solution

  1. Add a confirmation dialog when the delete button is clicked ("Are you sure you want to delete this conversation? This cannot be undone.")
  2. Or add an "Undo" option that appears briefly after deletion
  3. Or add a "Recently Deleted" section where conversations can be restored within a few days

Alternative Solutions

  1. Add a confirmation dialog when the delete button is clicked ("Are you sure you want to delete this conversation? This cannot be undone.")
  2. Or add an "Undo" option that appears briefly after deletion
  3. Or add a "Recently Deleted" section where conversations can be restored within a few days

Priority

Medium - Would be very helpful

Feature Category

Interactive mode (TUI)

Use Case Example

  1. I had a long conversation building a website with Claude Code
  2. I accidentally clicked the delete button on the conversation in the sidebar
  3. The conversation disappeared immediately with no warning
  4. I lost all the context and history of my work

Additional Context

No response

extent analysis

TL;DR

Implementing a confirmation dialog before deleting a conversation is the most likely fix to prevent accidental data loss.

Guidance

  • Consider adding a confirmation dialog with a clear warning message, such as "Are you sure you want to delete this conversation? This cannot be undone."
  • Evaluate the feasibility of implementing an "Undo" option that appears briefly after deletion, allowing users to quickly recover accidentally deleted conversations.
  • Assess the potential of introducing a "Recently Deleted" section where conversations can be restored within a limited time frame, providing an additional safety net for users.
  • Review the current deletion mechanism to ensure it is intuitive and user-friendly, reducing the likelihood of accidental deletions.

Example

# Pseudo-code example of a confirmation dialog
def delete_conversation(conversation_id):
    confirm_delete = input("Are you sure you want to delete this conversation? (y/n): ")
    if confirm_delete.lower() == 'y':
        # Proceed with deletion
        delete_conversation_from_db(conversation_id)
    else:
        # Cancel deletion
        print("Deletion cancelled.")

Notes

The proposed solutions focus on preventing accidental deletions and providing recovery options. However, the implementation details and technical feasibility of these solutions are not discussed in the issue.

Recommendation

Apply a workaround by implementing a confirmation dialog before deleting a conversation, as it is a straightforward and effective way to prevent accidental data loss.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING