github / github/copilot-cli

[ERR_HTTP2_INVALID_SESSION]: The session has been destroyed — causes repeated transient retries

Aberta
#3,304 4 comentários 0 reações 0 responsáveis Ver no GitHub
area:networking
Linguagem predominante
Shell
Estrelas
11.2k
Forks
1.9k
Merge médio
14h 16min
PRs com merge (30d)
6

Descrição

### Describe the bug

The CLI surfaces Request failed due to a transient API error. Retrying... followed by:

✗ Error [ERR_HTTP2_INVALID_SESSION]: The session has been destroyed

This happens frequently (multiple times per session, often mid-turn on long reasoning responses). I would then be unable to issue a /restart command, and have to quit the cli and relaunch is with resume to continue. And then would encounter the issue again frequently

### Affected version

1.0.47

### Steps to reproduce the behavior

Steps to reproduce

1. Launch copilot in a normal repo.
2. Run any non-trivial prompt that produces a long reasoning turn (e.g. multi-file edit, /research,
planning).
3. Within the turn, the HTTP/2 session error fires; CLI retries.

The error is non-deterministic but reproduces within ~5–15 minutes of active use.

What I've already tried

- /restart — temporarily clears, error returns later.
- /update — already on latest (1.0.47).
- Switched models via /model — happens on multiple models.
- Forced IPv4 to rule out a broken IPv6 path: NODE_OPTIONS="--dns-result-order=ipv4first" copilot

Verified the flag is applied. Error still occurs.

### Expected behavior

_No response_

### Additional context

OS macOS 15.7.7
arm64 (Apple Silicon)
Node version v22.22.0
terminal: cmux
shell: zsh

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Reproduce the failure using Copilot CLI 1.0.47 on macOS with a long reasoning prompt, then observe the HTTP/2 session and transient-retry behavior over 5–15 minutes. Investigate why a destroyed session is reused and whether /restart remains available after the error. Done means repeated ERR_HTTP2_INVALID_SESSION failures no longer interrupt turns or require quitting and relaunching.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
node.js
Domínio
cli, networking
Tipo de issue
Bug
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Pouca atividade
Clareza
Precisa de esclarecimento
Facilidade para iniciantes
45/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.