Skip to content

Conversation

@Vrutin
Copy link
Contributor

@Vrutin Vrutin commented Jan 12, 2026

This PR adds the ability to delete workspaces from CodexMonitor.

Changes

  • Added removeWorkspace service function in tauri.ts that calls the backend remove_workspace command
  • Added removeWorkspace hook function in useWorkspaces.ts with confirmation dialog using Tauri's ask API
  • Added workspace context menu in Sidebar.tsx with delete option (right-click on workspace)
  • Wired up delete handler in App.tsx

Features

  • Right-click any workspace in the sidebar to access the context menu
  • Select "Delete" to remove a workspace
  • A confirmation dialog appears with "Delete" and "Cancel" buttons
  • The dialog shows the workspace name and warns about removal
  • Only proceeds with deletion if user confirms

Technical Details

  • Uses Tauri's native ask dialog for platform-native confirmation UI
  • Properly cleans up workspace state and active workspace selection
  • Includes debug logging for deletion events
  • Follows the same pattern as thread deletion for consistency

- Add removeWorkspace service function in tauri.ts
- Add removeWorkspace hook function with confirmation dialog
- Add workspace context menu with delete option in Sidebar
- Wire up delete handler in App.tsx
- Use Tauri ask dialog for confirmation with Delete/Cancel buttons
@Vrutin Vrutin force-pushed the feature/workspace-deletion branch from fa11733 to dd2c3af Compare January 12, 2026 18:20
@Dimillian Dimillian merged commit 3ed2fa8 into Dimillian:main Jan 12, 2026
1 check 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