Skip to content

fix: add confirmation dialogs for memory/biblion deletion and remove TODO list from sidebar#42

Merged
A-Souhei merged 1 commit intomainfrom
fix/sidebar-delete-confirmation
Mar 14, 2026
Merged

fix: add confirmation dialogs for memory/biblion deletion and remove TODO list from sidebar#42
A-Souhei merged 1 commit intomainfrom
fix/sidebar-delete-confirmation

Conversation

@A-Souhei
Copy link
Owner

Problem

  • Trash icon on memory/biblion deleted without confirmation, risking accidental data loss
  • Delete didn't work reliably due to missing context parameter
  • TODO list was present in sidebar but should not be

Solution

  • Added confirmation modal for memory and biblion deletion
  • Passed directory parameter explicitly for reliable deletion
  • Implemented error toasts with detailed error messages
  • Added double-click guard to prevent multiple deletion attempts
  • Removed TODO list from sidebar navigation

Changes

  • Confirmation dialogs for destructive operations
  • Improved error handling with user feedback
  • Cleaner sidebar UI

… error handling

- Add yes/no confirmation modals before clearing memory and biblion
- Fix delete operations to pass directory parameter for proper functionality
- Add error handling with detailed error messages in toasts
- Add double-click guard to prevent multiple simultaneous deletion attempts
- Remove TODO list from sidebar panel and SessionTodoDock import
- Clean up unused signal and role state variables
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reduces accidental data loss in the session info panel by adding a confirmation step before clearing Memory/Biblion, improves deletion reliability by passing the directory context explicitly, and removes the Tasks/TODO section from the panel UI.

Changes:

  • Added a reusable confirmation dialog component and wired it to Memory/Biblion “trash” actions.
  • Updated Memory/Biblion clear calls to pass directory explicitly and surface failures via error toasts.
  • Removed the Tasks section (and its related imports/state) from the session info panel.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@A-Souhei A-Souhei merged commit f58128e into main Mar 14, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants