Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

fetch: SSE ping comments silently drop data in the same chunk

Abierto Apto para principiantes
#13,347 0 comentarios 0 reacciones 0 asignados Ver en GitHub

@fhgffy ya está trabajando en esto.

Desde el 5/10/2026.

  • #13348 de @fhgffy — abierto
  • #13382 de @patrickswedish — abierto

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

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 continuedev/continue

Todos los issues de continuedev/continue

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.