VS Code: queued follow-up retries legacy thread resume hundreds of times per second

Abierto
#64,196 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
52/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
rust, vscode

Línea de trabajo

Start by tracing queued follow-up dispatch and thread resume in the VS Code extension and bundled app-server; the payload does not name source files or tests, so locate these entry points first. Reproduce with a queued message on a legacy-history thread and observe handling of list_turns is not supported yet. Done means the item remains pending, automatic retries pause after this error, the error is surfaced, and transient failures use bounded backoff.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

app-server bug extension performance
What version of the IDE extension are you using?

openai.chatgpt 26.1120.50957 with bundled codex-cli 0.171.0-alpha.13.2.

What subscription do you have?

Not provided.

Which IDE are you using?

VS Code 1.147.0.

What platform is your computer?

macOS 26.7.2 (25G332), arm64.

What issue are you seeing?

Automatic dispatch of an existing queued follow-up tries to resume a local thread with history_mode=legacy. Resume fails with list_turns is not supported yet, and the extension immediately tries again.

  • First occurrence: 11,706 resume attempts in about 35 seconds (~330/s). The bundled codex app-server process sustained 94–100% CPU in macOS process measurements. The MacBook became hot.
  • Second occurrence: another already-open VS Code window made 5,405 attempts in 18.5 seconds (~292/s). The extension logged app_server_restart_recovery_done with no current conversation, then started the retries about 0.46 seconds later.

Representative events with identifiers omitted:

maybe_resume_started previousResumeState=needs_resume
VM lifecycle vmEvent=thread_resume_failed
Failed to execute queued message errorMessage="list_turns is not supported yet"
What steps can reproduce the bug?

Observed sequence on the affected installation:

  1. Have a pending Queue follow-up for a persisted local chat whose history mode is legacy.
  2. Let VS Code's Codex extension recover its local app-server connection and automatically process the pending message.
  3. When resuming that thread returns list_turns is not supported yet, observe repeated thread/resume attempts without a visible delay.

I have not verified a clean-profile reproduction or what initiated the app-server recovery in the second window.

What is the expected behavior?

After the unsupported-history response, pause automatic dispatch for that item, retain the pending message, and surface the resume error. Retry transient failures with bounded backoff.

Additional information

After backing up and removing only the affected item from the persisted extension queue, the first loop stopped and app-server CPU fell to 0.5–3.1%. The second window later retried the same chat while the persisted item was still absent and the follow-up setting was already steer. That window may have retained an in-memory copy.

Related: #45703 reports the same history error. #42589 reports a multi-window resume loop with active-writer conflicts. The failure here occurs during queued dispatch and returns list_turns is not supported yet.

Lenguaje dominante
Rust
Estrellas
136k
Forks
21.6k
Merge medio
1 min
PR fusionados (30 d)
997

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de openai/codex

Todos los issues de openai/codex

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.