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

Studio changes authored caption group boundaries on import

Abierto
#3,899 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@AksharP5 ya está trabajando en esto.

Desde el 12/9/2026.

  • #3900 de @AksharP5 — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
bun, typescript

Línea de trabajo

Start with packages/studio/src/captions/parser.ts and the regression fixture in packages/studio/src/captions/parser.dom.test.ts. Run bunx vitest run packages/studio/src/captions/parser.dom.test.ts using the reproduction steps, then confirm imported captions preserve authored group boundaries, word order, IDs, and timing, including nested layout lines.

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

Descripción

triage/needs-triage

Describe the bug

Opening existing captions in Studio changes which words belong together. The importer averages the number of words across all caption groups, so even a normal final, shorter group shifts a word into the wrong group.

Caption group Authored Imported on main
1 We asked what you needed. We asked what you
2 Forty-seven percent needed. Forty-seven percent

Seven words grouped as 5 + 2 become 4 + 3. Nonuniform 2 + 4 + 1 groups become 2 + 2 + 2 + 1. Generating HTML from the imported model then writes those changed boundaries.

Reproduction

Minimal regression fixture. The fix and tests are already prepared on this branch.

To reproduce the failure in a fresh clone using the original parser:

git clone --branch fix/caption-group-import https://github.com/AksharP5/hyperframes.git caption-group-repro
cd caption-group-repro
bun install --frozen-lockfile
git restore --source=ee73b282a^ --worktree packages/studio/src/captions/parser.ts
bunx vitest run packages/studio/src/captions/parser.dom.test.ts

The first test fails with expected [4, 3] to deeply equal [5, 2]. The fixture supplies a transcript and matching DOM word spans to parseCaptionComposition, the same boundary Studio uses when detecting captions.

Expected behavior

Import preserves the authored group boundaries, word order, IDs, and timing. Layout lines nested inside a caption group do not count as separate timed groups.

Environment

Reproduced against main at 51a88b956, Studio 0.8.35, Linux, Node 26.8.1, Bun 1.3.13. Regression tests use Vitest and happy-dom; the fixed generator/import round trip was also checked in Chromium with real iframe DOM and GSAP.

Lenguaje dominante
TypeScript
Estrellas
54.1k
Forks
4.9k
Merge medio
7 h 19 min
PR fusionados (30 d)
746

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

  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 heygen-com/hyperframes

Todos los issues de heygen-com/hyperframes

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.