Copilot PR-state polling throws RangeError: Invalid array length while accumulating paginated results
Los mantenedores suelen responder en 1 día
Evaluación
Este issue todavía no se ha evaluado.
Descripción
- Extension version: GitHub Pull Requests 0.166.1
- VSCode Version: 1.141.0-insider; also observed after updating to d1f9096c3663d21e55cf448de012c620b960220a on 6 October 2026
- OS: macOS 27.0.1, Apple Silicon
- Repository Clone Configuration (single repository/fork of an upstream repository): Multiple repositories/worktrees and windows, including the Agents window
- GitHub Product (GitHub.com/GitHub Enterprise version x.x.x): GitHub.com
Steps to Reproduce:
An exact minimal reproduction has not yet been isolated. This report comes from retained logs during normal multi-window/Agents-window use, not from a new controlled reproduction.
- Use the affected extension with PR/Copilot-state polling active across repositories/worktrees.
- Observe background polling failures in the extension-host log. A useful targeted reproduction is a query that has multiple pages, particularly after the Copilot state model has initialized.
Observed
Ten RangeError: Invalid array length exceptions were recorded during 4 October 2026 13:14 to 6 October 2026 13:14 CEST (UTC+02). Renderer copies of the same exceptions were not counted again. The failure persisted after the latest Insiders update, with examples at 6 October 12:49:17, 12:51:41, and 13:08:28 CEST.
2026-10-06 12:49:17.147 [error] RangeError: Invalid array length
at Array.push (<anonymous>)
at <extensions>/github.vscode-pull-request-github-0.166.1/dist/extension.js:4168:41690
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async O6._pollForChanges (<extensions>/github.vscode-pull-request-github-0.166.1/dist/extension.js:3794:58246)
Paths are redacted; the error, timestamps, and bundled source locations are preserved. The failure interrupts background Copilot/PR-state refresh and may involve a very large accumulated array; no heap measurement has been taken.
Likely cause to investigate
Inspection of the installed bundle maps the failing push to refreshCopilotStateChanges. It loops while hasMorePages and appends the result of getPullRequestsForQuery. The helper can return cached or cumulative results, while the argument used for fetchNextPage is derived from the model's initialization state rather than advancing explicitly with each loop iteration.
This suggests repeated accumulation of the same/cumulative page when hasMorePages stays true. This is a code-and-stack hypothesis, not yet a regression-tested diagnosis.
Expected / proposed direction
Polling should advance pagination, terminate, and accumulate each PR once without unbounded array growth. Please check cached versus incremental query-result semantics and add regression coverage for an initialized model with more than one page, including a non-advancing result.
Raw logs are not attached because they contain unrelated private workspace/session data.
- Lenguaje dominante
- TypeScript
- Estrellas
- 2.6k
- Forks
- 800
- Merge medio
- 1 d 23 h
- PR fusionados (30 d)
- 42
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/vscode-pull-request-github
-
Issue 3 — DocumentationAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
microsoft/vscode-pull-request-github#8792 ·
Los mantenedores suelen responder en 1 día
-
PR description view doesn't show PR eventsPosiblemente ocupada @alexr00 la tomó hoy. Abierto
microsoft/vscode-pull-request-github#9051 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Test "Update Stack"Abiertotestplan-item
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
microsoft/vscode-pull-request-github#9046 ·
Los mantenedores suelen responder en 1 día
-
Issue links in overview HTML are emitted with an extra quote in hrefPosiblemente ocupada @alexr00 la tomó hace 3 días. Abiertobug
microsoft/vscode-pull-request-github#9022 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Colours are off for sub-buttons under Create Merge CommitPosiblemente ocupada @alexr00 la tomó hace 4 días. Abiertoinfo-needed
microsoft/vscode-pull-request-github#9019 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de microsoft/vscode-pull-request-github
Issues similares
-
[Bug] The clients language filter cannot select the rows the page labels as unknownPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
apache/rocketmq-dashboard#6103 ·
Los mantenedores suelen responder en 4 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
cockpit-project/cockpit-machines#2835 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
cloudflare/kumo#866 ·
Los mantenedores suelen responder en 1 día
-
area:connector bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
autoInject recall silently drops memory injection on long / non-Latin prompts (HTTP 400 Query too long)Posiblemente ocupada @Epsilon006 la tomó hoy. Abiertointegration:coding-agents
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
vectorize-io/hindsight#5476 · 1 comentario ·
Los mantenedores suelen responder en 1 día