github / github/copilot-cli

Restore quick delete action in the sessions view

未關閉
#4,395 0 則留言 3 個 reaction 已指派 0 人 在 GitHub 檢視
area:sessions
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### 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:

1. 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.
2. 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.

貢獻指南

開啟貢獻指南

研究方向

先追蹤工作階段檢視畫面和現有的 `/session delete` 命令,特別確認醒目顯示的列、鍵盤操作、確認以及工作階段建立是如何處理的。先驗證目前的刪除流程。完成的條件是從清單中刪除一個或多個醒目顯示的工作階段,不開啟它們或建立替代工作階段,並讓使用者留在工作階段檢視畫面中。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
shell
領域
cli
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。