Restore quick delete action in the sessions view
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Shell
- Star
- 11.2k
- Fork
- 1.9k
- Merge trung bình
- 14 giờ 16 phút
- Pull request đã merge (30 ngày)
- 6
Mô tả
Describe the feature or problem you'd like to solve
The sessions list used to support deleting a session directly from the list (a quick delete/keyboard action on the highlighted row). That option is gone, and there is now no good way to delete sessions.
Proposed solution
• Re-add a delete action in the sessions view that operates on the highlighted session without opening it (e.g. d or Del key, with a confirmation prompt).
• Support deleting multiple sessions in one pass (multi-select, or stay in the list after each delete).
• Deleting from the list should not create a new session; the user should remain in the sessions view with the deleted entry removed.
Example prompts or workflows
No response
Additional context
The only remaining path is /session delete , which has two significant problems:
- It requires opening a session first. You must resume/enter a session before you can delete it, so cleaning up several stale sessions means repeatedly opening sessions you have no interest in.
- It spawns a replacement session. After deleting, the CLI immediately creates a brand-new session. So deleting N sessions leaves you with N new empty sessions to clean up, which is extremely frustrating.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách theo dõi chế độ xem phiên và lệnh /session delete hiện có, đặc biệt là cách xử lý hàng được tô sáng, các thao tác bàn phím, bước xác nhận và việc tạo phiên. Trước tiên, hãy xác minh quy trình xóa hiện tại. Được xem là hoàn tất khi xóa được một hoặc nhiều phiên đang được tô sáng khỏi danh sách, không mở chúng hoặc tạo các phiên thay thế, và giữ người dùng ở chế độ xem phiên.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- shell
- Lĩnh vực
- cli
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 52/100