Skip to content

fix(lint): name the clip without data-duration in the audio overlap hint - #7386

Open
lukaskourilcz wants to merge 1 commit into
heygen-com:mainfrom
lukaskourilcz:fix/lint-audio-overlap-open-ended-hint
Open

lukaskourilcz wants to merge 1 commit into
heygen-com:mainfrom
lukaskourilcz:fix/lint-audio-overlap-open-ended-hint

Conversation

@lukaskourilcz

Copy link
Copy Markdown

What

When duplicate_audio_track fires because clip has no data-duration, the hint now says which clip it is and to set data-duration to the file length.

Why

I made a video with 8 voice lines one after another on one track, without data-duration (docs say audio without it plays full length). Lint doesnt read the files so every line counts until the end of composition, and I got 28 warnings like v3.wav at 10.4-46s. Hint said "Use non-overlapping time windows or different track indices" but windows didnt overlap at all. Adding data-duration fixed it, took me a while to figure out.

Related work

Same rule as #5837 and #6005. Detection stays the same. Making lint read real media length is bigger change, would open issue for that first.

How

AudioSpan remembers if duration was unknown (runsToWindowEnd) and fixHint lists those files, otherwise old hint.

Test plan

  • Unit tests added: hint names both files when none has data-duration, old hint when both have it. New test fails on main
  • bun run --filter @hyperframes/lint test (1282 passed), typecheck
  • No comments added, comment-ratchet.mjs passes

🤖 Generated with Claude Code

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant