github / github/copilot-cli

Manual `/rename` is overwritten by later auto-generated session name

未关闭
#2,622 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
area:sessions
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

### Describe the bug

A session name set manually via `/rename ` does not persist reliably. After continuing to work in the same session, Copilot CLI auto-renames the session again and overwrites the user-defined name.

### Affected version

GitHub Copilot CLI 1.0.22

### Steps to reproduce the behavior

1. Start a new Copilot CLI session.
2. Run `/rename my-name`.
3. Continue working in the same session for a while.
4. Check the session name again, or try to find it later in `/resume`.

### Expected behavior

A manually assigned session name should remain unchanged until the user explicitly renames it again.

### Additional context

- Actual behavior: the manual name is replaced by an automatically generated session name.
- Impact: renamed sessions become hard to find later because the expected custom name no longer exists.
- OS: Windows
- Terminal: Windows Terminal
- Shell: PowerShell

贡献指南

打开贡献指南

调研方向

Start by reproducing the issue through `/rename` and `/resume`, then trace where manual names and later auto-generated session names are handled. The work is done when a name set with `/rename` remains unchanged across continued work and still appears under that name in `/resume` until explicitly renamed again.

由索引模型根据 Issue 内容生成。

评估

技术栈
shell
领域
cli
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
58/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。