/restart does not work with --name
- Dominant language
- Shell
- Stars
- 11.2k
- Forks
- 1.9k
- Avg merge
- 14h 16m
- Merged PRs (30d)
- 6
Description
### 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_
Contributor guide
Research direction
Reproduce the issue with `copilot --name foo` followed by `/restart`, then trace the `/restart` entry point and how `--name` and `--resume` arguments are assembled. Done means restarting a named session no longer exits with the conflicting-option error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 68/100