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

貢獻指南

開啟貢獻指南

研究方向

先透過 `/rename` 和 `/resume` 重現問題,接著追蹤手動設定的名稱以及之後自動產生的工作階段名稱是在哪裡處理的。當使用 `/rename` 設定的名稱在繼續工作期間保持不變,並且在再次明確重新命名之前始終以該名稱出現在 `/resume` 中時,工作就完成了。

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

評估

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

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

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