fetch: SSE ping comments silently drop data in the same chunk
@fhgffy ya está trabajando en esto.
Desde el 5/10/2026.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 85/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- node.js, typescript
- Área
- api
Línea de trabajo
Empieza con streamSse en packages/fetch/src/stream.ts y sigue cómo vacía las líneas almacenadas en búfer; después, busca las pruebas existentes del flujo SSE y ejecútalas. Añade pruebas de regresión para los comentarios ping iniciales e intercalados, incluidos los límites entre chunks; el trabajo estará terminado cuando se emitan ambos eventos de datos sin error.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
streamSse still treats : ping as a completion signal. When a heartbeat and the following data events arrive in the same chunk, the line-draining loop stops and the remaining events can be dropped silently at EOF.
I reproduced this on current main (5522c6f44ca0) with a local Node HTTP server and the actual packages/fetch/src/stream.ts implementation:
: ping
data: {"text":"hello"}
data: {"text":"world"}
Expected: both data objects are yielded. Actual: no objects and no error. Putting the heartbeat between the objects yields only hello. Replacing it with : heartbeat, or removing it, yields both objects.
SSE lines starting with : are comments, so the heartbeat should be ignored while the existing buffer continues to drain. The HTML standard describes this rule.
This was previously addressed in #13187. The author withdrew that PR while consolidating contributions and explicitly invited reopening or cherry-picking the fix; it was not merged. I would like to carry the focused fix forward with regression coverage for leading and interleaved heartbeats and chunk boundaries. The proposed change only removes the special completion handling for : ping, letting it follow the existing ignored-line path.
Environment
- Windows amd64
- Node.js 24.14.0
- Current repository source, local HTTP only; no model or external provider calls
- Lenguaje dominante
- TypeScript
- Estrellas
- 36.2k
- Forks
- 5.5k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
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 continuedev/continue
-
create_new_file writes a JSON file on one line when the model sends its contents as a JSON valuePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
continuedev/continue#13363 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 66/100
continuedev/continue#13352 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
continuedev/continue#13291 ·
-
Ollama provider drops `tools` after the first tool call, breaking multi-step agent loopsPosiblemente ocupada @dvd233 la tomó hace 36 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
continuedev/continue#13254 · 2 comentarios ·
-
[Bug] LanceDbIndex interpolates paths into LanceDB SQL predicates — apostrophes in file/workspace paths break index deletes (stale chunks stay retrievable) and retrievalPosiblemente ocupada @seethinajayadileep la tomó hace 42 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
continuedev/continue#13233 ·
Todos los issues de continuedev/continue
Issues similares
-
bug priority: P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
wayfinder:task
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
bug customer-reported data-plane question Service Attention Storage
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
Azure/azure-rest-api-specs#47397 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Claude thinking budget can shrink capped Haiku responses to 2,048 tokensPosiblemente ocupada @DavyMassoneto la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
diegosouzapw/OmniRoute#17109 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
paperclipai/paperclip#16785 ·
Los mantenedores suelen responder en 1 día