Skip to content

Add delete session functionality#43

Merged
AlexPeppas merged 1 commit intoAlexPeppas:masterfrom
alisasongg:users/alisasong/delete_session_v2
Apr 4, 2026
Merged

Add delete session functionality#43
AlexPeppas merged 1 commit intoAlexPeppas:masterfrom
alisasongg:users/alisasong/delete_session_v2

Conversation

@alisasongg
Copy link
Copy Markdown
Contributor

Summary

  • Add ability to delete sessions from the graph canvas with confirmation dialog
  • Trash button appears on session node hover
  • Properly cleans up PTY, sub-agents, edges, and persisted state

Changes

  • Added deleteSession action to Zustand store
  • Added trash button to SessionNode with error color styling
  • Confirmation dialog prevents accidental deletions
  • Complete cleanup of session state across main and renderer processes

Test plan

  • Hover over session node to reveal trash button
  • Click trash button and confirm deletion
  • Verify session PTY is killed
  • Verify node and edges are removed from canvas
  • Verify state is cleaned up in persisted storage
  • Click trash and cancel - verify nothing happens

🤖 Generated with Claude Code

- Add deleteSession action to store that kills PTY and removes UI state
- Add trash button to SessionNode that appears on hover
- Confirm deletion with user before proceeding
- Button styled with error colors for visual feedback
- Cleanup includes session, sub-agents, edges, and persisted state

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@AlexPeppas AlexPeppas merged commit 30ee438 into AlexPeppas:master Apr 4, 2026
3 of 4 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.

3 participants