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 摘要。