github / github/copilot-cli

/restart does not work with --name

Offen Anfängerfreundlich
#3,332 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
area:sessions
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

### 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_

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
shell
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Ruhig
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
68/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.