github / github/copilot-cli

Restarting actions (update, experimental toggles) don't preserve session

Aperta
#3,434 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
area:configuration area:sessions
Lingua principale
Shell
Stelle
11.2k
Fork
1.9k
Merge medio
14h 16m
PR unite (30g)
6

Descrizione

### Describe the bug

When I start Copilot CLI, and perform an action that restarts the app (such as update or toggling experimental mode) it does not restart correctly, and gives an error message that the session ID cannot be found:

```
Error: No session, task, or name matched 'b490e4ae-7edc-4d79-bfb0-48a03c10084f'.

To resume by session or task ID: copilot --resume=
To resume by name: copilot --resume=
To name a new session: copilot --name=
To pick from existing sessions: copilot --resume
```

### Affected version

GitHub Copilot CLI 1.0.51-2

### Steps to reproduce the behavior

1. Type `copilot` to start the cli
2. `/experimental on` (or off if you already have it on)

### Expected behavior

Copilot CLI restarts correctly enabling experimental.

What actually happens is the error I listed above.

### Additional context

Logs from the relaunch:

```
2026-05-20T18:32:29.847Z [DEBUG] Sending telemetry event: copilot-cli/extension.activate
2026-05-20T18:32:29.848Z [INFO] Shell completions: no supported shell detected, skipping
2026-05-20T18:32:29.849Z [DEBUG] OpenTelemetry not enabled (resolveOtelConfig returned null)
2026-05-20T18:32:29.881Z [DEBUG] No persisted remote state for session 796be1bf-039a-4cfa-89fb-6dc690047291
2026-05-20T18:32:30.090Z [INFO] Session indexing debug: SESSION_INDEXING=true, repository=333fred/roslyn
2026-05-20T18:32:30.304Z [DEBUG] ExP request: GET https://telemetry.enterprise.githubcopilot.com/telemetry?tas-endpoint=githubdevdiv
2026-05-20T18:32:30.304Z [DEBUG] ExP headers: {"User-Agent":"copilot-cli","X-ExP-SDK-Version":"1","X-VSCode-ExtensionName":"CopilotCLI","X-MSEdge-ClientId":"","x-exp-parameters":"copilottrackingid=,github_copilotcli_cliversion=1.0.51.2,github_copilotcli_prerelease=1,github_copilotcli_audience=microsoft,github_copilotcli_experimentationoptin=0,extensionname=CopilotCLI,github_copilotcli_firstlaunchat=1773187200,github_copilotcli_copilotplan=enterprise"}
2026-05-20T18:32:30.569Z [DEBUG] Sending telemetry event: copilot-cli/cli.telemetry (kind: exp_context_fetch)
2026-05-20T18:32:30.721Z [ERROR] Request to Copilot Task API at https://api.enterprise.githubcopilot.com/agents/tasks/796be1bf-039a-4cfa-89fb-6dc690047291 failed with status 404 (request ID: A8EA:2636CF:65A2510:6D113F7:6A0DFE3E), body: {"documentation_url":"https://docs.github.com/rest","message":"not found"}

2026-05-20T18:32:31.351Z [INFO] No update needed, current version is 1.0.51-2, fetched latest release is v1.0.51-2
2026-05-20T18:32:32.942Z [DEBUG] Fetched 80 remote sessions
```

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia tracciando l’azione `/experimental` e il percorso di riavvio che invoca, quindi segui come l’ID della sessione corrente viene passato al rilancio. Riproduci il problema con `/experimental on` oppure `off` e ispeziona i log del rilancio. Il lavoro è completato quando la CLI si riavvia con l’impostazione richiesta e mantiene la sessione attiva senza un errore di sessione mancante.

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

Valutazione

Stack tecnologico
shell
Ambito
cli
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
48/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.