github / github/copilot-cli

/restart does not work with --name

Aperta Adatta ai principianti
#3,332 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
area:sessions
Lingua principale
Shell
Stelle
11.2k
Fork
1.9k
Merge medio
14h 16m
PR unite (30g)
6

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
shell
Ambito
cli
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Tranquilla
Chiarezza
Specificata chiaramente
Idoneità per principianti
68/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.