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

Session replay: early chunks saved under the wrong session

Abierto
#537 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@rjocoleman ya está trabajando en esto.

Desde el 9/10/2026.

  • #538 de @rjocoleman — abierto

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
analytics

Línea de trabajo

Start from buildFlushPayload and the flush() queue in the SDK, where replay chunks queued before the first track response are sent without a sessionId. Then check how the server assigns a session to chunks that lack one, and what session_replay_chunks stores. Reproduce by sending a track with properties.__deviceId set and comparing session_id on the chunks and the event. Done means early chunks land in the same session as the event, and a test covers the queued-chunk case with __deviceId set.

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

Descripción

If you send events from another pipeline with a stable __deviceId, for example to match session recordings to a session tracked through a CDP, the first replay chunks end up under a different session from the events

Replay chunks recorded before the first track response have no sessionId, so the SDK queues them. When the session arrives, flush() sends them as they are (buildFlushPayload returns replay payloads unchanged), and the server falls back to the session it works out from IP and user agent. Usually that's the same session. With __deviceId set, it isn't. The early chunks, including the full snapshot, are stored under a second session, and the replay of the real session starts without a snapshot

Repro: enable session replay, send a track with properties.__deviceId set to a stable id, then check session_replay_chunks. The early chunks have a different session_id from the event

Lenguaje dominante
TypeScript
Estrellas
7.1k
Forks
510
Merge medio
5 d 13 h
PR fusionados (30 d)
6

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

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 Openpanel-dev/openpanel

Todos los issues de Openpanel-dev/openpanel

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.