github / github/copilot-cli

/restart does not work with --name

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

描述

### Describe the bug

GitHub Copilot CLI 1.0.48.

Repo steps:

1. `copilot --name foo`
2. `/restart`

Expected: restart

Actual: exit, fail to start

```
C:\Users\zhaoyangli> copilot --name foo

╭─╮╭─╮ Changes +0 -0
╰─╯╰─╯ AI Units 0 (16s)
█ ▘▝ █ Resume copilot --resume="foo"
▔▔▔▔

error: option '-n, --name ' cannot be used with option '--resume[=value]'
C:\Users\zhaoyangli>
```

### Affected version

_No response_

### Steps to reproduce the behavior

_No response_

### Expected behavior

_No response_

### Additional context

_No response_

贡献指南

打开贡献指南

调研方向

使用 `copilot --name foo` 后跟 `/restart` 重现该问题,然后追踪 `/restart` 的入口点以及 `--name` 和 `--resume` 参数的组装方式。完成的标准是:重启已命名的会话不再因选项冲突错误而退出。

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

评估

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

把新 issue 发到你的邮箱

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