-
Notifications
You must be signed in to change notification settings - Fork 2.6k
feat(ui): Add delete button to session history list view #2803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ui): Add delete button to session history list view #2803
Conversation
This commit adds a delete button to the session history list view that allows users to permanently delete session history files. The implementation includes: - Delete button on each session item in the list - Confirmation modal with appropriate styling - Loading state during deletion - Success/error notifications - Secure file deletion with validation checks
9a77f9d to
7a17a63
Compare
|
I chose to do this all in the UI but it maybe it should live in the |
|
@alexhayes-block yeah ideally it would be a feature in both cli and desktop also if possible and moving it to the backend would help with that. Also need to be extra careful with security, heres what copilot said: Potential Issuesa. Path Traversal:
b. File Existence and Race Conditions:
2. IPC Exposure
3. Other Considerations
4. General Review of the Frontend
Summary of Recommendations
|
|
@alexhayes-block would like to get this in can you pull main resolve conflicts and address the comments? |
|
closes #3747 |
|
related #3839 |
|
sorry @alexhayes-block looks like a bit more conflict resolving now as some bigger changes landed. I think it is valid to have something like this. |
|
@Abhijay007 wanted to create a new PR for this (mentioned on Discord), since this PR falls back on a much older version. Are they okay to take this up? Abhijay mentioned that they don’t want to create duplicate efforts or add unnecessary friction for the dev team, and they're happy to give it a shot 🙂 They also mentioned we could add support for deleting individual chats, but some may also want the option to delete all chats at once. Should we consider including that too? |
|
@alexhayes-block any objection to ^ or do you have time to wrap this up? |
|
I believe @Abhijay007 was going to take a run at getting this one fixed up |
|
Thank you so much @Abhijay007 ! #4480 |
|
This has now been implemented in another PR. |
Overview
This PR adds a delete button feature to the session history list view, allowing users to permanently delete session history files directly from the UI. This improves user experience by providing a way to manage and clean up session history without having to manually delete files from the filesystem.
If you delete an active Goose session the app for that session doesn't become corrupted (or the app for that session break or anything like that) but unless you create another message in the session, it's lost. If you add another message in the active session after deleting it, the full session is saved again on the file system.
Changes
Screenshots
Session History Screen

Confirmation Dialog

Success Toast

Testing
Security Considerations